/freebsd-10.2-release/lib/libc/compat-43/ |
H A D | getwd.c | 43 getwd(char *buf) argument 47 if ( (p = getcwd(buf, MAXPATHLEN)) ) 49 (void)strerror_r(errno, buf, MAXPATHLEN);
|
/freebsd-10.2-release/lib/libc/net/ |
H A D | recv.c | 42 recv(s, buf, len, flags) 45 void *buf; 51 return (recvfrom(s, buf, len, flags, NULL, 0));
|
/freebsd-10.2-release/lib/libc/stdio/ |
H A D | setbuf.c | 43 setbuf(FILE * __restrict fp, char * __restrict buf) argument 45 (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
|
H A D | setbuffer.c | 42 setbuffer(FILE *fp, char *buf, int size) argument 45 (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, (size_t)size);
|
/freebsd-10.2-release/contrib/file/src/ |
H A D | getline.c | 41 getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp) argument 46 if (*buf == NULL || *bufsiz == 0) { 48 if ((*buf = malloc(*bufsiz)) == NULL) 52 for (ptr = *buf, eptr = *buf + *bufsiz;;) { 56 ssize_t diff = (ssize_t)(ptr - *buf); 67 return ptr - *buf; 72 ssize_t d = ptr - *buf; 73 if ((nbuf = realloc(*buf, nbufsiz)) == NULL) 75 *buf 84 getline(char **buf, size_t *bufsiz, FILE *fp) argument [all...] |
/freebsd-10.2-release/contrib/groff/src/libs/libgroff/ |
H A D | strerror.c | 41 static char buf[sizeof("Error ") + 1 + INT_DIGITS]; local 45 sprintf(buf, "Error %d", n); 46 return buf;
|
/freebsd-10.2-release/contrib/ipfilter/lib/ |
H A D | printbuf.c | 17 printbuf(buf, len, zend) 18 char *buf; 25 for (s = buf, i = len; i; i--) {
|
/freebsd-10.2-release/contrib/binutils/libiberty/ |
H A D | asprintf.c | 47 asprintf (char **buf, const char *fmt, ...) argument 51 VA_FIXEDARG (ap, char **, buf); 53 status = vasprintf (buf, fmt, ap);
|
H A D | lrealpath.c | 84 char buf[REALPATH_LIMIT]; local 85 const char *rp = realpath (filename, buf); 119 char *buf, *rp, *ret; local 120 buf = (char *) malloc (path_max); 121 if (buf == NULL) 123 rp = realpath (filename, buf); 125 free (buf); 139 char buf[MAX_PATH]; local 141 DWORD len = GetFullPathName (filename, MAX_PATH, buf, &basename); 149 CharLowerBuff (buf, le [all...] |
/freebsd-10.2-release/usr.sbin/pw/ |
H A D | fileupd.c | 37 extendarray(char ***buf, int * buflen, int needed) argument 40 char **tmp = realloc(*buf, needed * sizeof(char *)); 43 *buf = tmp;
|
/freebsd-10.2-release/contrib/xz/src/common/ |
H A D | tuklib_integer.h | 177 read16be(const uint8_t *buf) argument 179 uint16_t num = *(const uint16_t *)buf; 185 read16le(const uint8_t *buf) argument 187 uint16_t num = *(const uint16_t *)buf; 193 read32be(const uint8_t *buf) argument 195 uint32_t num = *(const uint32_t *)buf; 201 read32le(const uint8_t *buf) argument 203 uint32_t num = *(const uint32_t *)buf; 209 read64be(const uint8_t *buf) argument 211 uint64_t num = *(const uint64_t *)buf; 217 read64le(const uint8_t *buf) argument 239 write16ne(uint8_t *buf, uint16_t num) argument 247 write32ne(uint8_t *buf, uint32_t num) argument 255 write64ne(uint8_t *buf, uint64_t num) argument 284 unaligned_read16be(const uint8_t *buf) argument 292 unaligned_read16le(const uint8_t *buf) argument 300 unaligned_read32be(const uint8_t *buf) argument 311 unaligned_read32le(const uint8_t *buf) argument 322 unaligned_write16be(uint8_t *buf, uint16_t num) argument 331 unaligned_write16le(uint8_t *buf, uint16_t num) argument 340 unaligned_write32be(uint8_t *buf, uint32_t num) argument 351 unaligned_write32le(uint8_t *buf, uint32_t num) argument [all...] |
/freebsd-10.2-release/crypto/openssl/crypto/asn1/ |
H A D | f_enum.c | 70 char buf[2]; local 86 buf[0] = h[((unsigned char)a->data[i] >> 4) & 0x0f]; 87 buf[1] = h[((unsigned char)a->data[i]) & 0x0f]; 88 if (BIO_write(bp, buf, 2) != 2) 98 int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size) argument 108 bufsize = BIO_gets(bp, buf, size); 113 if (buf[i - 1] == '\n') 114 buf[--i] = '\0'; 117 if (buf[i - 1] == '\r') 118 buf[ [all...] |
H A D | f_string.c | 68 char buf[2]; local 84 buf[0] = h[((unsigned char)a->data[i] >> 4) & 0x0f]; 85 buf[1] = h[((unsigned char)a->data[i]) & 0x0f]; 86 if (BIO_write(bp, buf, 2) != 2) 96 int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size) argument 104 bufsize = BIO_gets(bp, buf, size); 115 if (buf[i - 1] == '\n') 116 buf[--i] = '\0'; 119 if (buf[i - 1] == '\r') 120 buf[ [all...] |
/freebsd-10.2-release/usr.bin/calendar/ |
H A D | locale.c | 75 char buf[80]; local 82 strftime(buf, sizeof(buf), "%a", &tm); 83 for (l = strlen(buf); 84 l > 0 && isspace((unsigned char)buf[l - 1]); 87 buf[l] = '\0'; 90 if ((ndays[i].name = strdup(buf)) == NULL) 92 ndays[i].len = strlen(buf); 94 strftime(buf, sizeof(buf), " [all...] |
/freebsd-10.2-release/contrib/ntp/tests/libntp/ |
H A D | recvbuff.c | 32 recvbuf_t* buf = get_free_recv_buffer(); local 35 freerecvbuf(buf); 43 recvbuf_t* buf = get_free_recv_buffer(); local 45 add_full_recv_buffer(buf); 48 TEST_ASSERT_EQUAL_PTR(buf, get_full_recv_buffer());
|
/freebsd-10.2-release/contrib/ntp/libntp/ |
H A D | refnumtoa.c | 17 char *buf; local 23 LIB_GETBUF(buf); 28 snprintf(buf, LIB_BUFLENGTH, "%s(%lu)", 31 snprintf(buf, LIB_BUFLENGTH, "REFCLK(%lu,%lu)", 35 return buf;
|
/freebsd-10.2-release/contrib/netbsd-tests/rump/rumpkern/ |
H A D | t_modlinkset.c | 58 char buf[1024]; local 61 if (ukfs_vfstypes(buf, sizeof(buf)) == -1) 64 ATF_CHECK((strstr(buf, "msdos") != NULL)); 65 ATF_CHECK((strstr(buf, "cd9660") != NULL));
|
/freebsd-10.2-release/bin/kenv/ |
H A D | kenv.c | 131 char *buf, *cp; local 139 buf = malloc(buflen + 1); 140 if (buf == NULL) 142 memset(buf, 0, buflen + 1); /* Be defensive */ 143 envlen = kenv(KENV_DUMP, NULL, buf, buflen); 145 free(buf); 149 free(buf); 154 for (; *buf != '\0'; buf += strlen(buf) 175 char buf[1024]; local [all...] |
/freebsd-10.2-release/contrib/gcclibs/libiberty/ |
H A D | lrealpath.c | 84 char buf[REALPATH_LIMIT]; local 85 const char *rp = realpath (filename, buf); 119 char *buf, *rp, *ret; local 120 buf = (char *) malloc (path_max); 121 if (buf == NULL) 123 rp = realpath (filename, buf); 125 free (buf); 139 char buf[MAX_PATH]; local 141 DWORD len = GetFullPathName (filename, MAX_PATH, buf, &basename); 149 CharLowerBuff (buf, le [all...] |
/freebsd-10.2-release/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_chroot.c | 58 char buf[PATH_MAX]; local 62 (void)memset(buf, '\0', sizeof(buf)); 63 (void)getcwd(buf, sizeof(buf)); 64 (void)strlcat(buf, "/dir", sizeof(buf)); 66 ATF_REQUIRE(mkdir(buf, 0500) == 0); 67 ATF_REQUIRE(chdir(buf) == 0); 74 if (chroot(buf) ! 122 char buf[PATH_MAX + 1]; local 145 static char buf[LINE_MAX]; local 184 char buf[PATH_MAX]; local 269 static char buf[LINE_MAX]; local [all...] |
/freebsd-10.2-release/contrib/wpa/src/ap/ |
H A D | gas_serv.c | 133 struct wpabuf *buf) 137 len = gas_anqp_add_element(buf, ANQP_VENDOR_SPECIFIC); 138 wpabuf_put_be24(buf, OUI_WFA); 139 wpabuf_put_u8(buf, HS20_ANQP_OUI_TYPE); 140 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST); 141 wpabuf_put_u8(buf, 0); /* Reserved */ 142 wpabuf_put_u8(buf, HS20_STYPE_CAPABILITY_LIST); 144 wpabuf_put_u8(buf, HS20_STYPE_OPERATOR_FRIENDLY_NAME); 146 wpabuf_put_u8(buf, HS20_STYPE_WAN_METRICS); 148 wpabuf_put_u8(buf, HS20_STYPE_CONNECTION_CAPABILIT 132 anqp_add_hs_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 158 anqp_add_capab_list(struct hostapd_data *hapd, struct wpabuf *buf) argument 186 anqp_add_venue_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 206 anqp_add_network_auth_type(struct hostapd_data *hapd, struct wpabuf *buf) argument 218 anqp_add_roaming_consortium(struct hostapd_data *hapd, struct wpabuf *buf) argument 235 anqp_add_ip_addr_type_availability(struct hostapd_data *hapd, struct wpabuf *buf) argument 246 anqp_add_nai_realm_eap(struct wpabuf *buf, struct hostapd_nai_realm_data *realm) argument 267 anqp_add_nai_realm_data(struct wpabuf *buf, struct hostapd_nai_realm_data *realm, unsigned int realm_idx) argument 284 hs20_add_nai_home_realm_matches(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len) argument 378 anqp_add_nai_realm(struct hostapd_data *hapd, struct wpabuf *buf, const u8 *home_realm, size_t home_realm_len, int nai_realm, int nai_home_realm) argument 412 anqp_add_3gpp_cellular_network(struct hostapd_data *hapd, struct wpabuf *buf) argument 425 anqp_add_domain_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 438 anqp_add_operator_friendly_name(struct hostapd_data *hapd, struct wpabuf *buf) argument 462 anqp_add_wan_metrics(struct hostapd_data *hapd, struct wpabuf *buf) argument 477 anqp_add_connection_capability(struct hostapd_data *hapd, struct wpabuf *buf) argument 493 anqp_add_operating_class(struct hostapd_data *hapd, struct wpabuf *buf) argument 517 struct wpabuf *buf; local 777 struct wpabuf *buf, *tx_buf; local 866 struct wpabuf *buf; local 937 struct wpabuf *buf, *tx_buf; local 1026 struct wpabuf *buf, *tx_buf; local 1131 gas_serv_rx_public_action(void *ctx, const u8 *buf, size_t len, int freq) argument [all...] |
/freebsd-10.2-release/contrib/wpa/wpa_supplicant/ |
H A D | nfc_pw_token.c | 18 static void print_bin(const char *title, const struct wpabuf *buf) argument 23 if (buf == NULL) 28 pos = wpabuf_head(buf); 29 len = wpabuf_len(buf); 41 struct wpabuf *buf = NULL, *ndef = NULL; local 53 buf = wpas_wps_nfc_token(&wpa_s, 0); 54 if (buf == NULL) 57 ndef = ndef_build_wifi(buf); 61 wpa_snprintf_hex_uppercase(txt, sizeof(txt), wpabuf_head(buf), 62 wpabuf_len(buf)); [all...] |
/freebsd-10.2-release/contrib/sendmail/libsm/ |
H A D | t-scanf.c | 25 char buf[128]; local 37 sm_snprintf(buf, sizeof(buf), "%d", d); 39 if (!SM_TEST(strcmp(buf, r) == 0)) 41 "got %s instead\n", buf); 43 i = sm_io_sscanf(buf, "%d", &h); 48 sm_snprintf(buf, sizeof(buf), "%d\n", d); 50 if (!SM_TEST(strcmp(buf, r) == 0)) 52 "got %s instead\n", buf); [all...] |
/freebsd-10.2-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; 53 free(buf); 56 bp = buf; 57 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; 53 free(buf); 56 bp = buf; 57 eb = buf [all...] |