/freebsd-11-stable/contrib/elftoolchain/readelf/ |
H A D | readelf.c | 327 static void dump_notes_content(struct readelf *re, const char *buf, size_t sz, 330 uint32_t type, const char *buf, size_t sz); 334 static void dump_gnu_property_type_0(struct readelf *re, const char *buf, 2539 static char buf[BUF_SZ]; local 2545 snprintf(buf, BUF_SZ, "[%*.*jx]: ", nb, nb, 2553 snprintf(&buf[p], BUF_SZ - p, "%s, ", 2557 buf[p++] = section_flag[i].sn; 2561 buf[p] = '\0'; 2563 return (buf); 3329 uint32_t *buf; local 3389 uint64_t *buf; local 3462 uint32_t *buf; local 3539 dump_gnu_property_type_0(struct readelf *re, const char *buf, size_t sz) argument 3720 dump_notes_data(struct readelf *re, const char *name, uint32_t type, const char *buf, size_t sz) argument 3784 dump_notes_content(struct readelf *re, const char *buf, size_t sz, off_t off) argument 3873 uint8_t *buf, *end, *buf2; local 3948 uint8_t *buf, *end, *buf2; local 6989 uint8_t *buf, *new_buf; local [all...] |
/freebsd-11-stable/contrib/libarchive/test_utils/ |
H A D | test_main.c | 1742 REPARSE_DATA_BUFFER *buf; local 1816 buf = (REPARSE_DATA_BUFFER *) indata; 1817 if (buf->ReparseTag != IO_REPARSE_TAG_SYMLINK) { 1831 len = buf->SymbolicLinkReparseBuffer.SubstituteNameLength; 1839 memcpy(linknamew, &((BYTE *)buf->SymbolicLinkReparseBuffer.PathBuffer) 1840 [buf->SymbolicLinkReparseBuffer.SubstituteNameOffset], len);
|
/freebsd-11-stable/contrib/libarchive/libarchive/test/ |
H A D | test_read_format_zip.c | 36 uint8_t* buf; local 41 buf = malloc(fsize); 42 if(buf == NULL) 45 bytes_read = archive_read_data(a, buf, fsize); 51 computed_crc = crc32(0, buf, fsize); 56 free(buf); 63 uint8_t* buf; local 68 buf = malloc(block_size); 69 if(buf == NULL) 73 bytes_read = archive_read_data(a, buf, block_siz 818 char buf[64]; local 840 char buf[8]; local 866 char buf[64]; local 887 char buf[64]; local [all...] |
/freebsd-11-stable/contrib/libarchive/libarchive/ |
H A D | archive_read_support_format_rar5.c | 174 const uint8_t* buf; member in struct:data_ready 359 static void rar5_signature(char *buf); 363 const uint8_t* buf, size_t size, int64_t offset); 705 const uint8_t* buf, int64_t idx_begin, int64_t idx_end) 727 push_data_ready(a, rar, buf + solid_write_ptr, frag1_size, 731 push_data_ready(a, rar, buf, frag2_size, 739 buf + solid_write_ptr, (idx_end - idx_begin) & wmask, 3467 /* Pops the `buf`, `size` and `offset` from the "data ready" stack. 3471 static int use_data(struct rar5* rar, const void** buf, size_t* size, argument 3480 if(buf) *bu 704 push_data(struct archive_read* a, struct rar5* rar, const uint8_t* buf, int64_t idx_begin, int64_t idx_end) argument 3495 push_data_ready(struct archive_read* a, struct rar5* rar, const uint8_t* buf, size_t size, int64_t offset) argument 3701 do_unstore_file(struct archive_read* a, struct rar5* rar, const void** buf, size_t* size, int64_t* offset) argument 3749 do_unpack(struct archive_read* a, struct rar5* rar, const void** buf, size_t* size, int64_t* offset) argument 3896 rar5_signature(char *buf) argument [all...] |
H A D | archive_random.c | 75 archive_random(void *buf, size_t nbytes) argument 88 success = CryptGenRandom(hProv, (DWORD)nbytes, (BYTE*)buf); 96 arc4random_buf(buf, nbytes); 261 uint8_t *buf = (uint8_t *)_buf; local 267 buf[n] = arc4_getbyte();
|
/freebsd-11-stable/stand/i386/libi386/ |
H A D | pxe.c | 440 char *buf, *ptr, *frame; local 443 buf = NULL; 496 if (buf == NULL) { 499 * allocate an rx buf to hold. Careful here, as we may 504 buf = malloc(size + ETHER_ALIGN); 505 if (buf == NULL) 508 ptr = buf + ETHER_ALIGN; 533 free(buf); 546 *pkt = buf;
|
/freebsd-11-stable/sbin/dhclient/ |
H A D | dhclient.c | 130 int ipv4addrs(const char * buf); 2000 struct buf *buf; local 2011 if ((buf = buf_open(hdr.len)) == NULL) 2015 errs += buf_add(buf, &hdr, sizeof(hdr)); 2016 errs += buf_add(buf, &mediumlen, sizeof(mediumlen)); 2018 errs += buf_add(buf, medium->string, mediumlen); 2020 errs += buf_add(buf, &len, sizeof(len)); 2021 errs += buf_add(buf, reason, len); 2026 if (buf_close(privfd, buf) 2203 struct buf *buf; local 2256 struct buf *buf; local 2402 dhcp_option_ev_name(char *buf, size_t buflen, struct option *option) argument 2728 ipv4addrs(const char * buf) argument [all...] |
/freebsd-11-stable/sbin/ggate/ggatec/ |
H A D | ggatec.c | 96 char buf[MAXPHYS]; local 104 ggio.gctl_data = buf; 107 ggio.gctl_length = sizeof(buf); 204 char buf[MAXPHYS]; local 211 ggio.gctl_data = buf; 235 if (ggio.gctl_length > (off_t) sizeof(buf)) {
|
/freebsd-11-stable/lib/libfetch/ |
H A D | ftp.c | 149 if (isftpinfo(conn->buf)) { 150 while (conn->buflen && !isftpreply(conn->buf)) { 159 isspace((unsigned char)conn->buf[conn->buflen - 1])) 161 conn->buf[conn->buflen] = '\0'; 163 if (!isftpreply(conn->buf)) { 168 conn->err = (conn->buf[0] - '0') * 100 169 + (conn->buf[1] - '0') * 10 170 + (conn->buf[2] - '0'); 242 end = conn->buf + conn->buflen; 243 src = conn->buf 492 ftp_readfn(void *v, char *buf, int len) argument 525 ftp_writefn(void *v, const char *buf, int len) argument [all...] |
/freebsd-11-stable/libexec/ftpd/ |
H A D | ftpd.c | 2075 char *buf; local 2174 if ((buf = malloc(blksize)) == NULL) { 2184 cnt = read(filefd, buf, blksize); 2185 CHECKOOB(free(buf); return (-1)) 2187 free(buf); 2194 for (len = cnt, bp = buf; len > 0;) { 2196 CHECKOOB(free(buf); return (-1)) 2198 free(buf); 2209 free(buf); variable 2250 char buf[BUFSI [all...] |
/freebsd-11-stable/sys/contrib/ipfilter/netinet/ |
H A D | ip_state.c | 1904 char buf[64], *s, opt; local 1925 COPYDATA(m, off, len, buf); 1927 for (s = buf; len > 0; ) {
|
/freebsd-11-stable/usr.bin/ar/ |
H A D | write.c | 67 static void prefault_buffer(const char *buf, size_t s); 73 const void *buf, size_t s); 570 prefault_buffer(const char *buf, size_t s) argument 578 for (p = buf; p < buf + s; p += page_size) 584 *(volatile const char *)(buf + s - 1); 591 write_data(struct bsdar *bsdar, struct archive *a, const void *buf, size_t s) argument 595 prefault_buffer(buf, s); 597 written = archive_write_data(a, buf, s); 601 buf [all...] |
/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | kernel.h | 155 vscnprintf(char *buf, size_t size, const char *fmt, va_list args) argument 160 i = vsnprintf(buf, size, fmt, args); 166 scnprintf(char *buf, size_t size, const char *fmt, ...) argument 172 i = vscnprintf(buf, size, fmt, args); 436 char buf[8] = {}; local 438 if (count > (sizeof(buf) - 1)) 439 count = (sizeof(buf) - 1); 441 if (copy_from_user(buf, s, count)) 444 return (kstrtobool(buf, res));
|
/freebsd-11-stable/sys/netgraph/ |
H A D | ng_base.c | 432 const u_char *start, const u_char *buf) 434 return *((const u_int32_t *)(buf - 4)); 440 const u_char *start, const u_char *buf) 431 ng_generic_list_getLength(const struct ng_parse_type *type, const u_char *start, const u_char *buf) argument 439 ng_generic_linkinfo_getLength(const struct ng_parse_type *type, const u_char *start, const u_char *buf) argument
|
H A D | ng_parse.c | 106 u_char *const buf, int *buflen, enum comptype ctype); 111 int index, const u_char *start, u_char *buf, 114 const u_char *start, const u_char *buf, 148 const char *string, int *off, u_char *buf, int *buflen) 150 return INVOKE(type, parse)(type, string, off, buf, buf, buflen); 169 ng_parse_getDefault(const struct ng_parse_type *type, u_char *buf, int *buflen) argument 175 return (*func)(type, buf, buf, buflen); 186 u_char *const buf, in 147 ng_parse(const struct ng_parse_type *type, const char *string, int *off, u_char *buf, int *buflen) argument 184 ng_struct_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 199 ng_struct_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 238 ng_fixedarray_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 255 ng_fixedarray_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 287 ng_array_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 302 ng_array_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 334 ng_int8_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 385 ng_int8_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 429 ng_int16_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 481 ng_int16_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 525 ng_int32_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 580 ng_int32_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 624 ng_int64_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 675 ng_int64_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 719 ng_string_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 756 ng_string_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 782 ng_fixedstring_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 819 ng_fixedstring_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 886 ng_sizedstring_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 929 ng_sizedstring_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 954 ng_ipaddr_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 991 ng_ipaddr_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 1018 ng_enaddr_parse(const struct ng_parse_type *type, const char *s, int *const off, const u_char *const start, u_char *const buf, int *const buflen) argument 1075 ng_parse_bytearray_subtype_getLength(const struct ng_parse_type *type, const u_char *start, const u_char *buf) argument 1095 ng_bytearray_parse(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen) argument 1144 ng_bytearray_getDefault(const struct ng_parse_type *type, const u_char *const start, u_char *buf, int *buflen) argument 1170 ng_parse_ng_mesg_getLength(const struct ng_parse_type *type, const u_char *start, const u_char *buf) argument 1201 ng_parse_composite(const struct ng_parse_type *type, const char *s, int *off, const u_char *const start, u_char *const buf, int *buflen, const enum comptype ctype) argument 1471 ng_get_composite_elem_default(const struct ng_parse_type *type, int index, const u_char *const start, u_char *buf, int *buflen, const enum comptype ctype) argument 1517 ng_get_composite_len(const struct ng_parse_type *type, const u_char *const start, const u_char *buf, const enum comptype ctype) argument [all...] |
/freebsd-11-stable/contrib/sqlite3/tea/ |
H A D | configure | 3246 struct buf { int x; }; 3247 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3281 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3956 struct buf { int x; }; 3957 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3991 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 8211 struct stat64 buf; int i = stat64("/", &buf); 8226 struct stat64 buf; int i = stat64("/", &buf); [all...] |
/freebsd-11-stable/contrib/sqlite3/ |
H A D | sqlite3.c | 28677 char buf[etBUFSIZE]; /* Conversion buffer */ local 32411 u8 buf[10]; local 35336 struct stat buf; local 37497 struct stat buf; local 37698 struct stat buf; local 37737 struct stat buf; /* Used to hold return values of fstat() */ local 39630 struct stat buf; local 40207 struct stat buf; local 40829 char buf[MAXPATHLEN]; local 41008 char buf[PROXY_MAXCONCHLEN]; local 41082 struct stat buf; local 41273 struct stat buf; local 82176 sqlite3VdbeSerialPut(u8 *buf, Mem *pMem, u32 serial_type) argument 82230 serialGet( const unsigned char *buf, u32 serial_type, Mem *pMem ) argument 82266 sqlite3VdbeSerialGet( const unsigned char *buf, u32 serial_type, Mem *pMem ) argument 205653 SessionBuffer buf; /* Current read buffer */ member in struct:SessionInput 207836 SessionBuffer buf = {0, 0, 0}; local 207975 SessionBuffer buf = {0,0,0}; /* Buffer in which to accumlate changeset */ local 209224 SessionBuffer buf; local 209334 SessionBuffer buf = {0, 0, 0}; local 209416 SessionBuffer buf = {0, 0, 0}; local 210637 SessionBuffer buf = {0, 0, 0}; local 215720 Fts5Buffer buf = {0, 0, 0}; local 216760 Fts5Buffer buf = {0, 0, 0}; local 220155 Fts5Buffer buf; /* Buffer containing leaf data */ member in struct:Fts5PageWriter 220163 Fts5Buffer buf; /* Buffer containing page data */ member in struct:Fts5DlidxWriter 220927 Fts5Buffer buf; /* Buffer to serialize record into */ local 223940 Fts5Buffer buf; local 225289 Fts5Buffer buf = {0, 0, 0}; local 229946 Fts5Buffer buf; local 230038 Fts5Buffer buf = {0,0,0}; local 230177 Fts5Buffer buf; /* Buffer used to build up %_docsize blob */ local 233095 u8 buf[10]; local [all...] |
H A D | shell.c | 2222 # define lstat(path,buf) stat(path,buf)
|
H A D | ltmain.sh | 6112 char buf[LT_PATHMAX]; 6155 tmp_pathspec = realpath (pathspec, buf);
|
H A D | configure | 3686 struct buf { int x; }; 3687 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3721 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4615 struct buf { int x; }; 4616 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4650 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 13017 char buf[100]; 13018 char x = *strerror_r (0, buf, sizeof buf); 13019 char *p = strerror_r (0, buf, sizeo [all...] |
/freebsd-11-stable/usr.sbin/unbound/ |
H A D | config.h | 1267 char *ctime_r(const time_t *timep, char *buf); 1282 void explicit_bzero(void* buf, size_t len); 1323 int getentropy(void* buf, size_t len); 1325 void arc4random_buf(void* buf, size_t n);
|
/freebsd-11-stable/testcode/ |
H A D | fake_event.c | 112 fake_temp_file(const char* adj, const char* id, char* buf, size_t len) argument 115 snprintf(buf, len, "testbound_%u%s%s.tmp", 118 snprintf(buf, len, "/tmp/testbound_%u%s%s.tmp", 1702 char buf[512]; local 1704 (void)sldns_wire2str_rrquestion_buf(sldns_buffer_at(query, LDNS_HEADER_SIZE), sldns_buffer_limit(query)-LDNS_HEADER_SIZE, buf, sizeof(buf)); 1708 if(buf[0] != 0) buf[strlen(buf)-1] = 0; /* del newline*/ 1709 log_info("tcp to %s: %s", addrbuf, buf); 1792 char buf[512]; local [all...] |
/freebsd-11-stable/contrib/unbound/validator/ |
H A D | autotrust.c | 924 read_multiline(char* buf, size_t len, FILE* in, int* linenr) argument 926 char* pos = buf; 929 buf[len-1] = 0; 980 if(pos != buf) 2258 char buf[32]; local 2265 ctime_r(&ta->last_change, buf); 2266 if(buf[0]) buf[strlen(buf)-1]=0; /* remove newline */ 2269 ta->fetched?" fetched":"", ta->revoked?" revoked":"", buf); 2278 char buf[257]; local 2350 sldns_buffer* buf = env->scratch_buffer; local [all...] |
/freebsd-11-stable/contrib/unbound/util/ |
H A D | netevent.h | 892 ssize_t http2_recv_cb(nghttp2_session* session, uint8_t* buf, 895 ssize_t http2_send_cb(nghttp2_session* session, const uint8_t* buf,
|
H A D | netevent.c | 412 char buf[1024]; local 414 buf, (socklen_t)sizeof(buf)) == 0) { 415 (void)strlcpy(buf, "(inet_ntop error)", sizeof(buf)); 417 buf[sizeof(buf)-1]=0; 418 log_info("%s: %s %d", str, buf, r->pktinfo.v6info.ipi6_ifindex); 462 char buf[256]; member in union:__anon2 481 msg.msg_control = control.buf; 637 char buf[256]; member in union:__anon3 1270 char buf[255]; local 1451 uint8_t buf[LDNS_RR_BUF_SIZE]; local 1469 uint8_t buf[LDNS_RR_BUF_SIZE]; local 2242 http_header_done(sldns_buffer* buf) argument 2256 http_header_line(sldns_buffer* buf) argument 2276 http_moveover_buffer(sldns_buffer* buf) argument 2610 ssize_t http2_recv_cb(nghttp2_session* ATTR_UNUSED(session), uint8_t* buf, local 2934 ssize_t http2_send_cb(nghttp2_session* ATTR_UNUSED(session), const uint8_t* buf, local [all...] |