/freebsd-10.3-release/contrib/ofed/management/libibmad/src/ |
H A D | mad.c | 53 mad_decode_field(uint8_t *buf, int field, void *val) argument 58 *(int *)val = *(int *)buf; 62 *(uint32_t *)val = _get_field(buf, 0, f); 66 *(uint64_t *)val = _get_field64(buf, 0, f); 69 _get_array(buf, 0, f, val); 73 mad_encode_field(uint8_t *buf, int field, void *val) argument 78 *(int *)buf = *(int *)val; 82 _set_field(buf, 0, f, *(uint32_t *)val); 86 _set_field64(buf, 0, f, *(uint64_t *)val); 89 _set_array(buf, 109 mad_encode(void *buf, ib_rpc_t *rpc, ib_dr_path_t *drpath, void *data) argument [all...] |
/freebsd-10.3-release/contrib/wpa/hostapd/ |
H A D | hostapd_cli.c | 169 char buf[4096]; local 177 len = sizeof(buf) - 1; 178 ret = wpa_ctrl_request(ctrl, cmd, strlen(cmd), buf, &len, 188 buf[len] = '\0'; 189 printf("%s", buf); 266 char buf[64]; local 272 snprintf(buf, sizeof(buf), "STA %s", argv[0]); 273 return wpa_ctrl_command(ctrl, buf); 280 char buf[6 local 294 char buf[64]; local 312 char buf[64]; local 331 char buf[64]; local 347 char buf[256]; local 410 char *buf; local 479 char buf[64]; local 500 char buf[256]; local 545 char buf[300]; local 565 char buf[300]; local 592 char buf[4096], *pos; local 858 char buf[256]; local 987 char buf[256]; local [all...] |
/freebsd-10.3-release/contrib/netbsd-tests/lib/libc/string/ |
H A D | t_strerror.c | 89 char buf[512]; local 93 ATF_REQUIRE(strerror_r(i, buf, sizeof(buf)) == 0); 94 ATF_REQUIRE(strstr(buf, "Unknown error:") == NULL); 98 ATF_REQUIRE(strerror_r(i, buf, sizeof(buf)) == EINVAL); 99 ATF_REQUIRE(strstr(buf, "Unknown error:") != NULL); 111 char buf[512]; local 114 rv = strerror_r(EPERM, buf, 1); 117 rv = strerror_r(INT_MAX, buf, sizeo [all...] |
/freebsd-10.3-release/crypto/heimdal/lib/roken/ |
H A D | parse_time-test.c | 63 char *buf; local 72 buf = rk_test_mem_alloc(RK_TM_OVERRUN, "overrun", 74 sz = unparse_time(tests[i].val, buf, buf_sz); 80 if (buf_sz > 0 && memcmp(buf, tests[i].str, buf_sz - 1) != 0) 81 errx(1, "test %i wrong result %s vs %s", i, buf, tests[i].str); 82 if (buf_sz > 0 && buf[buf_sz - 1] != '\0') 86 buf = rk_test_mem_alloc(RK_TM_UNDERRUN, "underrun", 88 sz = unparse_time(tests[i].val, buf, min(buf_sz, tests[i].size)); 94 if (buf_sz > 0 && strncmp(buf, tests[i].str, min(buf_sz, tests[i].size) - 1) != 0) 95 errx(1, "test %i wrong result %s vs %s", i, buf, test [all...] |
H A D | strpftime-test.h | 49 strftime (char *buf, size_t maxsize, const char *format, 53 strptime (const char *buf, const char *format, struct tm *timeptr);
|
/freebsd-10.3-release/usr.sbin/bluetooth/sdpd/ |
H A D | lan.c | 43 uint8_t *buf, uint8_t const * const eob, 51 buf, eob, 58 uint8_t *buf, uint8_t const * const eob, 67 buf, eob, 74 uint8_t *buf, uint8_t const * const eob, 80 buf, eob, 86 uint8_t *buf, uint8_t const * const eob, 93 buf, eob, 99 uint8_t *buf, uint8_t const * const eob, 105 return (common_profile_create_service_availability(buf, eo 42 lan_profile_create_service_class_id_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument 57 lan_profile_create_bluetooth_profile_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument 73 lan_profile_create_service_name( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument 85 lan_profile_create_protocol_descriptor_list( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument 98 lan_profile_create_service_availability( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument 110 lan_profile_create_ip_subnet( uint8_t *buf, uint8_t const * const eob, uint8_t const *data, uint32_t datalen) argument [all...] |
/freebsd-10.3-release/crypto/heimdal/lib/gssapi/mech/ |
H A D | gss_display_status.c | 163 char *buf = NULL; local 167 e = asprintf(&buf, "%s", supplementary_error( 170 e = asprintf (&buf, "%s %s", 174 if (e < 0 || buf == NULL) 177 status_string->length = strlen(buf); 178 status_string->value = buf; 185 char *buf = NULL; local 194 e = asprintf (&buf, "unknown mech-code %lu for mech %.*s", 200 if (e < 0 || buf == NULL) 203 status_string->length = strlen(buf); [all...] |
/freebsd-10.3-release/lib/libutil/ |
H A D | kinfo_getfile.c | 19 char *buf, *bp, *eb; local 33 buf = malloc(len); 34 if (buf == NULL) 36 error = sysctl(mib, 4, buf, &len, NULL, 0); 38 free(buf); 43 bp = buf; 44 eb = buf + len; 55 free(buf); 58 bp = buf; 59 eb = buf [all...] |
H A D | kinfo_getvmmap.c | 19 char *buf, *bp, *eb; local 33 buf = malloc(len); 34 if (buf == NULL) 36 error = sysctl(mib, 4, buf, &len, NULL, 0); 38 free(buf); 43 bp = buf; 44 eb = buf + len; 55 free(buf); 58 bp = buf; 59 eb = buf [all...] |
/freebsd-10.3-release/contrib/gdb/gdb/ |
H A D | std-regs.c | 59 char *buf; local 63 buf = VALUE_CONTENTS_RAW (val); 64 memset (buf, 0, TYPE_LENGTH (VALUE_TYPE (val))); 67 ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf, 69 buf += TYPE_LENGTH (builtin_type_void_data_ptr); 88 char *buf = VALUE_CONTENTS_RAW (val); local 90 memset (buf, 0, TYPE_LENGTH (VALUE_TYPE (val))); 92 ADDRESS_TO_POINTER (builtin_type_void_data_ptr, buf, 106 char *buf = VALUE_CONTENTS_RAW (val); local 108 memset (buf, [all...] |
/freebsd-10.3-release/usr.sbin/fifolog/lib/ |
H A D | fifolog_create.c | 50 char *buf; local 100 buf = calloc(recsize, 1); 101 if (buf == NULL) 104 strcpy(buf, FIFOLOG_FMT_MAGIC); /*lint !e64 */ 105 be32enc(buf + FIFOLOG_OFF_BS, recsize); 106 if (recsize != pwrite(fd, buf, recsize, 0)) { 108 free(buf); 112 memset(buf, 0, recsize); 113 if ((int)recsize != pwrite(fd, buf, recsize, recsize)) { 115 free(buf); [all...] |
/freebsd-10.3-release/contrib/amd/amd/ |
H A D | am_ops.c | 148 ops_showamfstypes(char *buf, size_t l) argument 153 buf[0] = '\0'; 155 xstrlcat(buf, (*ap)->fs_type, l); 157 xstrlcat(buf, ", ", l); 161 xstrlcat(buf, "\n ", l); 168 ops_show1(char *buf, size_t l, int *linesizep, const char *name) argument 170 xstrlcat(buf, name, l); 171 xstrlcat(buf, ", ", l); 174 xstrlcat(buf, "\t\n", l); 181 ops_showfstypes(char *buf, size_ argument 275 static char buf[80]; local [all...] |
/freebsd-10.3-release/contrib/groff/src/preproc/refer/ |
H A D | token.cpp | 199 char buf[2]; local 200 buf[0] = *p; 201 buf[1] = '\0'; 202 store_token(strsave(buf), TOKEN_LOWER); 203 buf[0] = cmupper(buf[0]); 204 store_token(strsave(buf), TOKEN_UPPER); 207 char buf[2]; local 208 buf[0] = *p; 209 buf[ 214 char buf[2]; local 282 char buf[6]; local 336 char buf[6]; local [all...] |
/freebsd-10.3-release/contrib/netbsd-tests/lib/libc/gen/posix_spawn/ |
H A D | t_spawn.c | 86 char buf[FILENAME_MAX]; local 90 snprintf(buf, sizeof buf, "%s/h_zero", atf_tc_get_config_var(tc, "srcdir")); 91 err = posix_spawn(NULL, buf, NULL, NULL, args, NULL); 92 ATF_REQUIRE_MSG(err == ENOEXEC, "expected error %d, got %d when spawning %s", ENOEXEC, err, buf); 105 char buf[FILENAME_MAX]; local 109 snprintf(buf, sizeof buf, "%s/h_nonexist", 111 err = posix_spawn(NULL, buf, NULL, NULL, args, NULL); 112 ATF_REQUIRE_MSG(err == ENOENT, "expected error %d, got %d when spawning %s", ENOENT, err, buf); 125 char buf[FILENAME_MAX]; local 145 char buf[FILENAME_MAX]; local [all...] |
H A D | h_fileactions.c | 52 char buf[BUFSIZE]; local 55 strcpy(buf, "test..."); 57 if (read(3, buf, BUFSIZE) != -1 || errno != EBADF) { 63 if (read(4, buf, BUFSIZE) != -1 || errno != EBADF) { 69 if (write(5, buf, BUFSIZE) <= 0) { 75 if (write(6, buf, BUFSIZE) <= 0) { 92 if (write(7, buf, strlen(buf)) <= 0) {
|
/freebsd-10.3-release/crypto/openssl/crypto/bio/ |
H A D | b_dump.c | 81 char buf[288 + 1], tmp[20], str[128 + 1]; local 107 BUF_strlcpy(buf, str, sizeof buf); 109 BUF_strlcat(buf, tmp, sizeof buf); 112 BUF_strlcat(buf, " ", sizeof buf); 117 BUF_strlcat(buf, tmp, sizeof buf); 120 BUF_strlcat(buf, " ", sizeo [all...] |
/freebsd-10.3-release/lib/libipx/ |
H A D | ipx_addr.c | 56 char buf[50]; local 58 (void)strncpy(buf, name, sizeof(buf) - 1); 59 buf[sizeof(buf) - 1] = '\0'; 67 if ( (hostname = strchr(buf, '#')) ) 70 hostname = strchr(buf, '.'); 71 if ((cp = strchr(buf, ':')) && 82 Field(buf, addr.x_net.c_net, 4); 98 Field(buf, ou [all...] |
/freebsd-10.3-release/lib/libc/stdio/ |
H A D | fmemopen.c | 39 char *buf; /* pointer to the memory region */ member in struct:fmemopen_cookie 47 static int fmemopen_read(void *cookie, char *buf, int nbytes); 48 static int fmemopen_write(void *cookie, const char *buf, int nbytes); 53 fmemopen(void * __restrict buf, size_t size, const char * __restrict mode) argument 81 if (!(flags & O_RDWR) && buf == NULL) { 95 ck->own = ((ck->buf = buf) == NULL); 97 ck->buf = malloc(size); 98 if (ck->buf == NULL) { 109 ck->buf[ 165 fmemopen_read(void *cookie, char *buf, int nbytes) argument 183 fmemopen_write(void *cookie, const char *buf, int nbytes) argument [all...] |
/freebsd-10.3-release/contrib/llvm/lib/Support/ |
H A D | MemoryObject.cpp | 18 uint8_t* buf) const { 26 if (readByte(current, &buf[(current - address)]))
|
/freebsd-10.3-release/contrib/ntp/include/ |
H A D | ntp_random.h | 5 int ntp_crypto_random_buf(void *buf, size_t nbytes);
|
/freebsd-10.3-release/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mlock.c | 65 void *buf; local 67 buf = malloc(page); 68 ATF_REQUIRE(buf != NULL); 74 (void)mlock(buf, page - i); 75 (void)munlock(buf, page - i); 78 free(buf); 151 void *buf; local 155 buf = malloc(page); 156 ATF_REQUIRE(buf != NULL); 183 if (mlock(buf, 216 void *buf; local 261 void *buf; local [all...] |
/freebsd-10.3-release/contrib/netbsd-tests/lib/libutil/ |
H A D | t_snprintb.c | 44 char buf[1024]; local 47 len = snprintb(buf, sizeof(buf), fmt, val); 50 ATF_REQUIRE_STREQ(res, buf); 74 char buf[1024]; local 77 len = snprintb_m(buf, sizeof(buf), fmt, val, line_max); 80 ATF_REQUIRE_EQ(0, memcmp(res, buf, res_len + 1));
|
/freebsd-10.3-release/contrib/netbsd-tests/rump/rumpkern/h_client/ |
H A D | h_sigcli.c | 23 char buf[128]; local 24 size_t blen = sizeof(buf); 27 buf, &blen, NULL, 0) == -1) 29 if (strcmp(buf, hostnamebuf) != 0) 37 char buf[128]; local 63 blen = sizeof(buf); 65 buf, &blen, NULL, 0) == -1) 67 if (strcmp(buf, hostnamebuf) != 0)
|
/freebsd-10.3-release/contrib/netbsd-tests/ |
H A D | h_macros.h | 58 char buf[1024]; local 62 vsnprintf(buf, sizeof(buf), fmt, ap); 65 strlcat(buf, ": ", sizeof(buf)); 66 strlcat(buf, strerror(sverrno), sizeof(buf)); 68 atf_tc_fail("%s", buf);
|
/freebsd-10.3-release/contrib/wpa/src/crypto/ |
H A D | md5_i.h | 13 u32 buf[4]; member in struct:MD5Context 19 void MD5Update(struct MD5Context *context, unsigned char const *buf,
|