Home
last modified time | relevance | path

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

12345678910>>...27

/freebsd-12.1/contrib/file/src/
H A Dfuncs.c73 free(ms->o.buf); in file_vprintf()
76 ms->o.buf = buf; in file_vprintf()
108 free(ms->o.buf); in file_error_core()
112 if (ms->o.buf && *ms->o.buf) in file_error_core()
140 file_error_core(ms, 0, f, va, ms->line); in file_magerror()
360 ms->error = -1; in file_reset()
439 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer()
456 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
457 ms->c.li = CAST(struct level_info *, (ms->c.li == NULL) ? in file_check_mem()
476 return ms->o.buf == NULL ? 0 : strlen(ms->o.buf); in file_printedlen()
[all …]
H A Dfsmagic.c70 int mime = ms->flags & MAGIC_MIME; in bad_link()
76 if (ms->flags & MAGIC_ERROR) { in bad_link()
77 file_error(ms, err, in bad_link()
159 if (ms->flags & MAGIC_ERROR) { in file_fsmagic()
302 } else if (file_printf(ms, in file_fsmagic()
323 file_error(ms, 0, in file_fsmagic()
328 if (handle_mime(ms, mime, in file_fsmagic()
332 } else if (file_printf(ms, in file_fsmagic()
352 ms->flags &= MAGIC_SYMLINK; in file_fsmagic()
353 p = magic_file(ms, buf); in file_fsmagic()
[all …]
H A Dmagic.c291 if (ms == NULL) in magic_close()
302 if (ms == NULL) in magic_load()
315 if (ms == NULL) in magic_load_buffers()
324 if (ms == NULL) in magic_compile()
332 if (ms == NULL) in magic_check()
340 if (ms == NULL) in magic_list()
386 if (ms == NULL) in magic_descriptor()
397 if (ms == NULL) in magic_file()
539 if (ms == NULL) in magic_buffer()
559 return (ms->event_flags & EVENT_HAD_ERR) ? ms->o.buf : NULL; in magic_error()
[all …]
H A Dsoftmagic.c540 if (file_printf(ms, F(ms, desc, "%d"), in mprint()
562 if (file_printf(ms, F(ms, desc, "%u"), in mprint()
646 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
659 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
669 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
678 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
687 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
696 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
749 file_oomem(ms, ms->search.rm_len); in mprint()
779 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
[all …]
H A Dreadcdf.c46 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) argument
168 if (NOTMIME(ms) && file_printf(ms, ", %s: %hd", buf, in cdf_file_property_info()
173 if (NOTMIME(ms) && file_printf(ms, ", %s: %d", buf, in cdf_file_property_info()
178 if (NOTMIME(ms) && file_printf(ms, ", %s: %u", buf, in cdf_file_property_info()
183 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
188 if (NOTMIME(ms) && file_printf(ms, ", %s: %g", buf, in cdf_file_property_info()
232 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
243 if (NOTMIME(ms) && file_printf(ms, in cdf_file_property_info()
273 if (NOTMIME(ms)) { in cdf_file_catalog()
307 if (NOTMIME(ms)) { in cdf_file_summary_info()
[all …]
H A Dapprentice.c201 magic_close(ms); in main()
490 if (ms == NULL) in file_ms_free()
496 free(ms->c.li); in file_ms_free()
497 free(ms); in file_ms_free()
515 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc()
516 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
526 ms->line = 0; in file_ms_alloc()
534 return ms; in file_ms_alloc()
536 free(ms); in file_ms_alloc()
622 file_oomem(ms, sizeof(*ms->mlist[i])); in buffer_apprentice()
[all …]
H A Dascmagic.c109 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding()
141 file_oomem(ms, mlen); in file_ascmagic_with_encoding()
196 if (seen_cr && nbytes < ms->bytes_max) in file_ascmagic_with_encoding()
214 if (file_printedlen(ms)) { in file_ascmagic_with_encoding()
220 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding()
266 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding()
273 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
277 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding()
280 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
284 if (file_printf(ms, " LF") == -1) in file_ascmagic_with_encoding()
[all …]
H A Dreadelf.c367 file_badread(ms); in dophn_core()
386 file_badread(ms); in dophn_core()
890 file_badread(ms); in get_offset_from_virtaddr()
920 file_badread(ms); in get_string_on_virtaddr()
1066 ms->mode |= 0111; in dodynamic()
1068 ms->mode &= ~0111; in dodynamic()
1300 file_badread(ms); in doshn()
1311 file_badread(ms); in doshn()
1355 file_badread(ms); in doshn()
1388 file_badseek(ms); in doshn()
[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 …]
/freebsd-12.1/lib/libc/iconv/
H A Dcitrus_memstream.h57 return (ms->ms_pos >= _citrus_region_size(&ms->ms_region)); in _citrus_memory_stream_iseof()
146 ms->ms_pos--; in _citrus_memory_stream_ungetc()
155 return (_citrus_region_peek8(&ms->ms_region, ms->ms_pos)); in _citrus_memory_stream_peek()
164 if (ms->ms_pos + sz > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_getregion()
167 ret = _citrus_region_offset(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_getregion()
179 if (ms->ms_pos + 1 > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_get8()
182 *rval = _citrus_region_peek8(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_get8()
192 if (ms->ms_pos + 2 > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_get16()
195 *rval = _citrus_region_peek16(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_get16()
205 if (ms->ms_pos + 4 > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_get32()
[all …]
H A Dcitrus_prop.c154 ch = _memstream_getc(ms);
158 ch = _memstream_getc(ms);
204 _memstream_skip_ws(ms); in _citrus_prop_read_character()
205 ch = _memstream_getc(ms); in _citrus_prop_read_character()
214 ch = _memstream_getc(ms); in _citrus_prop_read_character()
225 _memstream_skip_ws(ms); in _citrus_prop_read_bool()
261 _memstream_skip_ws(ms); in _citrus_prop_read_str()
333 ch = _memstream_getc(ms); in _citrus_prop_read_symbol()
363 _memstream_skip_ws(ms); in _citrus_prop_parse_element()
373 _memstream_skip_ws(ms); in _citrus_prop_parse_element()
[all …]
H A Dcitrus_memstream.c51 if (ms->ms_pos>=_region_size(&ms->ms_region)) in _citrus_memory_stream_getln()
54 h = p = (uint8_t *)_region_offset(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_getln()
56 for (i = _region_size(&ms->ms_region) - ms->ms_pos; i > 0; i--) { in _citrus_memory_stream_getln()
63 ms->ms_pos += ret; in _citrus_memory_stream_getln()
79 p = _citrus_memory_stream_getln(ms, &len); in _citrus_memory_stream_matchline()
121 if (ms->ms_pos >= _region_size(&ms->ms_region)) in _citrus_memory_stream_chr()
124 head = _region_offset(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_chr()
128 ms->ms_pos = _region_size(&ms->ms_region); in _citrus_memory_stream_chr()
134 ms->ms_pos += sz + 1; in _citrus_memory_stream_chr()
144 while ((ch = _memstream_peek(ms)) != EOF) { in _citrus_memory_stream_skip_ws()
[all …]
/freebsd-12.1/lib/libc/stdio/
H A Dopen_memstream.c71 ms, ms->len, newsize); in memstream_grow()
73 memset(buf + ms->len + 1, 0, newsize - ms->len); in memstream_grow()
87 assert(ms->len >= 0 && ms->offset >= 0); in memstream_update()
88 *ms->sizep = ms->len < ms->offset ? ms->len : ms->offset; in memstream_update()
97 ms = cookie; in memstream_write()
98 if (!memstream_grow(ms, ms->offset + len)) in memstream_write()
100 tocopy = ms->len - ms->offset; in memstream_write()
103 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write()
156 ms->offset = ms->len + pos; in memstream_seek()
189 ms = malloc(sizeof(*ms)); in open_memstream()
[all …]
H A Dopen_wmemstream.c72 ms, ms->len, newsize); in wmemstream_grow()
74 wmemset(buf + ms->len + 1, 0, newsize - ms->len); in wmemstream_grow()
88 assert(ms->len >= 0 && ms->offset >= 0); in wmemstream_update()
89 *ms->sizep = ms->len < ms->offset ? ms->len : ms->offset; in wmemstream_update()
134 if (!wmemstream_grow(ms, ms->offset + wlen)) in wmemstream_write()
143 while (len > 0 && ms->offset < ms->len) { in wmemstream_write()
144 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len, in wmemstream_write()
214 ms->offset = ms->len + pos; in wmemstream_seek()
219 memset(&ms->mbstate, 0, sizeof(ms->mbstate)); in wmemstream_seek()
250 ms = malloc(sizeof(*ms)); in open_wmemstream()
[all …]
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlstrlib.c577 lua_pushinteger(ms->L, ms->capture[i].init - ms->src_init + 1); in push_onecapture()
579 lua_pushlstring(ms->L, ms->capture[i].init, l); in push_onecapture()
586 int nlevels = (ms->level == 0 && s) ? 1 : ms->level; in push_captures()
627 MatchState ms; in str_find_aux() local
633 ms.L = L; in str_find_aux()
669 MatchState ms; in gmatch_aux() local
674 ms.L = L; in gmatch_aux()
683 ms.level = 0; in gmatch_aux()
772 MatchState ms; in str_gsub() local
781 ms.L = L; in str_gsub()
[all …]
/freebsd-12.1/sys/geom/
H A Dgeom_bsd.c113 ms = gsp->softc; in g_bsd_modify()
183 ms->ondisk = dl; in g_bsd_modify()
195 MD5Update(&md5sum, ms->label, sizeof(ms->label)); in g_bsd_modify()
226 dl = &ms->ondisk; in g_bsd_try()
256 ms = gsp->softc; in g_bsd_writelabel()
265 bcopy(ms->label, buf + secoff, sizeof(ms->label)); in g_bsd_writelabel()
268 bcopy(ms->label, buf + ms->labeloffset, sizeof(ms->label)); in g_bsd_writelabel()
310 ms = gsp->softc; in g_bsd_hotwrite()
331 ms = gsp->softc; in g_bsd_start()
352 ms = gsp->softc; in g_bsd_dumpconf()
[all …]
/freebsd-12.1/contrib/apr-util/memcache/
H A Dapr_memcache.c204 ms = NULL; in apr_memcache_find_server_hash_default()
207 return ms; in apr_memcache_find_server_hash_default()
361 conn->ms = ms; in mc_conn_construct()
443 *ms = server; in apr_memcache_server_create()
624 if (ms == NULL) in storage_cmd_write()
749 if (ms == NULL) in apr_memcache_getp()
1154 apr_hash_set(server_queries, &ms, sizeof(ms), NULL); in mget_conn_result()
1241 server_query->ms = ms; in apr_memcache_multgetp()
1308 ms = server_query->ms; in apr_memcache_multgetp()
1342 ms = server_query->ms; in apr_memcache_multgetp()
[all …]
/freebsd-12.1/sys/contrib/zstd/lib/compress/
H A Dzstd_lazy.c27 U32* const bt = ms->chainTable; in ZSTD_updateDUBT()
33 U32 idx = ms->nextToUpdate; in ZSTD_updateDUBT()
54 ms->nextToUpdate = target; in ZSTD_updateDUBT()
67 U32* const bt = ms->chainTable; in ZSTD_insertDUBT1()
282 if (ip < ms->window.base + ms->nextToUpdate) return 0; /* skipped area */ in ZSTD_BtFindBestMatch()
312 if (ip < ms->window.base + ms->nextToUpdate) return 0; /* skipped area */ in ZSTD_BtFindBestMatch_extDict()
352 U32 idx = ms->nextToUpdate; in ZSTD_insertAndFindFirstIndex_internal()
361 ms->nextToUpdate = target; in ZSTD_insertAndFindFirstIndex_internal()
474 const BYTE* const base = ms->window.base + ms->window.dictLimit; in ZSTD_compressBlock_lazy_generic()
484 ms->nextToUpdate3 = ms->nextToUpdate; in ZSTD_compressBlock_lazy_generic()
[all …]
/freebsd-12.1/contrib/lua/src/
H A Dlstrlib.c244 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED) in check_capture()
407 ms->capture[l].len = s - ms->capture[l].init; /* close capture */ in end_capture()
522 ms->matchdepth++; in match()
562 lua_pushinteger(ms->L, (ms->capture[i].init - ms->src_init) + 1); in push_onecapture()
564 lua_pushlstring(ms->L, ms->capture[i].init, l); in push_onecapture()
571 int nlevels = (ms->level == 0 && s) ? 1 : ms->level; in push_captures()
593 ms->L = L; in prepstate()
602 ms->level = 0; in reprepstate()
628 MatchState ms; in str_find_aux() local
676 gm->ms.L = L; in gmatch_aux()
[all …]
/freebsd-12.1/lib/libiconv_modules/mapper_std/
H A Dcitrus_mapper_std.c90 rc = &ms->ms_rowcol; in rowcol_convert()
239 rc = &ms->ms_rowcol; in rowcol_uninit()
256 rc = &ms->ms_rowcol; in rowcol_init()
358 ms = malloc(sizeof(*ms)); in _citrus_mapper_std_mapper_init()
359 if (ms == NULL) { in _citrus_mapper_std_mapper_init()
371 ret = _db_open(&ms->ms_db, &ms->ms_file, _CITRUS_MAPPER_STD_MAGIC, in _citrus_mapper_std_mapper_init()
405 free(ms); in _citrus_mapper_std_mapper_init()
417 if (ms->ms_uninit) in _citrus_mapper_std_mapper_uninit()
418 (*ms->ms_uninit)(ms); in _citrus_mapper_std_mapper_uninit()
421 free(ms); in _citrus_mapper_std_mapper_uninit()
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/buffering/
H A Dtst.fill1.d54 tick-10ms
59 tick-10ms
64 tick-10ms
69 tick-10ms
74 tick-10ms
79 tick-10ms
84 tick-10ms
89 tick-10ms
94 tick-10ms
99 tick-10ms
[all …]
/freebsd-12.1/contrib/gcclibs/libiberty/
H A Dpex-msdos.c109 struct pex_msdos *ms; in pex_msdos_open() local
116 if (ms->files[i] == NULL) in pex_msdos_open()
118 ms->files[i] = xstrdup (name); in pex_msdos_open()
144 struct pex_msdos *ms; in pex_msdos_close() local
149 free (ms->files[fdindex]); in pex_msdos_close()
150 ms->files[fdindex] = NULL; in pex_msdos_close()
162 struct pex_msdos *ms; in pex_msdos_exec_child() local
275 ms->statuses = XRESIZEVEC(int, ms->statuses, obj->count + 1); in pex_msdos_exec_child()
291 struct pex_msdos *ms; in pex_msdos_wait() local
298 *status = ms->statuses[pid]; in pex_msdos_wait()
[all …]
/freebsd-12.1/lib/libiconv_modules/mapper_zone/
H A Dcitrus_mapper_zone.c109 c = _memstream_peek(ms); in get_imm()
113 _memstream_getc(ms); in get_imm()
137 c = _memstream_peek(ms); in get_tok()
141 _memstream_getc(ms); in get_tok()
151 _memstream_getc(ms); in get_tok()
169 _memstream_getc(ms); in get_tok()
246 ret = get_tok(ms, &ps); in parse_var()
261 ret = get_tok(ms, &ps); in parse_var()
284 ret = get_tok(ms, &ps); in parse_var()
308 struct _memstream ms; in _citrus_mapper_zone_mapper_init() local
[all …]
/freebsd-12.1/contrib/gdb/gdb/
H A Dmacrocmd.c51 struct macro_scope *ms = NULL; in macro_expand_command() local
66 ms = default_macro_scope (); in macro_expand_command()
67 if (ms) in macro_expand_command()
87 struct macro_scope *ms = NULL; in macro_expand_once_command() local
102 ms = default_macro_scope (); in macro_expand_once_command()
103 if (ms) in macro_expand_once_command()
149 ms = default_macro_scope (); in info_macro_command()
150 if (! ms) in info_macro_command()
153 d = macro_lookup_definition (ms->file, ms->line, name); in info_macro_command()
158 = macro_definition_location (ms->file, ms->line, name, &line); in info_macro_command()
[all …]
/freebsd-12.1/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/predicates/
H A Dtst.complex.d47 tick-10ms
55 tick-10ms
61 tick-10ms
67 tick-10ms
73 tick-10ms
79 tick-10ms
85 tick-10ms
91 tick-10ms
97 tick-10ms
103 tick-10ms
[all …]

12345678910>>...27