Searched refs:buf (Results 126 - 150 of 4642) sorted by relevance

1234567891011>>

/freebsd-10.0-release/contrib/binutils/libiberty/
H A Dasprintf.c47 asprintf (char **buf, const char *fmt, ...) argument
51 VA_FIXEDARG (ap, char **, buf);
53 status = vasprintf (buf, fmt, ap);
H A Dlrealpath.c84 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.0-release/contrib/gcclibs/libiberty/
H A Dasprintf.c47 asprintf (char **buf, const char *fmt, ...) argument
51 VA_FIXEDARG (ap, char **, buf);
53 status = vasprintf (buf, fmt, ap);
H A Dlrealpath.c84 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.0-release/contrib/groff/src/libs/libgroff/
H A Dstrerror.c41 static char buf[sizeof("Error ") + 1 + INT_DIGITS]; local
45 sprintf(buf, "Error %d", n);
46 return buf;
/freebsd-10.0-release/contrib/ipfilter/lib/
H A Dprintbuf.c17 printbuf(buf, len, zend)
18 char *buf;
25 for (s = buf, i = len; i; i--) {
/freebsd-10.0-release/contrib/ntp/libntp/
H A Dlib_strbuf.h16 #define LIB_GETBUF(buf) \
20 buf = &lib_stringbuf[lib_nextbuf][0]; \
23 memset(buf, 0, LIB_BUFLENGTH); \
/freebsd-10.0-release/contrib/wpa/src/ap/
H A Dctrl_iface_ap.h13 char *buf, size_t buflen);
15 char *buf, size_t buflen);
17 char *buf, size_t buflen);
H A Dgas_serv.c133 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.0-release/lib/libc/compat-43/
H A Dgetwd.c43 getwd(char *buf) argument
47 if ( (p = getcwd(buf, MAXPATHLEN)) )
49 (void)strerror_r(errno, buf, MAXPATHLEN);
/freebsd-10.0-release/lib/libc/net/
H A Drecv.c42 recv(s, buf, len, flags)
45 void *buf;
51 return (recvfrom(s, buf, len, flags, NULL, 0));
/freebsd-10.0-release/lib/libc/stdio/
H A Dsetbuf.c43 setbuf(FILE * __restrict fp, char * __restrict buf) argument
45 (void) setvbuf(fp, buf, buf ? _IOFBF : _IONBF, BUFSIZ);
H A Dsetbuffer.c42 setbuffer(FILE *fp, char *buf, int size) argument
45 (void)setvbuf(fp, buf, buf ? _IOFBF : _IONBF, (size_t)size);
/freebsd-10.0-release/contrib/xz/src/common/
H A Dtuklib_integer.h177 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.0-release/crypto/openssl/crypto/asn1/
H A Df_enum.c70 char buf[2]; local
88 buf[0]=h[((unsigned char)a->data[i]>>4)&0x0f];
89 buf[1]=h[((unsigned char)a->data[i] )&0x0f];
90 if (BIO_write(bp,buf,2) != 2) goto err;
99 int a2i_ASN1_ENUMERATED(BIO *bp, ASN1_ENUMERATED *bs, char *buf, int size) argument
109 bufsize=BIO_gets(bp,buf,size);
114 if (buf[i-1] == '\n') buf[--i]='\0';
116 if (buf[i-1] == '\r') buf[
[all...]
H A Df_string.c68 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) goto err;
97 int a2i_ASN1_STRING(BIO *bp, ASN1_STRING *bs, char *buf, int size) argument
105 bufsize=BIO_gets(bp,buf,size);
118 if (buf[i-1] == '\n') buf[--i]='\0';
120 if (buf[i-1] == '\r') buf[
[all...]
/freebsd-10.0-release/usr.bin/calendar/
H A Dlocale.c75 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.0-release/bin/kenv/
H A Dkenv.c131 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.0-release/contrib/sendmail/libsm/
H A Dt-scanf.c25 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.0-release/contrib/wpa/wpa_supplicant/
H A Dnfc_pw_token.c18 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...]
H A Dwpa_passphrase.c19 char *ssid, *passphrase, buf[64], *pos; local
34 if (fgets(buf, sizeof(buf), stdin) == NULL) {
38 buf[sizeof(buf) - 1] = '\0';
39 pos = buf;
47 passphrase = buf;
/freebsd-10.0-release/crypto/openssh/
H A Dmsg.c46 u_char buf[5]; local
51 put_u32(buf, mlen + 1);
52 buf[4] = type; /* 1st byte of payload is mesg-type */
53 if (atomicio(vwrite, fd, buf, sizeof(buf)) != sizeof(buf)) {
67 u_char buf[4]; local
72 if (atomicio(read, fd, buf, sizeof(buf)) != sizeof(buf)) {
[all...]
/freebsd-10.0-release/lib/libutil/
H A Dkinfo_getfile.c19 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 Dkinfo_getvmmap.c19 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...]
/freebsd-10.0-release/contrib/libreadline/examples/
H A Drlptytest.c56 char *buf = (char *)malloc(MAX+1); local
58 size = read (STDIN_FILENO, buf, MAX);
62 size = write (masterfd, buf, size);
73 char *buf = (char *)malloc(MAX+1); local
76 size = read (masterfd, buf, MAX);
79 free( buf );
80 buf = NULL;
84 buf[size] = 0;
88 fprintf(stderr, "%s", buf);
90 free( buf );
219 struct termios buf; local
273 struct termios buf; local
[all...]

Completed in 209 milliseconds

1234567891011>>