| /freebsd-src/contrib/file/src/ |
| H A D | funcs.c | 51 #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() 133 file_vprintf(struct magic_set * ms,const char * fmt,va_list ap) file_vprintf() argument 176 file_printf(struct magic_set * ms,const char * fmt,...) file_printf() argument 193 file_error_core(struct magic_set * ms,int error,const char * f,va_list va,size_t lineno) file_error_core() argument 214 file_error(struct magic_set * ms,int error,const char * f,...) file_error() argument 227 file_magerror(struct magic_set * ms,const char * f,...) file_magerror() argument 236 file_oomem(struct magic_set * ms,size_t len) file_oomem() argument 243 file_badseek(struct magic_set * ms) file_badseek() argument 249 file_badread(struct magic_set * ms) file_badread() argument 258 file_separator(struct magic_set * ms) file_separator() argument 264 trim_separator(struct magic_set * ms) trim_separator() argument 283 checkdone(struct magic_set * ms,int * rv) checkdone() argument 293 file_default(struct magic_set * ms,size_t nb) file_default() argument 323 file_buffer(struct magic_set * ms,int fd,struct stat * st,const char * inname,const void * buf,size_t nb) file_buffer() argument 515 file_reset(struct magic_set * ms,int checkloaded) file_reset() argument 540 file_getbuffer(struct magic_set * ms) file_getbuffer() argument 618 file_check_mem(struct magic_set * ms,unsigned int level) file_check_mem() argument 641 file_printedlen(const struct magic_set * ms) file_printedlen() argument 647 file_replace(struct magic_set * ms,const char * pat,const char * rep) file_replace() argument 671 check_regex(struct magic_set * ms,const char * pat) check_regex() argument 768 file_push_buffer(struct magic_set * ms) file_push_buffer() argument 790 file_pop_buffer(struct magic_set * ms,file_pushbuf_t * pb) file_pop_buffer() argument 814 file_printable(struct magic_set * ms,char * buf,size_t bufsiz,const char * str,size_t slen) file_printable() argument [all...] |
| H A D | softmagic.c | 74 (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_separato in file_softmagic() 161 file_fmtcheck(struct magic_set * ms,const char * desc,const char * def,const char * file,size_t line) file_fmtcheck() argument 208 match(struct magic_set * ms,struct magic * magic,file_regex_t ** magic_rxcomp,size_t nmagic,const struct buffer * b,size_t offset,int mode,int text,int flip,uint16_t * indir_count,uint16_t * name_count,int * printed_something,int * need_separator,int * firstline,int * returnval,int * found_match) match() argument 488 check_fmt(struct magic_set * ms,const char * fmt) check_fmt() argument 529 varexpand(struct magic_set * ms,char * buf,size_t len,const char * str) varexpand() argument 584 mprint(struct magic_set * ms,struct magic * m) mprint() argument 835 moffset(struct magic_set * ms,struct magic * m,const struct buffer * b,int32_t * op) moffset() argument 988 cvt_id3(struct magic_set * ms,uint32_t v) cvt_id3() argument 1151 mconvert(struct magic_set * ms,struct magic * m,int flip) mconvert() argument 1323 mcopy(struct magic_set * ms,union VALUETYPE * p,int type,int indir,const unsigned char * s,uint32_t offset,size_t nbytes,struct magic * m) mcopy() argument 1460 do_ops(struct magic_set * ms,struct magic * m,uint32_t * rv,intmax_t lhs,intmax_t off) do_ops() argument 1513 msetoffset(struct magic_set * ms,struct magic * m,struct buffer * bb,const struct buffer * b,size_t o,unsigned int cont_level) msetoffset() argument 1563 save_cont(struct magic_set * ms,struct cont * c) save_cont() argument 1578 restore_cont(struct magic_set * ms,struct cont * c) restore_cont() argument 1585 mget(struct magic_set * ms,struct magic * m,const struct buffer * b,const unsigned char * s,size_t nbytes,size_t o,unsigned int cont_level,int mode,int text,int flip,uint16_t * indir_count,uint16_t * name_count,int * printed_something,int * need_separator,int * firstline,int * returnval,int * found_match) mget() argument 2075 alloc_regex(struct magic_set * ms,struct magic * m) alloc_regex() argument 2096 magiccheck(struct magic_set * ms,struct magic * m,file_regex_t ** m_cache) magiccheck() argument 2480 handle_annotation(struct magic_set * ms,struct magic * m,int firstline) handle_annotation() argument 2513 print_sep(struct magic_set * ms,int firstline) print_sep() argument [all...] |
| H A D | magic.c | 81 #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() 273 unreadable_info(struct magic_set * ms,mode_t md,const char * file) unreadable_info() argument 306 magic_close(struct magic_set * ms) magic_close() argument 317 magic_load(struct magic_set * ms,const char * magicfile) magic_load() argument 329 magic_load_buffers(struct magic_set * ms,void ** bufs,size_t * sizes,size_t nbufs) magic_load_buffers() argument 340 magic_compile(struct magic_set * ms,const char * magicfile) magic_compile() argument 348 magic_check(struct magic_set * ms,const char * magicfile) magic_check() argument 356 magic_list(struct magic_set * ms,const char * magicfile) magic_list() argument 364 close_and_restore(const struct magic_set * ms,const char * name,int fd,const struct stat * sb) close_and_restore() argument 402 magic_descriptor(struct magic_set * ms,int fd) magic_descriptor() argument 413 magic_file(struct magic_set * ms,const char * inname) magic_file() argument 421 file_or_fd(struct magic_set * ms,const char * inname,int fd) file_or_fd() argument 549 magic_buffer(struct magic_set * ms,const void * buf,size_t nb) magic_buffer() argument 567 magic_error(struct magic_set * ms) magic_error() argument 575 magic_errno(struct magic_set * ms) magic_errno() argument 583 magic_getflags(struct magic_set * ms) magic_getflags() argument 592 magic_setflags(struct magic_set * ms,int flags) magic_setflags() argument 611 magic_setparam(struct magic_set * ms,int param,const void * val) magic_setparam() argument 650 magic_getparam(struct magic_set * ms,int param,void * val) magic_getparam() argument [all...] |
| H A D | readcdf.c | 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", }, 60 { "Workbook", "vnd.ms-excel", }, [all …]
|
| H A D | fsmagic.c | 65 # 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 D | apprentice.c | 67 * 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, arg in main() 474 apprentice_1(struct magic_set * ms,const char * fn,int action) apprentice_1() argument 533 file_ms_free(struct magic_set * ms) file_ms_free() argument 552 struct magic_set *ms; file_ms_alloc() local 642 mlist_free_all(struct magic_set * ms) mlist_free_all() argument 691 buffer_apprentice(struct magic_set * ms,struct magic ** bufs,size_t * sizes,size_t nbufs) buffer_apprentice() argument 734 file_apprentice(struct magic_set * ms,const char * fn,int action) file_apprentice() argument 1283 addentry(struct magic_set * ms,struct magic_entry * me,struct magic_entry_set * mset) addentry() argument 1312 load_1(struct magic_set * ms,int action,const char * fn,int * errs,struct magic_entry_set * mset) load_1() argument 1407 set_text_binary(struct magic_set * ms,struct magic_entry * me,uint32_t nme,uint32_t starttest) set_text_binary() argument 1440 set_last_default(struct magic_set * ms,struct magic_entry * me,uint32_t nme) set_last_default() argument 1461 coalesce_entries(struct magic_set * ms,struct magic_entry * me,uint32_t nme,struct magic ** ma,uint32_t * nma) coalesce_entries() argument 1504 apprentice_load(struct magic_set * ms,const char * fn,int action) apprentice_load() argument 1630 file_signextend(struct magic_set * ms,struct magic * m,uint64_t v) file_signextend() argument 1716 string_modifier_check(struct magic_set * ms,struct magic * m) string_modifier_check() argument 1827 check_cond(struct magic_set * ms,int cond,uint32_t cont_level) check_cond() argument 1871 parse_indirect_modifier(struct magic_set * ms,struct magic * m,const char ** lp) parse_indirect_modifier() argument 1892 parse_op_modifier(struct magic_set * ms,struct magic * m,const char ** lp,int op) parse_op_modifier() argument 1909 parse_string_modifier(struct magic_set * ms,struct magic * m,const char ** lp) parse_string_modifier() argument 2016 parse(struct magic_set * ms,struct magic_entry * me,const char * line,size_t lineno,int action) parse() argument 2433 parse_strength(struct magic_set * ms,struct magic_entry * me,const char * line,size_t len) parse_strength() argument 2499 parse_extra(struct magic_set * ms,struct magic_entry * me,const char * line,size_t llen,off_t off,size_t len,const char * name,const char * extra,int nt) parse_extra() argument 2552 parse_apple(struct magic_set * ms,struct magic_entry * me,const char * line,size_t len) parse_apple() argument 2564 parse_ext(struct magic_set * ms,struct magic_entry * me,const char * line,size_t len) parse_ext() argument 2579 parse_mime(struct magic_set * ms,struct magic_entry * me,const char * line,size_t len) parse_mime() argument 2782 check_format(struct magic_set * ms,struct magic * m) check_format() argument 2838 getvalue(struct magic_set * ms,struct magic * m,const char ** p,int action) getvalue() argument 2969 getstr(struct magic_set * ms,struct magic * m,const char * s,int warn) getstr() argument 3251 apprentice_buf(struct magic_set * ms,struct magic * buf,size_t len) apprentice_buf() argument 3274 apprentice_map(struct magic_set * ms,const char * fn) apprentice_map() argument 3350 check_buffer(struct magic_set * ms,struct magic_map * map,const char * dbname) check_buffer() argument 3409 apprentice_compile(struct magic_set * ms,struct magic_map * map,const char * fn) apprentice_compile() argument 3466 mkdbname(struct magic_set * ms,const char * fn,int strip) mkdbname() argument 3634 file_pstring_length_size(struct magic_set * ms,const struct magic * m) file_pstring_length_size() argument 3653 file_pstring_get_length(struct magic_set * ms,const struct magic * m,const char * ss) file_pstring_get_length() argument 3706 file_magicfind(struct magic_set * ms,const char * name,struct mlist * v) file_magicfind() argument [all...] |
| H A D | readelf.c | 66 (namesz == sizeof(v) && memcmp(n, v, namesz) == 0) in toomany() argument 69 toomany(struct magic_set *ms, const char *name, uint16_t num) in toomany() 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() 347 dophn_core(struct magic_set * ms,int clazz,int swap,int fd,off_t off,int num,size_t size,off_t fsize,int * flags,uint16_t * notecount) dophn_core() argument 423 do_note_netbsd_version(struct magic_set * ms,int swap,void * v) do_note_netbsd_version() argument 472 do_note_freebsd_version(struct magic_set * ms,int swap,void * v) do_note_freebsd_version() argument 549 do_bid_note(struct magic_set * ms,unsigned char * nbuf,uint32_t type,int swap,uint32_t namesz,uint32_t descsz,size_t noff,size_t doff,int * flags) do_bid_note() argument 594 do_os_note(struct magic_set * ms,unsigned char * nbuf,uint32_t type,int swap,uint32_t namesz,uint32_t descsz,size_t noff,size_t doff,int * flags) do_os_note() argument 693 do_pax_note(struct magic_set * ms,unsigned char * nbuf,uint32_t type,int swap,uint32_t namesz,uint32_t descsz,size_t noff,size_t doff,int * flags) do_pax_note() argument 733 do_core_note(struct magic_set * ms,unsigned char * nbuf,uint32_t type,int swap,uint32_t namesz,uint32_t descsz,size_t noff,size_t doff,int * flags,size_t size,int clazz) do_core_note() argument 945 get_offset_from_virtaddr(struct magic_set * ms,int swap,int clazz,int fd,off_t off,int num,off_t fsize,uint64_t virtaddr) get_offset_from_virtaddr() argument 979 get_string_on_virtaddr(struct magic_set * ms,int swap,int clazz,int fd,off_t ph_off,int ph_num,off_t fsize,uint64_t virtaddr,char * buf,ssize_t buflen) get_string_on_virtaddr() argument 1013 do_auxv_note(struct magic_set * ms,unsigned char * nbuf,uint32_t type,int swap,uint32_t namesz,uint32_t descsz,size_t noff,size_t doff,int * flags,size_t size,int clazz,int fd,off_t ph_off,int ph_num,off_t fsize) do_auxv_note() argument 1120 dodynamic(struct magic_set * ms,void * vbuf,size_t offset,size_t size,int clazz,int swap,int * pie,size_t * need) dodynamic() argument 1156 donote(struct magic_set * ms,void * vbuf,size_t offset,size_t size,int clazz,int swap,size_t align,int * flags,uint16_t * notecount,int fd,off_t ph_off,int ph_num,off_t fsize) donote() argument 1349 doshn(struct magic_set * ms,int clazz,int swap,int fd,off_t off,int num,size_t size,off_t fsize,int mach,int strtab,int * flags,uint16_t * notecount) doshn() argument 1655 dophn_exec(struct magic_set * ms,int clazz,int swap,int fd,off_t off,int num,size_t size,off_t fsize,int sh_num,int * flags,uint16_t * notecount) dophn_exec() argument 1814 file_tryelf(struct magic_set * ms,const struct buffer * b) file_tryelf() argument [all...] |
| H A D | ascmagic.c | 51 || (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-src/lib/libc/stdio/ |
| H A D | open_wmemstream.c | 55 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 D | open_memstream.c | 54 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-src/lib/libc/iconv/ |
| H A D | citrus_prop.c | 64 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 D | citrus_memstream.h | 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() 86 _citrus_memory_stream_tell(struct _citrus_memory_stream *ms) in _citrus_memory_stream_tell() argument [all …]
|
| /freebsd-src/tests/sys/kern/ |
| H A D | module_test.c | 42 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-src/tools/tools/ath/athalq/ |
| H A D | ar9300_ds.c | 36 #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 D | ar5416_ds.c | 35 #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 D | ar5212_ds.c | 35 #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 D | ar5416_ds_tdma.c | 35 #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-src/usr.sbin/traceroute/ |
| H A D | traceroute.8 | 177 The value must be a decimal integer in the range 0 to 255. 204 Set the time (in milliseconds) to pause between probes (default 0). 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 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 [all …]
|
| /freebsd-src/sys/contrib/openzfs/module/lua/ |
| H A D | lstrlib.c | 56 if (pos >= 0) return (size_t)pos; in posrelat() 57 else if (0u - (size_t)pos > len) return 0; in posrelat() 81 for (i = 0; i < l; i++) in str_reverse() 94 for (i=0; i<l; i++) in str_lower() 107 for (i=0; i<l; i++) in str_upper() 115 #define MAXSIZE ((~(size_t)0) >> 1) 122 if (n <= 0) lua_pushliteral(L, ""); in str_rep() 131 if (lsep > 0) { /* avoid empty 'memcpy' (may be expensive) */ in str_rep() 150 if (posi > pose) return 0; /* empty interval; return no values */ in str_byte() 155 for (i=0; i<n; i++) in str_byte() [all …]
|
| /freebsd-src/contrib/llvm-project/llvm/lib/DWARFLinker/Classic/ |
| H A D | DWARFStreamer.cpp | 3 // 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-src/sys/contrib/openzfs/module/zstd/lib/compress/ |
| H A D | zstd_lazy.c | 20 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-src/contrib/libfido2/src/ |
| H A D | io.c | 34 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 D | config.c | 12 #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 …]
|
| /freebsd-src/sys/contrib/zstd/lib/compress/ |
| H A D | zstd_lazy.c | 20 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-src/lib/libiconv_modules/mapper_std/ |
| H A D | citrus_mapper_std.c | 72 return (0); in _citrus_mapper_std_mapper_getops() 79 rowcol_convert(struct _citrus_mapper_std * __restrict ms, in rowcol_convert() argument 84 _index_t idx = 0, n; in rowcol_convert() 89 rc = &ms->ms_rowcol; in rowcol_convert() 92 lz = &rc->rc_src_rowcol[0]; i > 0; ++lz) { in rowcol_convert() 146 return (0); in set_linear_zone() 176 if (m + n > 0) { in rowcol_parse_variable_compat() 178 if (ret != 0) { in rowcol_parse_variable_compat() 219 for (i = 0, lz = rc->rc_src_rowcol; in rowcol_parse_variable() 224 if (ret != 0) { in rowcol_parse_variable() [all …]
|