Searched refs:buflen (Results 1 - 25 of 54) sorted by relevance

123

/haiku/src/libs/bsd/
H A Dgetentropy.c14 getentropy(void *buf, size_t buflen) argument
19 args.length = buflen;
23 if (args.length < buflen)
/haiku/src/system/libnetwork/netresolv/nameser/
H A Dns_print.c61 char **buf, size_t *buflen);
64 char **buf, size_t *buflen);
65 static void addlen(size_t len, char **buf, size_t *buflen);
67 char **buf, size_t *buflen);
69 char **buf, size_t *buflen);
93 char *buf, size_t buflen)
100 name_ctx, origin, buf, buflen);
115 char *buf, size_t buflen)
129 T(addstr("\t\t\t", (size_t)3, &buf, &buflen));
135 T(addstr("@\t\t\t", (size_t)4, &buf, &buflen));
91 ns_sprintrr(const ns_msg *handle, const ns_rr *rr, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
111 ns_sprintrrf(const u_char *msg, size_t msglen, const char *name, ns_class class, ns_type type, u_long ttl, const u_char *rdata, size_t rdlen, const char *name_ctx, const char *origin, char *buf, size_t buflen) argument
167 addlen(strlen(buf), &buf, &buflen); local
337 addlen(strlen(buf), &buf, &buflen); local
428 addlen(strlen(buf), &buf, &buflen); local
672 addlen(strlen(buf), &buf, &buflen); local
695 addlen(strlen(buf), &buf, &buflen); local
967 addlen(strlen(buf), &buf, &buflen); local
972 addlen(strlen(buf), &buf, &buflen); local
1145 charstr(const u_char *rdata, const u_char *edata, char **buf, size_t *buflen) argument
1180 addname(const u_char *msg, size_t msglen, const u_char **pp, const char *origin, char **buf, size_t *buflen) argument
1225 addlen(size_t len, char **buf, size_t *buflen) argument
1232 addstr(const char *src, size_t len, char **buf, size_t *buflen) argument
1244 addtab(size_t len, size_t target, int spaced, char **buf, size_t *buflen) argument
[all...]
H A Dns_ttl.c51 static int fmt1(int t, char s, char **buf, size_t *buflen);
160 fmt1(int t, char s, char **buf, size_t *buflen) { argument
165 if (len + 1 > *buflen)
169 *buflen -= len;
/haiku/src/libs/compat/openbsd_network/compat/sys/
H A Ddevice.h13 loadfirmware(const char *name, u_char **bufp, size_t *buflen) argument
20 *buflen = fw->datasize;
/haiku/src/libs/libtelnet/
H A Dkrb4encpwd.c354 krb4encpwd_printsub(data, cnt, buf, buflen)
356 int cnt, buflen;
361 buf[buflen-1] = '\0'; /* make sure its NULL terminated */
362 buflen -= 1;
366 strncpy((char *)buf, " REJECT ", buflen);
370 strncpy((char *)buf, " ACCEPT ", buflen);
372 BUMP(buf, buflen);
375 ADDC(buf, buflen, '"');
377 ADDC(buf, buflen, data[i]);
378 ADDC(buf, buflen, '"');
[all...]
H A Dkerberos.c420 kerberos4_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument
425 buf[buflen-1] = '\0'; /* make sure its NULL terminated */
426 buflen -= 1;
430 strncpy((char *)buf, " REJECT ", buflen);
434 strncpy((char *)buf, " ACCEPT ", buflen);
436 BUMP(buf, buflen);
439 ADDC(buf, buflen, '"');
441 ADDC(buf, buflen, data[i]);
442 ADDC(buf, buflen, '"');
443 ADDC(buf, buflen, '\
[all...]
H A Drsaencpwd.c401 rsaencpwd_printsub(data, cnt, buf, buflen)
403 int cnt, buflen;
408 buf[buflen-1] = '\0'; /* make sure its NULL terminated */
409 buflen -= 1;
413 strncpy((char *)buf, " REJECT ", buflen);
417 strncpy((char *)buf, " ACCEPT ", buflen);
419 BUMP(buf, buflen);
422 ADDC(buf, buflen, '"');
424 ADDC(buf, buflen, data[i]);
425 ADDC(buf, buflen, '"');
[all...]
H A Dsra.c358 sra_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument
363 buf[buflen-1] = '\0'; /* make sure its NULL terminated */
364 buflen -= 1;
369 strncpy((char *)buf, " CONTINUE ", buflen);
373 strncpy((char *)buf, " REJECT ", buflen);
377 strncpy((char *)buf, " ACCEPT ", buflen);
380 BUMP(buf, buflen);
383 ADDC(buf, buflen, '"');
385 ADDC(buf, buflen, data[i]);
386 ADDC(buf, buflen, '"');
[all...]
H A Dauth.c593 auth_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument
598 (*ap->printsub)(data, cnt, buf, buflen);
600 auth_gen_printsub(data, cnt, buf, buflen);
604 auth_gen_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument
611 buf[buflen-1] = '\0';
612 buf[buflen-2] = '*';
613 buflen -= 2;
616 for (cp = tbuf; *cp && buflen > 0; --buflen)
618 if (buflen <
[all...]
H A Dkerberos5.c679 kerberos5_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument
683 buf[buflen-1] = '\0'; /* make sure its NULL terminated */
684 buflen -= 1;
688 strlcpy((char *)buf, " REJECT ", buflen);
692 strlcpy((char *)buf, " ACCEPT ", buflen);
694 BUMP(buf, buflen);
697 ADDC(buf, buflen, '"');
699 ADDC(buf, buflen, data[i]);
700 ADDC(buf, buflen, '"');
701 ADDC(buf, buflen, '\
[all...]
H A Denc_des.c443 fb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen, const char *type) argument
449 buf[buflen-1] = '\0'; /* make sure it's NULL terminated */
450 buflen -= 1;
472 for (; (buflen > 0) && (*buf = *cp++); buf++)
473 buflen--;
476 for (cp = lbuf; (buflen > 0) && (*buf = *cp++); buf++)
477 buflen--;
484 cfb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument
486 fb64_printsub(data, cnt, buf, buflen, "CFB64");
490 ofb64_printsub(unsigned char *data, int cnt, unsigned char *buf, int buflen) argument
[all...]
/haiku/headers/compatibility/bsd/
H A Dunistd.h31 int getentropy(void *buf, size_t buflen);
/haiku/headers/libs/iconv/
H A Diconv.h101 void (*write_replacement) (const unsigned int *buf, size_t buflen,
111 void (*write_replacement) (const char *buf, size_t buflen,
122 void (*write_replacement) (const wchar_t *buf, size_t buflen,
132 void (*write_replacement) (const char *buf, size_t buflen,
/haiku/headers/private/mail/
H A Dmail_util.h70 ssize_t nextfoldedline(const char** header, char **buffer, size_t *buflen);
71 ssize_t readfoldedline(FILE *file, char **buffer, size_t *buflen);
72 ssize_t readfoldedline(BPositionIO &in, char **buffer, size_t *buflen);
85 // if buflen is not NULL, return the final size of the buffer in buflen
86 // if buffer is not NULL, buflen is not NULL, and *buffer is not NULL
87 // *buffer is a buffer of size *buflen
88 // if buffer is NULL or *buffer is NULL, and buflen is not NULL then
89 // start with a buffer of size *buflen
/haiku/headers/posix/
H A Dpwd.h27 extern int getpwent_r(struct passwd* pwbuf, char* buf, size_t buflen,
/haiku/src/libs/iconv/
H A Dloop_wchar.h72 static void wc_to_mb_write_replacement (const char *buf, size_t buflen,
82 size_t bufleft = buflen;
112 static void wc_to_mb_write_replacement (const char *buf, size_t buflen, argument
120 if (plocals->l_outbytesleft < buflen)
123 memcpy(plocals->l_outbuf, buf, buflen);
124 plocals->l_outbuf += buflen;
125 plocals->l_outbytesleft -= buflen;
296 static void mb_to_wc_write_replacement (const wchar_t *buf, size_t buflen, argument
304 if (plocals->l_outbytesleft < sizeof(wchar_t)*buflen)
307 for (; buflen >
[all...]
/haiku/src/libs/compat/freebsd_network/
H A Dshared.h52 char *buf, size_t buflen);
54 char *buf, size_t buflen);
/haiku/src/system/libnetwork/netresolv/resolv/
H A Dres_data.c197 int buflen) /*!< size of buffer */
205 newrr_in, buf, buflen));
210 res_mkupdate(ns_updrec *rrecp_in, u_char *buf, int buflen) { argument
216 return (res_nmkupdate(&_nres, rrecp_in, buf, buflen));
249 res_send(const u_char *buf, int buflen, u_char *ans, int anssiz) { argument
255 return (res_nsend(&_nres, buf, buflen, ans, anssiz));
260 res_sendsigned(const u_char *buf, int buflen, ns_tsig_key *key, argument
268 return (res_nsendsigned(&_nres, buf, buflen, key, ans, anssiz));
190 res_mkquery(int op, const char *dname, int class, int type, const u_char *data, int datalen, const u_char *newrr_in, u_char *buf, int buflen) argument
H A Dres_mkquery.c110 int buflen) /*!< size of buffer */
127 if ((buf == NULL) || (buflen < HFIXEDSZ))
138 ep = buf + buflen;
219 int buflen, /*%< size of buffer */
233 ep = buf + buflen;
276 int buflen, /*%< size of buffer */
290 ep = buf + buflen;
102 res_nmkquery(res_state statp, int op, const char *dname, int class, int type, const u_char *data, int datalen, const u_char *newrr_in, u_char *buf, int buflen) argument
216 res_nopt(res_state statp, int n0, u_char *buf, int buflen, int anslen) argument
273 res_nopt_rdata(res_state statp, int n0, u_char *buf, int buflen, u_char *rdata, u_short code, u_short len, u_char *data) argument
/haiku/src/system/libnetwork/
H A Dgetifaddrs.cpp140 size_t buflen = count * sizeof(struct ifreq); local
141 ArrayDeleter<char> buffer(new(std::nothrow) char[buflen]);
149 if (_getifaddrs(AF_INET, buffer.Get(), buflen, &previous) < 0 &&
154 if (_getifaddrs(AF_INET6, buffer.Get(), buflen, &previous) < 0 &&
159 if (_getifaddrs(AF_LINK, buffer.Get(), buflen, &previous) < 0 &&
/haiku/src/add-ons/media/media-add-ons/usb_webcam/
H A DCamDeframer.h57 int FindTags(const uint8 *buf, size_t buflen, const uint8 **tags, int tagcount, size_t taglen, size_t skiplen, int *which=NULL);
58 int FindSOF(const uint8 *buf, size_t buflen, int *which=NULL);
59 int FindEOF(const uint8 *buf, size_t buflen, int *which=NULL);
H A DCamDeframer.cpp185 CamDeframer::FindTags(const uint8 *buf, size_t buflen, const uint8 **tags, int tagcount, size_t taglen, size_t skiplen, int *which) argument
188 for (i = 0; i < (int)(buflen - skiplen + 1); i++) {
202 CamDeframer::FindSOF(const uint8 *buf, size_t buflen, int *which) argument
204 return FindTags(buf, buflen, fSOFTags, fNumSOFTags, fLenSOFTags, fSkipSOFTags, which);
209 CamDeframer::FindEOF(const uint8 *buf, size_t buflen, int *which) argument
211 return FindTags(buf, buflen, fEOFTags, fNumEOFTags, fLenEOFTags, fSkipEOFTags, which);
/haiku/src/system/libroot/posix/crypt/
H A Dcrypto_scrypt.cpp44 * crypto_scrypt(passwd, passwdlen, salt, saltlen, N, r, p, buf, buflen):
46 * p, buflen) and write the result into buf. The parameters r, p, and buflen
47 * must satisfy r * p < 2^30 and buflen <= (2^32 - 1) * 32. The parameter N
55 uint8_t * buf, size_t buflen)
66 if (buflen > (((uint64_t)(1) << 32) - 1) * 32) {
136 PBKDF2_SHA256(passwd, passwdlen, B, p * 128 * r, 1, buf, buflen);
53 crypto_scrypt(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt, size_t saltlen, uint64_t N, uint32_t _r, uint32_t _p, uint8_t * buf, size_t buflen) argument
/haiku/src/system/libnetwork/netresolv/net/
H A Dgethnamaddr.c216 res_state res, struct hostent *hent, char *buf, size_t buflen, int *he)
261 ep = buf + buflen;
524 gethostbyname_r(const char *name, struct hostent *hp, char *buf, int buflen, argument
538 res, hp, buf, buflen, he);
544 hp = gethostbyname_internal(name, AF_INET, res, hp, buf, buflen, he);
551 size_t buflen, int *he)
559 hp = gethostbyname_internal(name, af, res, hp, buf, buflen, he);
566 struct hostent *hp, char *buf, size_t buflen, int *he)
593 if (buflen < size)
647 info.buflen
215 getanswer(const querybuf *answer, int anslen, const char *qname, int qtype, res_state res, struct hostent *hent, char *buf, size_t buflen, int *he) argument
550 gethostbyname2_r(const char *name, int af, struct hostent *hp, char *buf, size_t buflen, int *he) argument
565 gethostbyname_internal(const char *name, int af, res_state res, struct hostent *hp, char *buf, size_t buflen, int *he) argument
682 gethostbyaddr_r(const void *addr, int len, int af, struct hostent *hp, char *buf, int buflen, int *he) argument
742 gethostent_r(FILE *hf, struct hostent *hent, char *buf, size_t buflen, int *he) argument
[all...]
/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_crypto_wep.c354 size_t buflen, data_len; local
382 buflen = m->m_len - off;
384 if (buflen > data_len)
385 buflen = data_len;
386 data_len -= buflen;
387 for (k = 0; k < buflen; k++) {
408 buflen = m->m_len;
437 size_t buflen, data_len; local
465 buflen = m->m_len - off;
467 if (buflen > data_le
[all...]

Completed in 133 milliseconds

123