Home
last modified time | relevance | path

Searched full:ms (Results 1 – 25 of 2169) sorted by relevance

12345678910>>...87

/freebsd/lib/libc/iconv/
H A Dcitrus_memstream.h53 _citrus_memory_stream_iseof(struct _citrus_memory_stream *ms) in _citrus_memory_stream_iseof() argument
56 return (ms->ms_pos >= _citrus_region_size(&ms->ms_region)); in _citrus_memory_stream_iseof()
60 _citrus_memory_stream_bind(struct _citrus_memory_stream * __restrict ms, in _citrus_memory_stream_bind() argument
64 ms->ms_region = *r; in _citrus_memory_stream_bind()
65 ms->ms_pos = 0; in _citrus_memory_stream_bind()
69 _citrus_memory_stream_bind_ptr(struct _citrus_memory_stream * __restrict ms, in _citrus_memory_stream_bind_ptr() argument
75 _citrus_memory_stream_bind(ms, &r); in _citrus_memory_stream_bind_ptr()
79 _citrus_memory_stream_rewind(struct _citrus_memory_stream *ms) in _citrus_memory_stream_rewind() argument
82 ms->ms_pos = 0; in _citrus_memory_stream_rewind()
86 _citrus_memory_stream_tell(struct _citrus_memory_stream *ms) in _citrus_memory_stream_tell() argument
[all …]
H A Dcitrus_prop.c79 _citrus_prop_read_##_func_##_common(struct _memstream * __restrict ms, \
90 ch = _memstream_getc(ms); \
99 _memstream_ungetc(ms, ch); \
109 _citrus_prop_read_##_func_(struct _memstream * __restrict ms, \ in _CITRUS_PROP_READ_UINT_COMMON()
114 _memstream_skip_ws(ms); \ in _CITRUS_PROP_READ_UINT_COMMON()
115 ch = _memstream_getc(ms); \ in _CITRUS_PROP_READ_UINT_COMMON()
121 ch = _memstream_getc(ms); \ in _CITRUS_PROP_READ_UINT_COMMON()
126 ch = _memstream_getc(ms); \ in _CITRUS_PROP_READ_UINT_COMMON()
128 ch = _memstream_getc(ms); \ in _CITRUS_PROP_READ_UINT_COMMON()
130 _memstream_ungetc(ms, ch); \ in _CITRUS_PROP_READ_UINT_COMMON()
[all …]
H A Dcitrus_memstream.c43 _citrus_memory_stream_getln(struct _citrus_memory_stream * __restrict ms, in _citrus_memory_stream_getln() argument
49 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()
69 _citrus_memory_stream_matchline(struct _citrus_memory_stream * __restrict ms, in _citrus_memory_stream_matchline() argument
77 p = _citrus_memory_stream_getln(ms, &len); in _citrus_memory_stream_matchline()
113 _citrus_memory_stream_chr(struct _citrus_memory_stream *ms, in _citrus_memory_stream_chr() argument
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()
[all …]
/freebsd/contrib/file/src/
H A Dfuncs.c67 file_clearbuf(struct magic_set *ms) in file_clearbuf() argument
69 free(ms->o.buf); in file_clearbuf()
70 ms->o.buf = NULL; in file_clearbuf()
71 ms->o.blen = 0; in file_clearbuf()
133 file_vprintf(struct magic_set *ms, const char *fmt, va_list ap) in file_vprintf() argument
139 if (ms->event_flags & EVENT_HAD_ERR) in file_vprintf()
143 file_clearbuf(ms); in file_vprintf()
144 file_error(ms, 0, "Bad magic format `%s' (%s)", fmt, tbuf); in file_vprintf()
149 if (len < 0 || (size_t)len > 1024 || len + ms->o.blen > 1024 * 1024) { in file_vprintf()
150 size_t blen = ms->o.blen; in file_vprintf()
[all …]
H A Dmagic.c273 unreadable_info(struct magic_set *ms, mode_t md, const char *file) in unreadable_info() argument
278 if (file_printf(ms, "writable, ") == -1) in unreadable_info()
282 if (file_printf(ms, "executable, ") == -1) in unreadable_info()
285 /* X_OK doesn't work well on MS-Windows */ in unreadable_info()
292 if (file_printf(ms, "writable, ") == -1) in unreadable_info()
298 if (file_printf(ms, "regular file, ") == -1) in unreadable_info()
300 if (file_printf(ms, "no read permission") == -1) in unreadable_info()
306 magic_close(struct magic_set *ms) in magic_close() argument
308 if (ms == NULL) in magic_close()
310 file_ms_free(ms); in magic_close()
[all …]
H A Dsoftmagic.c119 file_softmagic(struct magic_set *ms, const struct buffer *b, in file_softmagic() argument
135 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) { in file_softmagic()
136 int ret = match(ms, ml->magic, ml->magic_rxcomp, ml->nmagic, b, in file_softmagic()
146 if ((ms->flags & MAGIC_CONTINUE) == 0) in file_softmagic()
161 file_fmtcheck(struct magic_set *ms, const char *desc, const char *def, in file_fmtcheck() argument
171 file_magerror(ms, in file_fmtcheck()
208 match(struct magic_set *ms, struct magic *magic, file_regex_t **magic_rxcomp, in match() argument
219 int print = (ms->flags & MAGIC_NODESC) == 0; in match()
230 if (file_check_mem(ms, cont_level) == -1) in match()
253 if (msetoffset(ms, m, &bb, b, offset, cont_level) == -1) in match()
[all …]
H A Dreadcdf.c42 #define NOTMIME(ms) (((ms)->flags & MAGIC_MIME) == 0) argument
49 { "Excel", "vnd.ms-excel", },
50 { "Powerpoint", "vnd.ms-powerpoint", },
52 { "Advanced Installer", "vnd.ms-msi", },
53 { "InstallShield", "vnd.ms-msi", },
54 { "Microsoft Patch Compiler", "vnd.ms-msi", },
55 { "NAnt", "vnd.ms-msi", },
56 { "Windows Installer", "vnd.ms-msi", },
59 { "Book", "vnd.ms-excel", },
60 { "Workbook", "vnd.ms-excel", },
[all …]
H A Dfsmagic.c71 bad_link(struct magic_set *ms, int err, char *buf) in bad_link() argument
73 int mime = ms->flags & MAGIC_MIME; in bad_link()
75 file_printf(ms, "inode/symlink") in bad_link()
79 if (ms->flags & MAGIC_ERROR) { in bad_link()
80 file_error(ms, err, in bad_link()
84 if (file_printf(ms, "broken symbolic link to %s", buf) == -1) in bad_link()
91 handle_mime(struct magic_set *ms, int mime, const char *str) in handle_mime() argument
94 if (file_printf(ms, "inode/%s", str) == -1) in handle_mime()
96 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, in handle_mime()
100 if ((mime & MAGIC_MIME_ENCODING) && file_printf(ms, "binary") == -1) in handle_mime()
[all …]
H A Dapprentice.c115 file_private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
196 struct magic_set *ms; in main() local
209 if ((ms = magic_open(MAGIC_CHECK)) == NULL) { in main()
213 ret = magic_compile(ms, argv[1]) == -1 ? 1 : 0; in main()
215 (void)fprintf(stderr, "%s: %s\n", progname, magic_error(ms)); in main()
216 magic_close(ms); in main()
474 apprentice_1(struct magic_set *ms, const char *fn, int action) in apprentice_1() argument
482 file_error(ms, 0, "magic element size %lu != %lu", in apprentice_1()
489 map = apprentice_load(ms, fn, action); in apprentice_1()
492 return apprentice_compile(ms, map, fn); in apprentice_1()
[all …]
H A Dreadelf.c69 toomany(struct magic_set *ms, const char *name, uint16_t num) in toomany() argument
71 if (ms->flags & MAGIC_MIME) in toomany()
73 if (file_printf(ms, ", too many %s (%u)", name, num) == -1) in toomany()
351 dophn_core(struct magic_set *ms, int clazz, int swap, int fd, off_t off, in dophn_core() argument
362 if (ms->flags & MAGIC_MIME) in dophn_core()
366 if (file_printf(ms, ", no program header") == -1) in dophn_core()
371 if (file_printf(ms, ", corrupted program header size") == -1) in dophn_core()
382 if (file_printf(ms, in dophn_core()
405 if (file_printf(ms, " can't read note section at %jd", in dophn_core()
414 offset = donote(ms, nbuf, offset, CAST(size_t, bufsize), in dophn_core()
[all …]
/freebsd/lib/libc/stdio/
H A Dopen_memstream.c54 memstream_grow(struct memstream *ms, fpos_t newoff) in memstream_grow() argument
63 if (newsize > ms->len) { in memstream_grow()
64 buf = realloc(*ms->bufp, newsize + 1); in memstream_grow()
67 fprintf(stderr, "MS: %p growing from %zd to %zd\n", in memstream_grow()
68 ms, ms->len, newsize); in memstream_grow()
70 memset(buf + ms->len + 1, 0, newsize - ms->len); in memstream_grow()
71 *ms->bufp = buf; in memstream_grow()
72 ms->len = newsize; in memstream_grow()
81 memstream_update(struct memstream *ms) in memstream_update() argument
84 assert(ms->len >= 0 && ms->offset >= 0); in memstream_update()
[all …]
H A Dopen_wmemstream.c55 wmemstream_grow(struct wmemstream *ms, fpos_t newoff) in wmemstream_grow() argument
64 if (newsize > ms->len) { in wmemstream_grow()
65 buf = reallocarray(*ms->bufp, newsize + 1, sizeof(wchar_t)); in wmemstream_grow()
69 ms, ms->len, newsize); in wmemstream_grow()
71 wmemset(buf + ms->len + 1, 0, newsize - ms->len); in wmemstream_grow()
72 *ms->bufp = buf; in wmemstream_grow()
73 ms->len = newsize; in wmemstream_grow()
82 wmemstream_update(struct wmemstream *ms) in wmemstream_update() argument
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()
[all …]
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.8241 1 helios.ee.lbl.gov (128.3.112.1) 19 ms 19 ms 0 ms
242 2 lilac-dmc.Berkeley.EDU (128.32.216.1) 39 ms 39 ms 19 ms
243 3 lilac-dmc.Berkeley.EDU (128.32.216.1) 39 ms 39 ms 19 ms
244 4 ccngw-ner-cc.Berkeley.EDU (128.32.136.23) 39 ms 40 ms 39 ms
245 5 ccn-nerif22.Berkeley.EDU (128.32.168.22) 39 ms 39 ms 39 ms
246 6 128.32.197.4 (128.32.197.4) 40 ms 59 ms 59 ms
247 7 131.119.2.5 (131.119.2.5) 59 ms 59 ms 59 ms
248 8 129.140.70.13 (129.140.70.13) 99 ms 99 ms 80 ms
249 9 129.140.71.6 (129.140.71.6) 139 ms 239 ms 319 ms
250 10 129.140.81.7 (129.140.81.7) 220 ms 199 ms 199 ms
[all …]
/freebsd/tests/sys/kern/
H A Dmodule_test.c98 struct module_stat ms; in ATF_TC_BODY() local
101 ms.version = sizeof(ms); in ATF_TC_BODY()
102 ATF_REQUIRE(modstat(0, &ms) == -1); in ATF_TC_BODY()
111 ms.version = 0; in ATF_TC_BODY()
112 ATF_REQUIRE(modstat(modid, &ms) == -1); in ATF_TC_BODY()
115 ms.version = sizeof(ms); in ATF_TC_BODY()
116 ATF_REQUIRE(modstat(modid, &ms) == 0); in ATF_TC_BODY()
117 ATF_REQUIRE(ms.id == modid); in ATF_TC_BODY()
118 if (strnlen(ms.name, sizeof(ms.name)) < sizeof(ms.name)) in ATF_TC_BODY()
119 ATF_REQUIRE(modfind(ms.name) == modid); in ATF_TC_BODY()
[all …]
/freebsd/tools/tools/ath/athalq/
H A Dar9300_ds.c36 #define MS(_v, _f) ( ((_v) & (_f)) >> _f##_S ) macro
71 (unsigned int) MS(txs.status1, AR_tx_desc_id), in ar9300_decode_txstatus()
72 (unsigned int) MS(txs.ds_info, AR_tx_qcu_num)); in ar9300_decode_txstatus()
79 MS(txs.ds_info, AR_tx_qcu_num), in ar9300_decode_txstatus()
80 MS(txs.ds_info, AR_ctrl_stat), in ar9300_decode_txstatus()
81 MS(txs.ds_info, AR_desc_id)); in ar9300_decode_txstatus()
87 MS(txs.status8, AR_seq_num), in ar9300_decode_txstatus()
89 MS(txs.status8, AR_TXBFStatus)); in ar9300_decode_txstatus()
94 MS(txs.status8, AR_final_tx_idx)); in ar9300_decode_txstatus()
101 MS(txs.status8, AR_tx_tid), in ar9300_decode_txstatus()
[all …]
H A Dar5416_ds.c35 #define MS(_v, _f) ( ((_v) & (_f)) >> _f##_S ) macro
57 MS(txs.u.tx.status[0], AR_TxRSSIAnt00), in ar5416_decode_txstatus()
58 MS(txs.u.tx.status[0], AR_TxRSSIAnt01), in ar5416_decode_txstatus()
59 MS(txs.u.tx.status[0], AR_TxRSSIAnt02)); in ar5416_decode_txstatus()
63 MS(txs.u.tx.status[5], AR_TxRSSIAnt10), in ar5416_decode_txstatus()
64 MS(txs.u.tx.status[5], AR_TxRSSIAnt11), in ar5416_decode_txstatus()
65 MS(txs.u.tx.status[5], AR_TxRSSIAnt12), in ar5416_decode_txstatus()
66 MS(txs.u.tx.status[5], AR_TxRSSICombined)); in ar5416_decode_txstatus()
86 MS(txs.u.tx.status[1], AR_RTSFailCnt), in ar5416_decode_txstatus()
87 MS(txs.u.tx.status[1], AR_DataFailCnt), in ar5416_decode_txstatus()
[all …]
H A Dar5212_ds.c35 #define MS(_v, _f) ( ((_v) & (_f)) >> _f##_S ) macro
51 MS(txs.u.tx.status0, AR_SendTimestamp)); in ar5212_decode_txstatus()
60 MS(txs.u.tx.status0, AR_RTSFailCnt), in ar5212_decode_txstatus()
61 MS(txs.u.tx.status0, AR_DataFailCnt), in ar5212_decode_txstatus()
62 MS(txs.u.tx.status0, AR_VirtCollCnt)); in ar5212_decode_txstatus()
64 MS(txs.u.tx.status0, AR_SendTimestamp)); in ar5212_decode_txstatus()
69 MS(txs.u.tx.status1, AR_SeqNum), in ar5212_decode_txstatus()
70 MS(txs.u.tx.status1, AR_AckSigStrength), in ar5212_decode_txstatus()
71 MS(txs.u.tx.status1, AR_FinalTSIndex)); in ar5212_decode_txstatus()
99 MS(txc.ds_ctl0, AR_XmitPower), in ar5212_decode_txdesc()
[all …]
H A Dar5416_ds_tdma.c35 #define MS(_v, _f) ( ((_v) & (_f)) >> _f##_S ) macro
62 MS(txs.u.tx.status[0], AR_TxRSSIAnt00), in ar5416_decode_txstatus()
63 MS(txs.u.tx.status[0], AR_TxRSSIAnt01), in ar5416_decode_txstatus()
64 MS(txs.u.tx.status[0], AR_TxRSSIAnt02)); in ar5416_decode_txstatus()
82 MS(txs.u.tx.status[1], AR_RTSFailCnt), in ar5416_decode_txstatus()
83 MS(txs.u.tx.status[1], AR_DataFailCnt), in ar5416_decode_txstatus()
84 MS(txs.u.tx.status[1], AR_VirtRetryCnt)); in ar5416_decode_txstatus()
96 MS(txs.u.tx.status[5], AR_TxRSSIAnt10), in ar5416_decode_txstatus()
97 MS(txs.u.tx.status[5], AR_TxRSSIAnt11), in ar5416_decode_txstatus()
98 MS(txs.u.tx.status[5], AR_TxRSSIAnt12), in ar5416_decode_txstatus()
[all …]
/freebsd/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);
31 void ZSTD_dedicatedDictSearch_lazy_loadDictionary(ZSTD_matchState_t* ms, const BYTE* const 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],
[all …]
H A Dzstd_lazy.c20 ZSTD_updateDUBT(ZSTD_matchState_t* ms, in ZSTD_updateDUBT() argument
24 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_updateDUBT()
25 U32* const hashTable = ms->hashTable; in ZSTD_updateDUBT()
28 U32* const bt = ms->chainTable; in ZSTD_updateDUBT()
32 const BYTE* const base = ms->window.base; in ZSTD_updateDUBT()
34 U32 idx = ms->nextToUpdate; in ZSTD_updateDUBT()
38 idx, target, ms->window.dictLimit); in ZSTD_updateDUBT()
42 assert(idx >= ms->window.dictLimit); /* condition for valid base+idx */ in ZSTD_updateDUBT()
55 ms->nextToUpdate = target; in ZSTD_updateDUBT()
64 ZSTD_insertDUBT1(const ZSTD_matchState_t* ms, in ZSTD_insertDUBT1() argument
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlstrlib.c223 static const char *match (MatchState *ms, const char *s, const char *p);
236 static int check_capture (MatchState *ms, int l) { in check_capture() argument
238 if (l < 0 || l >= ms->level || ms->capture[l].len == CAP_UNFINISHED) in check_capture()
239 return luaL_error(ms->L, "invalid capture index %%%d", l + 1); in check_capture()
244 static int capture_to_close (MatchState *ms) { in capture_to_close() argument
245 int level = ms->level; in capture_to_close()
247 if (ms->capture[level].len == CAP_UNFINISHED) return level; in capture_to_close()
248 return luaL_error(ms->L, "invalid pattern capture"); in capture_to_close()
252 static const char *classend (MatchState *ms, const char *p) { in classend() argument
255 if (p == ms->p_end) in classend()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFStreamer.cpp105 MS = TheTarget->createAsmStreamer( in init()
112 MS = TheTarget->createMCObjectStreamer( in init()
120 if (!MS) in init()
133 Asm.reset(TheTarget->createAsmPrinter(*TM, std::unique_ptr<MCStreamer>(MS))); in init()
153 void DwarfStreamer::finish() { MS->finish(); } in finish()
156 MS->switchSection(MOFI->getDwarfInfoSection()); in switchToDebugInfoSection()
214 MS->switchSection(MOFI->getDwarfAbbrevSection()); in emitAbbrevs()
221 MS->switchSection(MOFI->getDwarfInfoSection()); in emitDIE()
233 MS->switchSection(Section); in emitSectionContents()
235 MS->emitBytes(SecData); in emitSectionContents()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFStreamer.cpp
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_lazy.c20 ZSTD_updateDUBT(ZSTD_matchState_t* ms, in ZSTD_updateDUBT() argument
24 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_updateDUBT()
25 U32* const hashTable = ms->hashTable; in ZSTD_updateDUBT()
28 U32* const bt = ms->chainTable; in ZSTD_updateDUBT()
32 const BYTE* const base = ms->window.base; in ZSTD_updateDUBT()
34 U32 idx = ms->nextToUpdate; in ZSTD_updateDUBT()
38 idx, target, ms->window.dictLimit); in ZSTD_updateDUBT()
42 assert(idx >= ms->window.dictLimit); /* condition for valid base+idx */ in ZSTD_updateDUBT()
55 ms->nextToUpdate = target; in ZSTD_updateDUBT()
64 ZSTD_insertDUBT1(ZSTD_matchState_t* ms, in ZSTD_insertDUBT1() argument
[all …]
/freebsd/contrib/libfido2/src/
H A Dio.c34 tx_pkt(fido_dev_t *d, const void *pkt, size_t len, int *ms)
44 if (fido_time_delta(&ts, ms) != 0)
51 tx_empty(fido_dev_t *d, uint8_t cmd, int *ms) in tx_empty() argument
63 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_empty()
71 tx_preamble(fido_dev_t *d, uint8_t cmd, const void *buf, size_t count, int *ms) in tx_preamble() argument
90 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_preamble()
98 tx_frame(fido_dev_t *d, uint8_t seq, const void *buf, size_t count, int *ms) in tx_frame() argument
115 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_frame()
123 tx(fido_dev_t *d, uint8_t cmd, const unsigned char *buf, size_t count, int *ms) in tx() argument
127 if ((sent = tx_preamble(d, cmd, buf, count, ms)) == 0) { in tx()
[all …]

12345678910>>...87