/freebsd-10.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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.2-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[ 162 fmemopen_read(void *cookie, char *buf, int nbytes) argument 180 fmemopen_write(void *cookie, const char *buf, int nbytes) argument [all...] |
/freebsd-10.2-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...] |
/freebsd-10.2-release/contrib/llvm/lib/Support/ |
H A D | MemoryObject.cpp | 18 uint8_t* buf) const { 26 if (readByte(current, &buf[(current - address)]))
|
/freebsd-10.2-release/contrib/ntp/include/ |
H A D | ntp_random.h | 5 int ntp_crypto_random_buf(void *buf, size_t nbytes);
|
/freebsd-10.2-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.2-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.2-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.2-release/contrib/unbound/validator/ |
H A D | val_secalgo.h | 56 * @param buf: the buffer to digest 61 int secalgo_ds_digest(int algo, unsigned char* buf, size_t len, 69 * @param buf: buffer with data to verify, the first rrsig part and the 80 enum sec_status verify_canonrrset(struct sldns_buffer* buf, int algo,
|
/freebsd-10.2-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,
|
H A D | random.h | 22 void random_add_randomness(const void *buf, size_t len); 23 int random_get_bytes(void *buf, size_t len);
|
/freebsd-10.2-release/contrib/wpa/src/wps/ |
H A D | upnp_xml.h | 16 void xml_data_encode(struct wpabuf *buf, const char *data, int len); 17 void xml_add_tagged_data(struct wpabuf *buf, const char *tag,
|
/freebsd-10.2-release/lib/libmd/ |
H A D | rmddriver.c | 29 char buf[2*20 + 1]; local 32 string, RIPEMD160_Data(string, strlen(string), buf));
|
/freebsd-10.2-release/libexec/bootpd/ |
H A D | dovend.h | 4 extern int dovend_rfc1497(struct host *hp, u_char *buf, int len);
|
/freebsd-10.2-release/lib/libc/sys/ |
H A D | read.c | 45 read(int fd, void *buf, size_t nbytes) argument 49 __libc_interposing[INTERPOS_read])(fd, buf, nbytes));
|
H A D | write.c | 45 write(int fd, const void *buf, size_t nbytes) argument 49 __libc_interposing[INTERPOS_write])(fd, buf, nbytes));
|
/freebsd-10.2-release/sbin/dhclient/ |
H A D | convert.c | 52 getULong(unsigned char *buf) argument 56 memcpy(&ibuf, buf, sizeof(ibuf)); 61 getLong(unsigned char *(buf)) argument 65 memcpy(&ibuf, buf, sizeof(ibuf)); 70 getUShort(unsigned char *buf) argument 74 memcpy(&ibuf, buf, sizeof(ibuf)); 79 getShort(unsigned char *buf) argument 83 memcpy(&ibuf, buf, sizeof(ibuf));
|