Home
last modified time | relevance | path

Searched refs:ms (Results 1 – 25 of 179) sorted by relevance

12345678

/dragonfly/contrib/file/src/
H A Dfuncs.c69 free(ms->o.buf); in file_clearbuf()
70 ms->o.buf = NULL; in file_clearbuf()
71 ms->o.blen = 0; in file_clearbuf()
166 ms->o.buf = buf; in file_vprintf()
203 if (ms->o.buf && *ms->o.buf) in file_error_core()
231 file_error_core(ms, 0, f, va, ms->line); in file_magerror()
516 ms->error = -1; in file_reset()
595 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer()
612 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
613 ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ? in file_check_mem()
[all …]
H A Dfsmagic.c73 int mime = ms->flags & MAGIC_MIME; in bad_link()
79 if (ms->flags & MAGIC_ERROR) { in bad_link()
80 file_error(ms, err, in bad_link()
162 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
305 } else if (file_printf(ms, in file_fsmagic()
335 file_error(ms, 0, in file_fsmagic()
340 if (handle_mime(ms, mime, in file_fsmagic()
344 } else if (file_printf(ms, in file_fsmagic()
365 ms->flags &= MAGIC_SYMLINK; in file_fsmagic()
366 p = magic_file(ms, buf); in file_fsmagic()
[all …]
H A Dmagic.c308 if (ms == NULL) in magic_close()
319 if (ms == NULL) in magic_load()
332 if (ms == NULL) in magic_load_buffers()
342 if (ms == NULL) in magic_compile()
350 if (ms == NULL) in magic_check()
358 if (ms == NULL) in magic_list()
404 if (ms == NULL) in magic_descriptor()
415 if (ms == NULL) in magic_file()
551 if (ms == NULL) in magic_buffer()
571 return (ms->event_flags & EVENT_HAD_ERR) ? ms->o.buf : NULL; in magic_error()
[all …]
H A Dsoftmagic.c684 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
693 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
702 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
710 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
718 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
770 file_oomem(ms, ms->search.rm_len); in mprint()
775 rval = file_printf(ms, F(ms, desc, "%s"), file_printable(ms, in mprint()
795 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
808 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
815 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
[all …]
H A Dreadcdf.c42 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) argument
169 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info()
174 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info()
179 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info()
184 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
189 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
233 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
244 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
274 if (NOTMIME(ms)) { in cdf_file_catalog()
308 if (NOTMIME(ms)) { in cdf_file_summary_info()
[all …]
H A Dreadelf.c381 if (file_printf(ms, in dophn_core()
958 if (file_printf(ms, in get_offset_from_virtaddr()
1141 ms->mode |= 0111; in dodynamic()
1143 ms->mode &= ~0111; in dodynamic()
1503 file_badseek(ms); in doshn()
1517 file_badread(ms); in doshn()
1623 if (file_printf(ms, in doshn()
1745 ms->mode &= ~0111; in dophn_exec()
1806 if (file_printf(ms, ", interpreter %s", file_printable(ms, in dophn_exec()
1856 file_badread(ms); in file_tryelf()
[all …]
H A Dapprentice.c217 magic_close(ms); in main()
538 if (ms == NULL) in file_ms_free()
544 free(ms->c.li); in file_ms_free()
548 free(ms); in file_ms_free()
566 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc()
568 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
578 ms->line = 0; in file_ms_alloc()
591 return ms; in file_ms_alloc()
593 free(ms); in file_ms_alloc()
709 file_oomem(ms, sizeof(*ms->mlist[i])); in buffer_apprentice()
[all …]
H A Dascmagic.c115 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding()
147 file_oomem(ms, mlen); in file_ascmagic_with_encoding()
210 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
217 len = file_printedlen(ms); in file_ascmagic_with_encoding()
243 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding()
291 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding()
298 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
302 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding()
305 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
309 if (file_printf(ms, " LF") == -1) in file_ascmagic_with_encoding()
[all …]
H A Dapptype.c57 file_error(ms, errno, "cannot create tempnam"); in file_os2_apptype()
109 if (file_printf(ms, "32-bit ") == -1) in file_os2_apptype()
119 if (file_printf(ms, "protected ") == -1) in file_os2_apptype()
121 if (file_printf(ms, "DLL") == -1) in file_os2_apptype()
124 if (file_printf(ms, "Windows executable") == -1) in file_os2_apptype()
134 if (file_printf(ms, "DOS executable") == -1) in file_os2_apptype()
138 if (file_printf(ms, ", magic(4)-> ") == -1) in file_os2_apptype()
143 if (file_printf(ms, "bound executable") == -1) in file_os2_apptype()
146 if (file_printf(ms, "PM executable") == -1) in file_os2_apptype()
159 if (file_printf(ms, " [WINDOWCOMPAT]") == -1) in file_os2_apptype()
[all …]
H A Delfclass.h35 notecount = ms->elf_notes_max;
40 if (phnum > ms->elf_phnum_max)
43 if (dophn_core(ms, clazz, swap, fd,
53 if (phnum > ms->elf_phnum_max)
54 return toomany(ms, "program", phnum);
56 if (shnum > ms->elf_shnum_max)
57 return toomany(ms, "section", shnum);
58 if (dophn_exec(ms, clazz, swap, fd,
66 if (shnum > ms->elf_shnum_max)
68 if (doshn(ms, clazz, swap, fd,
[all …]
/dragonfly/lib/libc/citrus/
H A Dcitrus_memstream.h55 return (ms->ms_pos >= _citrus_region_size(&ms->ms_region)); in _citrus_memory_stream_iseof()
144 ms->ms_pos--; in _citrus_memory_stream_ungetc()
153 return (_citrus_region_peek8(&ms->ms_region, ms->ms_pos)); in _citrus_memory_stream_peek()
162 if (ms->ms_pos + sz > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_getregion()
165 ret = _citrus_region_offset(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_getregion()
177 if (ms->ms_pos + 1 > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_get8()
180 *rval = _citrus_region_peek8(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_get8()
190 if (ms->ms_pos + 2 > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_get16()
193 *rval = _citrus_region_peek16(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_get16()
203 if (ms->ms_pos + 4 > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_get32()
[all …]
H A Dcitrus_prop.c149 ch = _memstream_getc(ms);
153 ch = _memstream_getc(ms);
199 _memstream_skip_ws(ms); in _citrus_prop_read_character()
200 ch = _memstream_getc(ms); in _citrus_prop_read_character()
209 ch = _memstream_getc(ms); in _citrus_prop_read_character()
220 _memstream_skip_ws(ms); in _citrus_prop_read_bool()
256 _memstream_skip_ws(ms); in _citrus_prop_read_str()
328 ch = _memstream_getc(ms); in _citrus_prop_read_symbol()
358 _memstream_skip_ws(ms); in _citrus_prop_parse_element()
368 _memstream_skip_ws(ms); in _citrus_prop_parse_element()
[all …]
H A Dcitrus_memstream.c49 if (ms->ms_pos>=_region_size(&ms->ms_region)) in _citrus_memory_stream_getln()
52 h = p = (uint8_t *)_region_offset(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_getln()
54 for (i = _region_size(&ms->ms_region) - ms->ms_pos; i > 0; i--) { in _citrus_memory_stream_getln()
61 ms->ms_pos += ret; in _citrus_memory_stream_getln()
77 p = _citrus_memory_stream_getln(ms, &len); in _citrus_memory_stream_matchline()
119 if (ms->ms_pos >= _region_size(&ms->ms_region)) in _citrus_memory_stream_chr()
122 head = _region_offset(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_chr()
126 ms->ms_pos = _region_size(&ms->ms_region); in _citrus_memory_stream_chr()
132 ms->ms_pos += sz + 1; in _citrus_memory_stream_chr()
142 while ((ch = _memstream_peek(ms)) != EOF) { in _citrus_memory_stream_skip_ws()
[all …]
H A Dcitrus_db.c62 struct _memstream ms; in _citrus_db_open() local
64 _memstream_bind(&ms, r); in _citrus_db_open()
76 _memstream_remainder(&ms)) in _citrus_db_open()
104 struct _memstream ms; in _citrus_db_lookup() local
108 _memstream_bind(&ms, &db->db_region); in _citrus_db_lookup()
157 if (_memstream_getregion(&ms, &r, in _citrus_db_lookup()
169 &ms, data, in _citrus_db_lookup()
284 struct _memstream ms; in _citrus_db_get_number_of_entries() local
286 _memstream_bind(&ms, &db->db_region); in _citrus_db_get_number_of_entries()
298 struct _memstream ms; in _citrus_db_get_entry() local
[all …]
/dragonfly/lib/libc/stdio/
H A Dopen_memstream.c65 ms, ms->len, newsize); in memstream_grow()
67 memset(buf + ms->len + 1, 0, newsize - ms->len); in memstream_grow()
81 assert(ms->len >= 0 && ms->offset >= 0); in memstream_update()
82 *ms->sizep = ms->len < ms->offset ? ms->len : ms->offset; in memstream_update()
91 ms = cookie; in memstream_write()
92 if (!memstream_grow(ms, ms->offset + len)) in memstream_write()
94 tocopy = ms->len - ms->offset; in memstream_write()
97 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write()
150 ms->offset = ms->len + pos; in memstream_seek()
183 ms = malloc(sizeof(*ms)); in open_memstream()
[all …]
H A Dopen_wmemstream.c66 ms, ms->len, newsize); in wmemstream_grow()
68 wmemset(buf + ms->len + 1, 0, newsize - ms->len); in wmemstream_grow()
82 assert(ms->len >= 0 && ms->offset >= 0); in wmemstream_update()
83 *ms->sizep = ms->len < ms->offset ? ms->len : ms->offset; in wmemstream_update()
128 if (!wmemstream_grow(ms, ms->offset + wlen)) in wmemstream_write()
137 while (len > 0 && ms->offset < ms->len) { in wmemstream_write()
138 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len, in wmemstream_write()
208 ms->offset = ms->len + pos; in wmemstream_seek()
213 memset(&ms->mbstate, 0, sizeof(ms->mbstate)); in wmemstream_seek()
244 ms = malloc(sizeof(*ms)); in open_wmemstream()
[all …]
/dragonfly/contrib/gdb-7/gdb/
H A Dmacroscope.c42 struct macro_scope *ms; in sal_macro_scope() local
48 ms = (struct macro_scope *) xmalloc (sizeof (*ms)); in sal_macro_scope()
56 ms->line = sal.line; in sal_macro_scope()
75 ms->line = -1; in sal_macro_scope()
83 return ms; in sal_macro_scope()
90 struct macro_scope *ms; in user_macro_scope() local
94 ms->line = -1; in user_macro_scope()
95 return ms; in user_macro_scope()
133 if (! ms) in default_macro_scope()
136 return ms; in default_macro_scope()
[all …]
H A Dmacrocmd.c58 struct macro_scope *ms = NULL; in macro_expand_command() local
74 ms = default_macro_scope (); in macro_expand_command()
75 if (ms) in macro_expand_command()
108 ms = default_macro_scope (); in macro_expand_once_command()
109 if (ms) in macro_expand_once_command()
248 if (! ms) in info_macro_command()
256 d = macro_lookup_definition (ms->file, ms->line, name); in info_macro_command()
261 = macro_definition_location (ms->file, ms->line, name, &line); in info_macro_command()
271 show_pp_source_pos (gdb_stdout, ms->file, ms->line); in info_macro_command()
296 if (! ms || ! ms->file || ! ms->file->table) in info_macros_command()
[all …]
/dragonfly/contrib/zstd/lib/compress/
H A Dzstd_lazy.c20 ZSTD_updateDUBT(ZSTD_matchState_t* ms, in ZSTD_updateDUBT() argument
28 U32* const bt = ms->chainTable; in ZSTD_updateDUBT()
34 U32 idx = ms->nextToUpdate; in ZSTD_updateDUBT()
55 ms->nextToUpdate = target; in ZSTD_updateDUBT()
154 ZSTD_matchState_t* ms, in ZSTD_DUBT_findBetterDictMatch() argument
388 if (ip < ms->window.base + ms->nextToUpdate) return 0; /* skipped area */ in ZSTD_BtFindBestMatch()
470 ms->nextToUpdate = target; in ZSTD_insertAndFindFirstIndex_internal()
476 return ZSTD_insertAndFindFirstIndex_internal(ms, cParams, ip, ms->cParams.minMatch); in ZSTD_insertAndFindFirstIndex()
507 assert(ms->cParams.hashLog >= ms->cParams.chainLog); in ZSTD_dedicatedDictSearch_lazy_loadDictionary()
591 ms->nextToUpdate = target; in ZSTD_dedicatedDictSearch_lazy_loadDictionary()
[all …]
H A Dzstd_lazy.h28 U32 ZSTD_insertAndFindFirstIndex(ZSTD_matchState_t* ms, const BYTE* ip);
35 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
38 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
41 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
44 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
48 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
51 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
54 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
57 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
61 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
[all …]
H A Dzstd_fast.c15 void ZSTD_fillHashTable(ZSTD_matchState_t* ms, in ZSTD_fillHashTable() argument
20 U32* const hashTable = ms->hashTable; in ZSTD_fillHashTable()
23 const BYTE* const base = ms->window.base; in ZSTD_fillHashTable()
24 const BYTE* ip = base + ms->nextToUpdate; in ZSTD_fillHashTable()
53 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_generic()
190 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast()
191 assert(ms->dictMatchState == NULL); in ZSTD_compressBlock_fast()
212 U32* const hashTable = ms->hashTable; in ZSTD_compressBlock_fast_dictMatchState_generic()
358 U32 const mls = ms->cParams.minMatch; in ZSTD_compressBlock_fast_dictMatchState()
359 assert(ms->dictMatchState != NULL); in ZSTD_compressBlock_fast_dictMatchState()
[all …]
/dragonfly/lib/i18n_module/mapper_std/
H A Dcitrus_mapper_std.c88 rc = &ms->ms_rowcol; in rowcol_convert()
237 rc = &ms->ms_rowcol; in rowcol_uninit()
254 rc = &ms->ms_rowcol; in rowcol_init()
356 ms = malloc(sizeof(*ms)); in _citrus_mapper_std_mapper_init()
357 if (ms == NULL) { in _citrus_mapper_std_mapper_init()
369 ret = _db_open(&ms->ms_db, &ms->ms_file, _CITRUS_MAPPER_STD_MAGIC, in _citrus_mapper_std_mapper_init()
403 free(ms); in _citrus_mapper_std_mapper_init()
415 if (ms->ms_uninit) in _citrus_mapper_std_mapper_uninit()
416 (*ms->ms_uninit)(ms); in _citrus_mapper_std_mapper_uninit()
419 free(ms); in _citrus_mapper_std_mapper_uninit()
[all …]
/dragonfly/lib/i18n_module/mapper_zone/
H A Dcitrus_mapper_zone.c107 c = _memstream_peek(ms); in get_imm()
111 _memstream_getc(ms); in get_imm()
135 c = _memstream_peek(ms); in get_tok()
139 _memstream_getc(ms); in get_tok()
149 _memstream_getc(ms); in get_tok()
167 _memstream_getc(ms); in get_tok()
244 ret = get_tok(ms, &ps); in parse_var()
259 ret = get_tok(ms, &ps); in parse_var()
282 ret = get_tok(ms, &ps); in parse_var()
306 struct _memstream ms; in _citrus_mapper_zone_mapper_init() local
[all …]
/dragonfly/sys/netproto/802_11/wlan/
H A Dieee80211_mesh.c237 MESH_RT_LOCK(ms); in ieee80211_mesh_rt_find()
255 MESH_RT_LOCK(ms); in ieee80211_mesh_rt_add()
315 MESH_RT_LOCK(ms); in ieee80211_mesh_proxy_check()
399 if (ms == NULL) in ieee80211_mesh_rt_flush()
432 if (ms == NULL) in mesh_rt_flush_invalid()
682 ms->ms_seq = 0; in mesh_vattach()
850 callout_reset(&ms->ms_cleantimer, ms->ms_ppath->mpp_inact, in mesh_newstate()
869 callout_reset(&ms->ms_cleantimer, ms->ms_ppath->mpp_inact, in mesh_rt_cleanup_cb()
1952 if (memcmp(scan.meshid+2, ms->ms_id, ms->ms_idlen) != 0 || in mesh_recv_mgmt()
3152 return memcmp(ms->ms_id, ie + 2, ms->ms_idlen); in mesh_verify_meshid()
[all …]
/dragonfly/games/sail/
H A Dpl_3.c98 target = range(ms, closest); in acceptcombat()
126 rakehim = gunsbear(ms, closest) && !gunsbear(closest, ms); in acceptcombat()
224 if (sp == ms || sp->file->dir == 0) in grapungrap()
226 if (range(ms, sp) > 1 && !grappled2(ms, sp)) in grapungrap()
233 send_grap(ms, sp->file->index); in grapungrap()
242 if (ms->nationality in grapungrap()
245 cleangrapple(ms, sp, 0); in grapungrap()
264 if (fouled2(ms, to) == 0) in unfoulplayer()
268 for (i = fouled2(ms, to); --i >= 0;) { in unfoulplayer()
270 cleanfoul(ms, to, 0); in unfoulplayer()
[all …]

12345678