Home
last modified time | relevance | path

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

12345678910>>...44

/freebsd-src/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()
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 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()
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 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 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()
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 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()
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;
75 return 1;
66 toomany(struct magic_set * ms,const char * name,uint16_t num) toomany() argument
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 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, 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 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-src/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-src/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-src/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-src/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-src/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-src/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 in emitSectionContents()
[all...]
/freebsd-src/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-src/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-src/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-src/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 …]
H A Dconfig.c24 prefix[sizeof(prefix) - 1] = subcmd; in config_prepare_hmac()
29 return -1; in config_prepare_hmac()
34 return -1; in config_prepare_hmac()
45 const char *pin, int *ms) in config_tx() argument
65 (argv[1] = cbor_flatten_vector(paramv, paramc)) == NULL) { in config_tx()
73 if (config_prepare_hmac(subcmd, argv[1], &hmac) < 0) { in config_tx()
77 if ((r = fido_do_ecdh(dev, &pk, &ecdh, ms)) != FIDO_OK) { in config_tx()
82 NULL, &argv[3], &argv[2], ms)) != FIDO_OK) { in config_tx()
90 fido_tx(dev, CTAP_CMD_CBOR, f.ptr, f.len, ms) < 0) { in config_tx()
108 config_enable_entattest_wait(fido_dev_t *dev, const char *pin, int *ms) in config_enable_entattest_wait() argument
[all …]
/freebsd-src/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-src/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>>...44