/freebsd-11-stable/tests/sys/netgraph/ |
H A D | util.h | 86 int ng_handle_event(unsigned int ms, void *ctx); 87 void ng_handle_events(unsigned int ms, void *ctx);
|
H A D | util.c | 197 ng_handle_event(unsigned int ms, void *context) argument 201 struct timeval timeout = {0, ms * 1000lu}; 224 ng_handle_events(unsigned int ms, void *context) argument 226 while (ng_handle_event(ms, context))
|
/freebsd-11-stable/contrib/sqlite3/ |
H A D | sqlite3ext.h | 47 int (*busy_timeout)(sqlite3*,int ms);
|
H A D | sqlite3.h | 2679 ** will sleep multiple times until at least "ms" milliseconds of sleeping 2680 ** have accumulated. ^After at least "ms" milliseconds of sleeping, 2694 SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms);
|
H A D | sqlite3.c | 3742 ** will sleep multiple times until at least "ms" milliseconds of sleeping 3743 ** have accumulated. ^After at least "ms" milliseconds of sleeping, 3757 SQLITE_API int sqlite3_busy_timeout(sqlite3*, int ms); 22194 double ms = 0.0; local 22209 ms = ms*10.0 + *zDate - '0'; 22213 ms /= rScale; 22223 p->s = s + ms; 165821 sqlite3_busy_timeout(sqlite3 *db, int ms) argument 167846 sqlite3_sleep(int ms) argument [all...] |
/freebsd-11-stable/contrib/less/ |
H A D | os.c | 414 sleep_ms(ms) 415 int ms; 418 Sleep(ms); 421 int sec = ms / 1000; 422 struct timespec t = { sec, (ms - sec*1000) * 1000000 }; 426 usleep(ms); 428 sleep((ms+999) / 1000);
|
H A D | funcs.h | 278 public void sleep_ms LESSPARAMS ((int ms));
|
/freebsd-11-stable/sys/kern/ |
H A D | kern_event.c | 596 #define MS_TO_SBT(ms) (((ms) * (((uint64_t)1 << 63) / 500)) >> 32)
|
/freebsd-11-stable/sys/dev/usb/ |
H A D | usbdi.h | 87 #define USB_DEFAULT_TIMEOUT 5000 /* 5000 ms = 5 seconds */ 119 #define USB_MS_TO_TICKS(ms) \ 120 (((uint32_t)((((uint32_t)(ms)) * ((uint32_t)(hz))) + USB_MS_HZ - 1)) / USB_MS_HZ)
|
H A D | usb_transfer.c | 103 .interval = 50, /* 50ms */ 130 .interval = 50, /* 50ms */ 678 /* 125us -> 1ms */ 2908 * "cb" will get called after "ms" milliseconds. 2912 void (*cb) (void *arg), usb_timeout_t ms) 2918 USB_MS_TO_TICKS(ms) + USB_CALLOUT_ZERO_TICKS, cb, xfer); 2976 DPRINTFN(3, "DMA delay, %u ms, " 2911 usbd_transfer_timeout_ms(struct usb_xfer *xfer, void (*cb) (void *arg), usb_timeout_t ms) argument
|
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_write_set_format_xar.c | 933 char ms[5]; local 935 ms[0] = '0'; 936 ms[1] = '0' + ((mode >> 6) & 07); 937 ms[2] = '0' + ((mode >> 3) & 07); 938 ms[3] = '0' + (mode & 07); 939 ms[4] = '\0'; 941 return (xmlwrite_string(a, writer, key, ms));
|
/freebsd-11-stable/sys/compat/freebsd32/ |
H A D | freebsd32_misc.c | 2809 modspecific_t ms; local 2821 ms.intval = *data->offset; 2823 module_setspecific(mod, &ms);
|
/freebsd-11-stable/libexec/rtld-elf/ |
H A D | rtld.c | 296 #define LD_UTRACE(e, h, mb, ms, r, n) do { \ 298 ld_utrace_log(e, h, mb, ms, r, n); \
|
/freebsd-11-stable/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 4734 APInt::ms magics = Divisor.magic();
|
/freebsd-11-stable/contrib/llvm-project/lld/ELF/ |
H A D | OutputSections.cpp | 169 MergeInputSection *ms = dyn_cast<MergeInputSection>(s); local 170 if (!ms) { 177 if (!ms->isLive()) 191 return sec->flags == ms->flags && sec->entsize == ms->entsize && 192 (sec->alignment == ms->alignment || !(sec->flags & SHF_STRINGS)); 196 createMergeSynthetic(name, ms->type, ms->flags, ms->alignment); 199 syn->entsize = ms [all...] |
H A D | InputSection.cpp | 182 const MergeInputSection *ms = cast<MergeInputSection>(this); local 183 if (InputSection *isec = ms->getParent()) 184 return isec->getOffset(ms->getParentOffset(offset)); 185 return ms->getParentOffset(offset); 199 else if (auto *ms = dyn_cast<MergeInputSection>(this)) 200 sec = ms->getParent();
|
/freebsd-11-stable/sbin/newfs_msdos/ |
H A D | mkfs_msdos.c | 888 off_t ms, hs = 0; local 899 if (ioctl(fd, DIOCGMEDIASIZE, &ms) == -1) { 905 ms = st.st_size; 909 dlp.d_secperunit = ms / dlp.d_secsize; 915 dlp.d_secperunit = ms / dlp.d_secsize; 928 dlp.d_secperunit = ms / dlp.d_secsize; 946 hs = (ms / dlp.d_secsize) - dlp.d_secperunit;
|
/freebsd-11-stable/contrib/file/src/ |
H A D | softmagic.c | 117 file_softmagic(struct magic_set *ms, const struct buffer *b, argument 133 for (ml = ms->mlist[0]->next; ml != ms->mlist[0]; ml = ml->next) 134 if ((rv = match(ms, ml->magic, ml->nmagic, b, 0, mode, 147 file_fmtcheck(struct magic_set *ms, const char *desc, const char *def, argument 157 file_magerror(ms, 194 match(struct magic_set *ms, struct magic *magic, uint32_t nmagic, argument 206 int print = (ms->flags & MAGIC_NODESC) == 0; 217 if (file_check_mem(ms, cont_level) == -1) 239 if (msetoffset(ms, 471 check_fmt(struct magic_set *ms, const char *fmt) argument 513 varexpand(struct magic_set *ms, char *buf, size_t len, const char *str) argument 568 mprint(struct magic_set *ms, struct magic *m) argument 865 moffset(struct magic_set *ms, struct magic *m, const struct buffer *b, int32_t *op) argument 1010 cvt_id3(struct magic_set *ms, uint32_t v) argument 1173 mconvert(struct magic_set *ms, struct magic *m, int flip) argument 1338 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) argument 1510 msetoffset(struct magic_set *ms, struct magic *m, struct buffer *bb, const struct buffer *b, size_t o, unsigned int cont_level) argument 1560 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 *returnval, int *found_match) argument 1993 magiccheck(struct magic_set *ms, struct magic *m) argument 2352 handle_annotation(struct magic_set *ms, struct magic *m, int firstline) argument 2385 print_sep(struct magic_set *ms, int firstline) argument [all...] |
H A D | readelf.c | 68 toomany(struct magic_set *ms, const char *name, uint16_t num) argument 70 if (ms->flags & MAGIC_MIME) 72 if (file_printf(ms, ", too many %s (%u)", name, num) == -1) 349 dophn_core(struct magic_set *ms, int clazz, int swap, int fd, off_t off, argument 360 if (ms->flags & MAGIC_MIME) 364 if (file_printf(ms, ", no program header") == -1) 369 if (file_printf(ms, ", corrupted program header size") == -1) 380 file_badread(ms); 399 file_badread(ms); 406 offset = donote(ms, nbu 419 do_note_netbsd_version(struct magic_set *ms, int swap, void *v) argument 465 do_note_freebsd_version(struct magic_set *ms, int swap, void *v) argument 542 do_bid_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, int swap __attribute__((__unused__)), uint32_t namesz, uint32_t descsz, size_t noff, size_t doff, int *flags) argument 587 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) argument 686 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) argument 726 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) argument 931 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) argument 961 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) argument 994 do_auxv_note(struct magic_set *ms, unsigned char *nbuf, uint32_t type, int swap, uint32_t namesz __attribute__((__unused__)), uint32_t descsz __attribute__((__unused__)), size_t noff __attribute__((__unused__)), size_t doff, int *flags, size_t size __attribute__((__unused__)), int clazz, int fd, off_t ph_off, int ph_num, off_t fsize) argument 1101 dodynamic(struct magic_set *ms, void *vbuf, size_t offset, size_t size, int clazz, int swap) argument 1133 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) argument 1328 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) argument 1616 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) argument 1760 file_tryelf(struct magic_set *ms, const struct buffer *b) argument [all...] |
H A D | print.c | 225 file_magwarn(struct magic_set *ms, const char *f, ...) argument 232 if (ms->file) 233 (void) fprintf(stderr, "%s, %lu: ", ms->file, 234 CAST(unsigned long, ms->line));
|
H A D | magic.c | 267 unreadable_info(struct magic_set *ms, mode_t md, const char *file) argument 272 if (file_printf(ms, "writable, ") == -1) 275 if (file_printf(ms, "executable, ") == -1) 279 if (file_printf(ms, "regular file, ") == -1) 281 if (file_printf(ms, "no read permission") == -1) 287 magic_close(struct magic_set *ms) argument 289 if (ms == NULL) 291 file_ms_free(ms); 298 magic_load(struct magic_set *ms, const char *magicfile) argument 300 if (ms 310 magic_load_buffers(struct magic_set *ms, void **bufs, size_t *sizes, size_t nbufs) argument 321 magic_compile(struct magic_set *ms, const char *magicfile) argument 329 magic_check(struct magic_set *ms, const char *magicfile) argument 337 magic_list(struct magic_set *ms, const char *magicfile) argument 345 close_and_restore(const struct magic_set *ms, const char *name, int fd, const struct stat *sb) argument 383 magic_descriptor(struct magic_set *ms, int fd) argument 394 magic_file(struct magic_set *ms, const char *inname) argument 402 file_or_fd(struct magic_set *ms, const char *inname, int fd) argument 529 magic_buffer(struct magic_set *ms, const void *buf, size_t nb) argument 547 magic_error(struct magic_set *ms) argument 555 magic_errno(struct magic_set *ms) argument 563 magic_getflags(struct magic_set *ms) argument 572 magic_setflags(struct magic_set *ms, int flags) argument 591 magic_setparam(struct magic_set *ms, int param, const void *val) argument 624 magic_getparam(struct magic_set *ms, int param, void *val) argument [all...] |
H A D | is_json.c | 394 file_is_json(struct magic_set *ms, const struct buffer *b) argument 399 int mime = ms->flags & MAGIC_MIME; 402 if ((ms->flags & (MAGIC_APPLE|MAGIC_EXTENSION)) != 0) 413 if (file_printf(ms, "application/json") == -1) 417 if (file_printf(ms, "JSON data") == -1) 421 if (file_printf(ms, " (%" SIZE_T_FORMAT "u object%s, %" SIZE_T_FORMAT
|
H A D | funcs.c | 61 file_clearbuf(struct magic_set *ms) argument 63 free(ms->o.buf); 64 ms->o.buf = NULL; 65 ms->o.blen = 0; 126 file_vprintf(struct magic_set *ms, const char *fmt, va_list ap) argument 132 if (ms->event_flags & EVENT_HAD_ERR) 136 file_clearbuf(ms); 137 file_error(ms, 0, "Bad magic format `%s' (%s)", fmt, tbuf); 142 if (len < 0 || (size_t)len > 1024 || len + ms->o.blen > 1024 * 1024) { 143 size_t blen = ms 169 file_printf(struct magic_set *ms, const char *fmt, ...) argument 186 file_error_core(struct magic_set *ms, int error, const char *f, va_list va, size_t lineno) argument 207 file_error(struct magic_set *ms, int error, const char *f, ...) argument 220 file_magerror(struct magic_set *ms, const char *f, ...) argument 229 file_oomem(struct magic_set *ms, size_t len) argument 236 file_badseek(struct magic_set *ms) argument 242 file_badread(struct magic_set *ms) argument 250 file_separator(struct magic_set *ms) argument 256 checkdone(struct magic_set *ms, int *rv) argument 266 file_default(struct magic_set *ms, size_t nb) argument 296 file_buffer(struct magic_set *ms, int fd, struct stat *st, const char *inname __attribute__ ((__unused__)), const void *buf, size_t nb) argument 476 file_reset(struct magic_set *ms, int checkloaded) argument 501 file_getbuffer(struct magic_set *ms) argument 579 file_check_mem(struct magic_set *ms, unsigned int level) argument 602 file_printedlen(const struct magic_set *ms) argument 608 file_replace(struct magic_set *ms, const char *pat, const char *rep) argument 679 file_regerror(file_regex_t *rx, int rc, struct magic_set *ms) argument 689 file_push_buffer(struct magic_set *ms) argument 711 file_pop_buffer(struct magic_set *ms, file_pushbuf_t *pb) argument [all...] |
H A D | file.c | 170 private int process(struct magic_set *ms, const char *, int); 493 unwrap(struct magic_set *ms, const char *fn) argument 525 e |= process(ms, line, wid); 539 process(struct magic_set *ms, const char *inname, int wid) argument 555 type = magic_file(ms, std_in ? NULL : inname); 558 (void)printf("ERROR: %s%c", magic_error(ms), c);
|
H A D | der.c | 264 der_offs(struct magic_set *ms, struct magic *m, size_t nbytes) argument 266 const uint8_t *b = RCAST(const uint8_t *, ms->search.s); 267 size_t offs = 0, len = ms->search.s_len ? ms->search.s_len : nbytes; 273 DPRINTF(("%s1: %d %" SIZE_T_FORMAT "u %u\n", __func__, ms->offset, 281 DPRINTF(("%s2: %d %" SIZE_T_FORMAT "u %u\n", __func__, ms->offset, 284 offs += ms->offset + m->offset; 289 ms->c.li[i].off); 294 ms->c.li[m->cont_level - 1].off = CAST(int, offs + tlen); 296 ms 302 der_cmp(struct magic_set *ms, struct magic *m) argument [all...] |