Home
last modified time | relevance | path

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

12345678910>>...42

/freebsd/contrib/file/src/
H A Dfuncs.c8 * 1. Redistributions of source code must retain the above copyright
60 width = blen - 1; 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()
86 return 1; in file_checkfield()
108 return -1; in file_checkfmt()
112 return -1; in file_checkfmt()
117 return -1; in file_checkfmt()
[all …]
H A Dsoftmagic.c9 * 1. Redistributions of source code must retain the above copyright
75 (CAST(uint64_t, (p)[1])<<48)| \
89 (CAST(uint64_t, (p)[1])<<8)| \
94 (CAST(uint32_t, (p)[1])<<8)| \
98 (CAST(uint32_t, (p)[1])<<16)| \
102 (CAST(uint32_t, (p)[1])<<24)| \
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()
[all …]
H A Dmagic.c8 * 1. Redistributions of source code must retain the above copyright
102 if (access(tmppath, R_OK) == -1) in _w32_append_path()
131 dllpath = calloc(MAX_PATH + 1, sizeof(*dllpath)); in _w32_get_magic_relative_to()
169 return 1; in DllMain()
193 if (stat(hmagicpath, &st) == -1) { in get_default_magic()
197 if (stat(hmagicpath, &st) == -1) in get_default_magic()
203 if (access(hmagicpath, R_OK) == -1) in get_default_magic()
273 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()
279 return -1; in unreadable_info()
[all …]
H A Dreadcdf.c8 * 1. Redistributions of source code must retain the above copyright
42 #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", },
[all …]
H A Dfsmagic.c9 * 1. Redistributions of source code must retain the above copyright
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()
76 == -1) in bad_link()
77 return -1; in bad_link()
79 if (ms->flags & MAGIC_ERROR) { in bad_link()
80 file_error(ms, err, in bad_link()
82 return -1; in bad_link()
84 if (file_printf(ms, "broken symbolic link to %s", buf) == -1) in bad_link()
[all …]
H A Dapprentice.c9 * 1. Redistributions of source code must retain the above copyright
76 #define MAP_FAILED (void *) -1
87 #define MAP_TYPE_MALLOC 1
115 file_private int getvalue(struct magic_set *ms, struct magic *, const char **, int);
179 #define DECLARE_FIELD(name) { # name, sizeof(# name) - 1, parse_ ## name }
196 struct magic_set *ms; in main() local
206 return 1; in main()
209 if ((ms = magic_open(MAGIC_CHECK)) == NULL) { in main()
211 return 1; in main()
213 ret = magic_compile(ms, argv[1]) == -1 ? 1 : 0; in main()
[all …]
H A Dreadelf.c8 * 1. Redistributions of source code must retain the above copyright
55 #define ELF_ALIGN(a) ((((a) + align - 1) / align) * align)
64 #define SIZE_UNKNOWN CAST(off_t, -1)
69 toomany(struct magic_set *ms, const char *name, uint16_t num) in toomany() argument
71 if (ms->flags & MAGIC_MIME) in toomany()
72 return 1; in toomany()
73 if (file_printf(ms, ", too many %s (%u)", name, num) == -1) in toomany()
74 return -1; in toomany()
75 return 1; in toomany()
89 retval.c[0] = tmpval.c[1]; in getu16()
[all …]
H A Dascmagic.c9 * 1. Redistributions of source code must retain the above copyright
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
75 int rv = 1; in file_ascmagic()
88 if ((bb.flen & 1) && !(b->flen & 1)) in file_ascmagic()
92 if (file_encoding(ms, &bb, &ubuf, &ulen, &code, &code_mime, 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
114 int rv = -1; in file_ascmagic_with_encoding()
115 int mime = ms->flags & MAGIC_MIME; in file_ascmagic_with_encoding()
[all …]
H A Dapptype.c5 * Notes: 1. Qualify the filename so that DosQueryAppType does not do extraneous
45 file_os2_apptype(struct magic_set *ms, const char *fn, const void *buf, in file_os2_apptype() argument
57 file_error(ms, errno, "cannot create tempnam"); in file_os2_apptype()
58 return -1; in file_os2_apptype()
69 file_error(ms, errno, "cannot open tmp file `%s'", path); in file_os2_apptype()
70 return -1; in file_os2_apptype()
72 if (fwrite(buf, 1, nb, fp) != nb) { in file_os2_apptype()
73 file_error(ms, errno, "cannot write tmp file `%s'", in file_os2_apptype()
76 return -1; in file_os2_apptype()
109 if (file_printf(ms, "32-bit ") == -1) in file_os2_apptype()
[all …]
/freebsd/lib/libc/stdio/
H A Dopen_memstream.c11 * 1. Redistributions of source code must retain the above copyright
54 memstream_grow(struct memstream *ms, fpos_t newoff) in memstream_grow() argument
60 newsize = SSIZE_MAX - 1; 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()
[all …]
H A Dopen_wmemstream.c11 * 1. Redistributions of source code must retain the above copyright
55 wmemstream_grow(struct wmemstream *ms, fpos_t newoff) in wmemstream_grow() argument
61 newsize = SSIZE_MAX / sizeof(wchar_t) - 1; 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()
74 return (1); in wmemstream_grow()
[all …]
/freebsd/lib/libc/iconv/
H A Dcitrus_memstream.h12 * 1. Redistributions of source code must retain the above copyright
53 _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()
[all …]
H A Dcitrus_prop.c12 * 1. Redistributions of source code must retain the above copyright
79 _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()
119 neg = 1; \ 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()
[all …]
/freebsd/tests/sys/kern/
H A Dmodule_test.c11 * 1. Redistributions of source code must retain the above copyright
45 ATF_REQUIRE(modid == -1); in ATF_TC_BODY()
54 /* This assumes -1 is never used as a valid module id. */ in ATF_TC_BODY()
55 modid = modnext(-1); in ATF_TC_BODY()
56 ATF_REQUIRE(modid == -1); in ATF_TC_BODY()
75 /* This assumes -1 is never used as a valid module id. */ in ATF_TC_BODY()
76 modid = modfnext(-1); in ATF_TC_BODY()
77 ATF_REQUIRE(modid == -1); in ATF_TC_BODY()
81 ATF_REQUIRE(modid == -1); in ATF_TC_BODY()
98 struct module_stat ms; in ATF_TC_BODY() local
[all …]
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.8118 The default is 1, i.e., start with the first hop.
131 .Em port + 1
133 .Em port + (max_ttl - first_ttl + 1) * nprobes
152 when it is 1).
207 A good value to use with this is 500 (e.g., 1/2 second).
241 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
[all …]
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlstrlib.c48 luaL_checklstring(L, 1, &l); in str_len()
50 return 1; in str_len()
58 else return len - ((size_t)-pos) + 1; in posrelat()
64 const char *s = luaL_checklstring(L, 1, &l); in str_sub()
66 size_t end = posrelat(luaL_optinteger(L, 3, -1), l); in str_sub()
67 if (start < 1) start = 1; in str_sub()
70 lua_pushlstring(L, s + start - 1, end - start + 1); in str_sub()
72 return 1; in str_sub()
79 const char *s = luaL_checklstring(L, 1, &l); in str_reverse()
82 p[i] = s[l - i - 1]; in str_reverse()
[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()
29 U32 const btLog = cParams->chainLog - 1; in ZSTD_updateDUBT()
30 U32 const btMask = (1 << btLog) - 1; 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()
[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()
29 U32 const btLog = cParams->chainLog - 1; in ZSTD_updateDUBT()
30 U32 const btMask = (1 << btLog) - 1; 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()
[all …]
/freebsd/tools/tools/ath/athalq/
H A Dar5416_ds.c35 #define MS(_v, _f) ( ((_v) & (_f)) >> _f##_S ) macro
51 MF(txs.u.tx.status[1], AR_FrmXmitOK), in ar5416_decode_txstatus()
52 MF(txs.u.tx.status[1], AR_Filtered), 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()
62 printf(" RX RSSI 1 [%d %d %d] Comb=%d\n", 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()
[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()
70 MF(txs.u.tx.status[1], AR_FrmXmitOK), in ar5416_decode_txstatus()
71 MF(txs.u.tx.status[1], AR_ExcessiveRetries), in ar5416_decode_txstatus()
72 MF(txs.u.tx.status[1], AR_FIFOUnderrun), in ar5416_decode_txstatus()
73 MF(txs.u.tx.status[1], AR_Filtered)); in ar5416_decode_txstatus()
76 MF(txs.u.tx.status[1], AR_TxDelimUnderrun), in ar5416_decode_txstatus()
77 MF(txs.u.tx.status[1], AR_TxDataUnderrun), in ar5416_decode_txstatus()
[all …]
/freebsd/contrib/libfido2/src/
H A Dio.c34 tx_pkt(fido_dev_t *d, const void *pkt, size_t len, int *ms)
40 return (-1);
44 if (fido_time_delta(&ts, ms) != 0)
45 return (-1);
51 tx_empty(fido_dev_t *d, uint8_t cmd, int *ms) in tx_empty() argument
54 unsigned char pkt[sizeof(*fp) + 1]; in tx_empty()
55 const size_t len = d->tx_len + 1; in tx_empty()
59 fp = (struct frame *)(pkt + 1); in tx_empty()
63 if (len > sizeof(pkt) || (n = tx_pkt(d, pkt, len, ms)) < 0 || in tx_empty()
65 return (-1); in tx_empty()
[all …]
/freebsd/lib/libiconv_modules/mapper_zone/
H A Dcitrus_mapper_zone.c12 * 1. Redistributions of source code must retain the above copyright
100 get_imm(struct _memstream *ms, struct _parse_state *ps) in get_imm() argument
103 char buf[BUFSIZE + 1]; in get_imm()
108 c = _memstream_peek(ms); in get_imm()
112 _memstream_getc(ms); in get_imm()
117 if (!(i == 1 && c == 'x')) in get_imm()
119 buf[i] = _memstream_getc(ms); in get_imm()
131 get_tok(struct _memstream *ms, struct _parse_state *ps) in get_tok() argument
136 c = _memstream_peek(ms); in get_tok()
140 _memstream_getc(ms); in get_tok()
[all …]
/freebsd/lib/libiconv_modules/mapper_std/
H A Dcitrus_mapper_std.c12 * 1. Redistributions of source code must retain the above copyright
79 rowcol_convert(struct _citrus_mapper_std * __restrict ms, in rowcol_convert() argument
89 rc = &ms->ms_rowcol; in rowcol_convert()
144 lz->width= end - begin + 1; in set_linear_zone()
163 n = 1U << (m - 1); in rowcol_parse_variable_compat()
164 n |= n - 1; in rowcol_parse_variable_compat()
173 rc->rc_src_rowcol_len = 1; in rowcol_parse_variable_compat()
207 n = 1 << (m - 1); in rowcol_parse_variable()
208 n |= n - 1; in rowcol_parse_variable()
234 rowcol_uninit(struct _citrus_mapper_std *ms) in rowcol_uninit() argument
[all …]

12345678910>>...42