Home
last modified time | relevance | path

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

12345678910>>...42

/freebsd-14.2/lib/libc/iconv/
H A Dcitrus_memstream.h56 return (ms->ms_pos >= _citrus_region_size(&ms->ms_region)); in _citrus_memory_stream_iseof()
145 ms->ms_pos--; in _citrus_memory_stream_ungetc()
154 return (_citrus_region_peek8(&ms->ms_region, ms->ms_pos)); in _citrus_memory_stream_peek()
163 if (ms->ms_pos + sz > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_getregion()
166 ret = _citrus_region_offset(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_getregion()
178 if (ms->ms_pos + 1 > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_get8()
181 *rval = _citrus_region_peek8(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_get8()
191 if (ms->ms_pos + 2 > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_get16()
194 *rval = _citrus_region_peek16(&ms->ms_region, ms->ms_pos); in _citrus_memory_stream_get16()
204 if (ms->ms_pos + 4 > _citrus_region_size(&ms->ms_region)) in _citrus_memory_stream_get32()
[all …]
H A Dcitrus_prop.c152 ch = _memstream_getc(ms);
156 ch = _memstream_getc(ms);
203 _memstream_skip_ws(ms); in _citrus_prop_read_character()
204 ch = _memstream_getc(ms); in _citrus_prop_read_character()
213 ch = _memstream_getc(ms); in _citrus_prop_read_character()
224 _memstream_skip_ws(ms); in _citrus_prop_read_bool()
260 _memstream_skip_ws(ms); in _citrus_prop_read_str()
332 ch = _memstream_getc(ms); in _citrus_prop_read_symbol()
362 _memstream_skip_ws(ms); in _citrus_prop_parse_element()
372 _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 …]
/freebsd-14.2/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()
527 ms->error = -1; in file_reset()
606 for (np = ms->o.pbuf, op = ms->o.buf; *op;) { in file_getbuffer()
623 len = (ms->c.len = 20 + level) * sizeof(*ms->c.li); in file_check_mem()
624 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.c687 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
696 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
705 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
713 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
721 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
773 file_oomem(ms, ms->search.rm_len); in mprint()
778 rval = file_printf(ms, F(ms, desc, "%s"), file_printable(ms, in mprint()
798 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
811 if (file_printf(ms, F(ms, desc, "%s"), in mprint()
818 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.c378 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.c216 magic_close(ms); in main()
512 file_oomem(ms, sizeof(*ms->mlist[0])); in apprentice_1()
546 free(ms); in file_ms_free()
564 ms->o.buf = ms->o.pbuf = NULL; in file_ms_alloc()
566 len = (ms->c.len = 10) * sizeof(*ms->c.li); in file_ms_alloc()
576 ms->line = 0; in file_ms_alloc()
590 return ms; in file_ms_alloc()
592 free(ms); in file_ms_alloc()
707 file_oomem(ms, sizeof(*ms->mlist[0])); in buffer_apprentice()
719 file_oomem(ms, sizeof(*ms->mlist[0])); 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()
212 len = file_printedlen(ms); in file_ascmagic_with_encoding()
237 if (file_printf(ms, ", ") == -1) in file_ascmagic_with_encoding()
280 if (file_printf(ms, ", with") == -1) in file_ascmagic_with_encoding()
285 if (file_printf(ms, " no") == -1) in file_ascmagic_with_encoding()
292 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
296 if (file_printf(ms, " CR") == -1) in file_ascmagic_with_encoding()
299 if (file_printf(ms, ",") == -1) in file_ascmagic_with_encoding()
303 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, "file_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-14.2/lib/libc/stdio/
H A Dopen_memstream.c68 ms, ms->len, newsize); in memstream_grow()
70 memset(buf + ms->len + 1, 0, newsize - ms->len); in memstream_grow()
84 assert(ms->len >= 0 && ms->offset >= 0); in memstream_update()
85 *ms->sizep = ms->len < ms->offset ? ms->len : ms->offset; in memstream_update()
94 ms = cookie; in memstream_write()
95 if (!memstream_grow(ms, ms->offset + len)) in memstream_write()
97 tocopy = ms->len - ms->offset; in memstream_write()
100 memcpy(*ms->bufp + ms->offset, buf, tocopy); in memstream_write()
153 ms->offset = ms->len + pos; in memstream_seek()
186 ms = malloc(sizeof(*ms)); in open_memstream()
[all …]
H A Dopen_wmemstream.c69 ms, ms->len, newsize); in wmemstream_grow()
71 wmemset(buf + ms->len + 1, 0, newsize - ms->len); in wmemstream_grow()
85 assert(ms->len >= 0 && ms->offset >= 0); in wmemstream_update()
86 *ms->sizep = ms->len < ms->offset ? ms->len : ms->offset; in wmemstream_update()
131 if (!wmemstream_grow(ms, ms->offset + wlen)) in wmemstream_write()
140 while (len > 0 && ms->offset < ms->len) { in wmemstream_write()
141 charlen = mbrtowc(*ms->bufp + ms->offset, buf, len, in wmemstream_write()
211 ms->offset = ms->len + pos; in wmemstream_seek()
216 memset(&ms->mbstate, 0, sizeof(ms->mbstate)); in wmemstream_seek()
247 ms = malloc(sizeof(*ms)); in open_wmemstream()
[all …]
/freebsd-14.2/tests/sys/kern/
H A Dmodule_test.c101 ms.version = sizeof(ms); in ATF_TC_BODY()
115 ms.version = sizeof(ms); in ATF_TC_BODY()
118 if (strnlen(ms.name, sizeof(ms.name)) < sizeof(ms.name)) in ATF_TC_BODY()
130 } ms; in ATF_TC_BODY() local
133 ms.version = sizeof(ms); in ATF_TC_BODY()
147 ms.version = sizeof(ms); in ATF_TC_BODY()
150 if (strnlen(ms.name, sizeof(ms.name)) < sizeof(ms.name)) in ATF_TC_BODY()
163 } ms; in ATF_TC_BODY() local
166 ms.version = sizeof(ms); in ATF_TC_BODY()
180 ms.version = sizeof(ms); in ATF_TC_BODY()
[all …]
/freebsd-14.2/sys/contrib/openzfs/module/lua/
H A Dlstrlib.c558 lua_pushinteger(ms->L, ms->capture[i].init - ms->src_init + 1); in push_onecapture()
560 lua_pushlstring(ms->L, ms->capture[i].init, l); in push_onecapture()
567 int nlevels = (ms->level == 0 && s) ? 1 : ms->level; in push_captures()
608 MatchState ms; in str_find_aux() local
614 ms.L = L; in str_find_aux()
650 MatchState ms; in gmatch_aux() local
655 ms.L = L; in gmatch_aux()
664 ms.level = 0; in gmatch_aux()
753 MatchState ms; in str_gsub() local
762 ms.L = L; in str_gsub()
[all …]
/freebsd-14.2/sys/contrib/zstd/lib/compress/
H A Dzstd_lazy.h28 U32 ZSTD_insertAndFindFirstIndex(ZSTD_matchState_t* ms, const BYTE* ip);
29 void ZSTD_row_update(ZSTD_matchState_t* const ms, const BYTE* ip);
36 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
39 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
42 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
45 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],
58 ZSTD_matchState_t* ms, seqStore_t* seqStore, U32 rep[ZSTD_REP_NUM],
[all …]
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()
389 if (ip < ms->window.base + ms->nextToUpdate) return 0; /* skipped area */ in ZSTD_BtFindBestMatch()
425 assert(ms->cParams.hashLog > ms->cParams.chainLog); in ZSTD_dedicatedDictSearch_lazy_loadDictionary()
509 ms->nextToUpdate = target; in ZSTD_dedicatedDictSearch_lazy_loadDictionary()
637 ms->nextToUpdate = target; in ZSTD_insertAndFindFirstIndex_internal()
643 return ZSTD_insertAndFindFirstIndex_internal(ms, cParams, ip, ms->cParams.minMatch); in ZSTD_insertAndFindFirstIndex()
889ms->hashCache[2], ms->hashCache[3], ms->hashCache[4], in ZSTD_row_fillHashCache()
[all …]
/freebsd-14.2/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-14.2/sys/contrib/openzfs/module/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()
70 U32* const bt = ms->chainTable; in ZSTD_insertDUBT1()
154 ZSTD_matchState_t* ms, in ZSTD_DUBT_findBetterDictMatch() argument
387 if (ip < ms->window.base + ms->nextToUpdate) return 0; /* skipped area */ in ZSTD_BtFindBestMatch()
460 U32 idx = ms->nextToUpdate; in ZSTD_insertAndFindFirstIndex_internal()
469 ms->nextToUpdate = target; in ZSTD_insertAndFindFirstIndex_internal()
475 return ZSTD_insertAndFindFirstIndex_internal(ms, cParams, ip, ms->cParams.minMatch); in ZSTD_insertAndFindFirstIndex()
[all …]
/freebsd-14.2/lib/libiconv_modules/mapper_std/
H A Dcitrus_mapper_std.c89 rc = &ms->ms_rowcol; in rowcol_convert()
238 rc = &ms->ms_rowcol; in rowcol_uninit()
255 rc = &ms->ms_rowcol; in rowcol_init()
357 ms = malloc(sizeof(*ms)); in _citrus_mapper_std_mapper_init()
358 if (ms == NULL) { in _citrus_mapper_std_mapper_init()
370 ret = _db_open(&ms->ms_db, &ms->ms_file, _CITRUS_MAPPER_STD_MAGIC, in _citrus_mapper_std_mapper_init()
404 free(ms); in _citrus_mapper_std_mapper_init()
416 if (ms->ms_uninit) in _citrus_mapper_std_mapper_uninit()
417 (*ms->ms_uninit)(ms); in _citrus_mapper_std_mapper_uninit()
420 free(ms); in _citrus_mapper_std_mapper_uninit()
[all …]
/freebsd-14.2/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 …]
/freebsd-14.2/lib/libiconv_modules/mapper_zone/
H A Dcitrus_mapper_zone.c108 c = _memstream_peek(ms); in get_imm()
112 _memstream_getc(ms); in get_imm()
136 c = _memstream_peek(ms); in get_tok()
140 _memstream_getc(ms); in get_tok()
150 _memstream_getc(ms); in get_tok()
168 _memstream_getc(ms); in get_tok()
245 ret = get_tok(ms, &ps); in parse_var()
260 ret = get_tok(ms, &ps); in parse_var()
283 ret = get_tok(ms, &ps); in parse_var()
307 struct _memstream ms; in _citrus_mapper_zone_mapper_init() local
[all …]
/freebsd-14.2/contrib/libfido2/src/
H A Dconfig.c45 const char *pin, int *ms) in config_tx() argument
113 ms)) != FIDO_OK) in config_enable_entattest_wait()
116 return fido_rx_cbor_status(dev, ms); in config_enable_entattest_wait()
122 int ms = dev->timeout_ms; in fido_dev_enable_entattest() local
133 ms)) != FIDO_OK) in config_toggle_always_uv_wait()
142 int ms = dev->timeout_ms; in fido_dev_toggle_always_uv() local
176 pin, ms)) != FIDO_OK) { in config_pin_minlen_tx()
194 ms)) != FIDO_OK) in config_pin_minlen()
203 int ms = dev->timeout_ms; in fido_dev_set_pin_minlen() local
211 int ms = dev->timeout_ms; in fido_dev_force_pin_change() local
[all …]

12345678910>>...42