Home
last modified time | relevance | path

Searched +full:0 +full:ms (Results 1 – 25 of 1023) sorted by relevance

12345678910>>...41

/freebsd/contrib/file/src/
H A Dfuncs.c51 #define SIZE_MAX ((size_t)~0)
57 if (blen == 0) in file_copystr()
62 buf[width] = '\0'; in file_copystr()
67 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()
78 int fw = 0; in file_checkfield()
81 fw = fw * 10 + (*p++ - '0'); in file_checkfield()
90 return 0; in file_checkfield()
[all …]
H A Dsoftmagic.c74 (CAST(uint64_t, (p)[0])<<56)| \
90 (CAST(uint64_t, (p)[0])))
95 (CAST(uint32_t, (p)[0])))
97 (CAST(uint32_t, (p)[0])<<24)| \
103 (CAST(uint32_t, (p)[0])<<16)| \
107 #define BE16(p) ((CAST(uint16_t, (p)[0])<<8)|(CAST(uint16_t, (p)[1])))
108 #define LE16(p) ((CAST(uint16_t, (p)[1])<<8)|(CAST(uint16_t, (p)[0])))
119 file_softmagic(struct magic_set *ms, const struct buffer *b, in file_softmagic() argument
123 int rv = 0, printed_something = 0, need_separator = 0, firstline = 1; in file_softmagic()
127 nc = 0; in file_softmagic()
[all …]
H A Dmagic.c81 #define STDIN_FILENO 0
96 if (vasprintf(&tmppath, fmt, ap) < 0) { in _w32_append_path()
110 if (asprintf(&newpath, "%s%c%s", *hmagicpath, PATHSEP, tmppath) < 0) in _w32_append_path()
142 if (stricmp(exepath, dllpath) == 0) in _w32_get_magic_relative_to()
147 if (sp > 3 && stricmp(&dllpath[sp - 3], "bin") == 0) { in _w32_get_magic_relative_to()
153 for (sp = 0; sp < __arraycount(trypaths); sp++) in _w32_get_magic_relative_to()
191 if (asprintf(&hmagicpath, "%s/.magic.mgc", home) < 0) in get_default_magic()
195 if (asprintf(&hmagicpath, "%s/.magic", home) < 0) in get_default_magic()
201 if (asprintf(&hmagicpath, "%s/%s", home, hmagic) < 0) in get_default_magic()
208 if (asprintf(&default_magic, "%s:%s", hmagicpath, MAGIC) < 0) in get_default_magic()
[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.c65 # define major(dev) (((dev) >> 8) & 0xff)
66 # define minor(dev) ((dev) & 0xff)
71 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()
[all …]
H A Dapprentice.c67 * At least confirmed for: OSF1 V4.0 878
80 #define MAP_FILE 0
86 #define MAP_TYPE_USER 0
115 file_private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
185 { NULL, 0, NULL }
196 struct magic_set *ms; in main() local
199 if ((progname = strrchr(argv[0], '/')) != NULL) in main()
202 progname = argv[0]; in main()
209 if ((ms = magic_open(MAGIC_CHECK)) == NULL) { in main()
213 ret = magic_compile(ms, argv[1]) == -1 ? 1 : 0; in main()
[all …]
H A Dreadelf.c66 (namesz == sizeof(v) && memcmp(n, v, namesz) == 0)
69 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()
89 retval.c[0] = tmpval.c[1]; in getu16()
90 retval.c[1] = tmpval.c[0]; in getu16()
108 retval.c[0] = tmpval.c[3]; in getu32()
111 retval.c[3] = tmpval.c[0]; in getu32()
129 retval.c[0] = tmpval.c[7]; in getu64()
136 retval.c[7] = tmpval.c[0]; in getu64()
[all …]
H A Dascmagic.c51 || (x) == 0x85 || (x) == '\f')
64 while (nbytes > 1 && buf[nbytes - 1] == '\0') in trim_nuls()
71 file_ascmagic(struct magic_set *ms, const struct buffer *b, int text) in file_ascmagic() argument
74 size_t ulen = 0; in file_ascmagic()
92 if (file_encoding(ms, &bb, &ubuf, &ulen, &code, &code_mime, in file_ascmagic()
93 &type) == 0) in file_ascmagic()
94 rv = 0; in file_ascmagic()
96 rv = file_ascmagic_with_encoding(ms, &bb, in file_ascmagic()
105 file_ascmagic_with_encoding(struct magic_set *ms, const struct buffer *b, in file_ascmagic_with_encoding() argument
115 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding()
[all …]
/freebsd/lib/libc/stdio/
H A Dopen_wmemstream.c55 wmemstream_grow(struct wmemstream *ms, fpos_t newoff) in wmemstream_grow() argument
60 if (newoff < 0 || newoff >= SSIZE_MAX / sizeof(wchar_t)) in wmemstream_grow()
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()
76 return (0); in wmemstream_grow()
82 wmemstream_update(struct wmemstream *ms) in wmemstream_update() argument
[all …]
H A Dopen_memstream.c54 memstream_grow(struct memstream *ms, fpos_t newoff) in memstream_grow() argument
59 if (newoff < 0 || newoff >= SSIZE_MAX) in memstream_grow()
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()
75 return (0); in memstream_grow()
[all …]
/freebsd/lib/libc/iconv/
H A Dcitrus_prop.c64 memset(&obj->u, 0, sizeof(obj->u)); in _citrus_prop_object_init()
79 _citrus_prop_read_##_func_##_common(struct _memstream * __restrict ms, \
86 acc = (_type_)0; \
90 ch = _memstream_getc(ms); \
99 _memstream_ungetc(ms, ch); \
101 return (0); \
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()
116 neg = 0; \ in _CITRUS_PROP_READ_UINT_COMMON()
[all …]
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 …]
/freebsd/tests/sys/kern/
H A Dmodule_test.c42 ATF_REQUIRE(modid > 0); in ATF_TC_BODY()
59 modid = modnext(0); in ATF_TC_BODY()
60 ATF_REQUIRE(modid > 0); in ATF_TC_BODY()
64 ATF_REQUIRE(modid >= 0); in ATF_TC_BODY()
65 if (modid == 0) in ATF_TC_BODY()
80 modid = modfnext(0); in ATF_TC_BODY()
84 modid = modnext(0); in ATF_TC_BODY()
85 ATF_REQUIRE(modid > 0); in ATF_TC_BODY()
89 ATF_REQUIRE(modid >= 0); in ATF_TC_BODY()
90 if (modid == 0) in ATF_TC_BODY()
[all …]
/freebsd/tools/tools/ath/athalq/
H A Dar9300_ds.c36 #define MS(_v, _f) ( ((_v) & (_f)) >> _f##_S ) macro
39 static uint32_t last_ts = 0;
65 printf("[%u.%06u] [%llu] TXSTATUS TxTimestamp=%u (%u), DescId=0x%04x, QCU=%d\n", in ar9300_decode_txstatus()
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()
73 printf(" DescId=0x%08x\n", txs.status1); in ar9300_decode_txstatus()
77 printf(" DescLen=%d, TxQcuNum=%d, CtrlStat=%d, DescId=0x%04x\n", in ar9300_decode_txstatus()
78 txs.ds_info & 0xff, 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()
[all …]
H A Dar5416_ds.c35 #define MS(_v, _f) ( ((_v) & (_f)) >> _f##_S ) macro
46 printf("[%u.%06u] [%llu] TXSTATUS: TxDone=%d, FrmOk=%d, filt=%d, TS=0x%08x\n", in ar5416_decode_txstatus()
56 printf(" RX RSSI 0 [%d %d %d]", in ar5416_decode_txstatus()
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()
[all …]
H A Dar5212_ds.c35 #define MS(_v, _f) ( ((_v) & (_f)) >> _f##_S ) macro
46 printf("[%u.%06u] [%llu] TXSTATUS: TxDone=%d, TS=0x%08x\n\n", in ar5212_decode_txstatus()
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()
63 printf(" SndTimestamp=0x%04x\n", in ar5212_decode_txstatus()
64 MS(txs.u.tx.status0, AR_SendTimestamp)); in ar5212_decode_txstatus()
67 printf(" Done=%d, SeqNum=0x%04x, AckRSSI=%d, FinalTSI=%d\n", in ar5212_decode_txstatus()
69 MS(txs.u.tx.status1, AR_SeqNum), in ar5212_decode_txstatus()
[all …]
H A Dar5416_ds_tdma.c35 #define MS(_v, _f) ( ((_v) & (_f)) >> _f##_S ) macro
42 static uint64_t tx_tsf = 0; in ar5416_decode_txstatus()
47 if (MF(txs.u.tx.status[9], AR_TxDone) == 0) in ar5416_decode_txstatus()
50 printf("[%u] [%llu] TXSTATUS: TxDone=%d, TS=0x%08x (delta %d)\n", in ar5416_decode_txstatus()
59 #if 0 in ar5416_decode_txstatus()
61 printf(" RX RSSI 0 [%d %d %d]\n", in ar5416_decode_txstatus()
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()
66 MF(txs.u.tx.status[0], AR_TxBaStatus)); in ar5416_decode_txstatus()
[all …]
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.8232 The value must be a decimal integer in the range 0 to 255.
259 Set the time (in milliseconds) to pause between probes (default 0).
296 1 helios.ee.lbl.gov (128.3.112.1) 19 ms 19 ms 0 ms
297 2 lilac-dmc.Berkeley.EDU (128.32.216.1) 39 ms 39 ms 19 ms
298 3 lilac-dmc.Berkeley.EDU (128.32.216.1) 39 ms 39 ms 19 ms
299 4 ccngw-ner-cc.Berkeley.EDU (128.32.136.23) 39 ms 40 ms 39 ms
300 5 ccn-nerif22.Berkeley.EDU (128.32.168.22) 39 ms 39 ms 39 ms
301 6 128.32.197.4 (128.32.197.4) 40 ms 59 ms 59 ms
302 7 131.119.2.5 (131.119.2.5) 59 ms 59 ms 59 ms
303 8 129.140.70.13 (129.140.70.13) 99 ms 99 ms 80 ms
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlstrlib.c57 if (pos >= 0) return (size_t)pos; in posrelat()
58 else if (0u - (size_t)pos > len) return 0; in posrelat()
82 for (i = 0; i < l; i++) in str_reverse()
95 for (i=0; i<l; i++) in str_lower()
108 for (i=0; i<l; i++) in str_upper()
116 #define MAXSIZE ((~(size_t)0) >> 1)
123 if (n <= 0) lua_pushliteral(L, ""); in str_rep()
132 if (lsep > 0) { /* avoid empty 'memcpy' (may be expensive) */ in str_rep()
151 if (posi > pose) return 0; /* empty interval; return no values */ in str_byte()
156 for (i=0; i<n; i++) in str_byte()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/
H A DDWARFStreamer.cpp
/freebsd/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/
H A DDWARFStreamer.cpp3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
105 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()
140 RangesSectionSize = 0; in init()
141 RngListsSectionSize = 0; in init()
142 LocSectionSize = 0; in init()
143 LocListsSectionSize = 0; in init()
144 LineSectionSize = 0; in init()
[all …]
/freebsd/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_lazy.c21 ZSTD_updateDUBT(ZSTD_matchState_t* ms, in ZSTD_updateDUBT() argument
25 const ZSTD_compressionParameters* const cParams = &ms->cParams; in ZSTD_updateDUBT()
26 U32* const hashTable = ms->hashTable; in ZSTD_updateDUBT()
29 U32* const bt = ms->chainTable; in ZSTD_updateDUBT()
33 const BYTE* const base = ms->window.base; in ZSTD_updateDUBT()
35 U32 idx = ms->nextToUpdate; in ZSTD_updateDUBT()
39 idx, target, ms->window.dictLimit); in ZSTD_updateDUBT()
43 assert(idx >= ms->window.dictLimit); /* condition for valid base+idx */ in ZSTD_updateDUBT()
56 ms->nextToUpdate = target; in ZSTD_updateDUBT()
65 ZSTD_insertDUBT1(ZSTD_matchState_t* ms, in ZSTD_insertDUBT1() argument
[all …]
/freebsd/sys/contrib/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(const 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)
39 if (fido_time_now(&ts) != 0)
44 if (fido_time_delta(&ts, ms) != 0)
51 tx_empty(fido_dev_t *d, uint8_t cmd, int *ms) in tx_empty() argument
58 memset(&pkt, 0, sizeof(pkt)); in tx_empty()
63 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_empty()
67 return (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
79 return (0); in tx_preamble()
81 memset(&pkt, 0, sizeof(pkt)); in tx_preamble()
[all …]
H A Dconfig.c12 #define CMD_ENABLE_ENTATTEST 0x01
13 #define CMD_TOGGLE_ALWAYS_UV 0x02
14 #define CMD_SET_PIN_MINLEN 0x03
20 size_t cbor_len = 0; in config_prepare_hmac()
22 memset(prefix, 0xff, sizeof(prefix)); in config_prepare_hmac()
27 if ((cbor_len = cbor_serialize(item, cbor, sizeof(cbor))) == 0) { in config_prepare_hmac()
40 return 0; in config_prepare_hmac()
45 const char *pin, int *ms) in config_tx() argument
53 memset(&f, 0, sizeof(f)); in config_tx()
54 memset(&hmac, 0, sizeof(hmac)); in config_tx()
[all …]

12345678910>>...41