Searched refs:bufsiz (Results 1 - 25 of 71) sorted by relevance

123

/freebsd-11-stable/contrib/libarchive/libarchive_fe/
H A Dpassphrase.h29 char *lafe_readpassphrase(const char *prompt, char *buf, size_t bufsiz);
H A Dpassphrase.c84 readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags) argument
112 success = ReadFile(hStdin, buf, (DWORD)bufsiz - 1, &rbytes, NULL);
168 readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags) argument
178 if (bufsiz == 0) {
247 end = buf + bufsiz - 1;
317 lafe_readpassphrase(const char *prompt, char *buf, size_t bufsiz) argument
321 p = readpassphrase(prompt, buf, bufsiz, RPP_ECHO_OFF);
/freebsd-11-stable/contrib/file/src/
H A Dgetline.c41 getdelim(char **buf, size_t *bufsiz, int delimiter, FILE *fp) argument
46 if (*buf == NULL || *bufsiz == 0) {
47 *bufsiz = BUFSIZ;
48 if ((*buf = malloc(*bufsiz)) == NULL)
52 for (ptr = *buf, eptr = *buf + *bufsiz;;) {
71 size_t nbufsiz = *bufsiz * 2;
76 *bufsiz = nbufsiz;
84 getline(char **buf, size_t *bufsiz, FILE *fp) argument
86 return getdelim(buf, bufsiz, '\n', fp);
/freebsd-11-stable/contrib/blacklist/port/
H A Dfgetln.c50 static size_t bufsiz = 0; local
55 bufsiz = BUFSIZ;
56 if ((buf = malloc(bufsiz)) == NULL)
60 if (fgets(buf, bufsiz, fp) == NULL)
65 size_t nbufsiz = bufsiz + BUFSIZ;
77 if (fgets(&buf[bufsiz], BUFSIZ, fp) == NULL) {
78 buf[bufsiz] = '\0';
83 *len = bufsiz;
84 bufsiz = nbufsiz;
/freebsd-11-stable/contrib/gdb/gdb/
H A Dkod.c90 LONGEST bufsiz = 0; local
94 bufsiz = target_read_partial (&current_target, TARGET_OBJECT_KOD,
96 if (bufsiz < 0)
108 *maxsiz = bufsiz;
114 if (bufsiz > *maxsiz)
115 bufsiz = *maxsiz;
119 if (strlen (arg) >= bufsiz)
124 arg, result, 0, bufsiz) < 0)
H A Dkod-cisco.c52 int bufsiz = PBUFSIZ;
70 (*gdb_kod_query) ("oI;", buffer, &bufsiz);
137 int bufsiz = PBUFSIZ;
151 (*gdb_kod_query) (command, buffer, &bufsiz);
253 int bufsiz = PBUFSIZ;
264 (*gdb_kod_query) (command, buffer, &bufsiz);
51 int bufsiz = PBUFSIZ; local
136 int bufsiz = PBUFSIZ; local
252 int bufsiz = PBUFSIZ; local
/freebsd-11-stable/contrib/libexecinfo/
H A Dbacktrace.c78 rasprintf(char **buf, size_t *bufsiz, size_t offs, const char *fmt, ...) argument
84 if (*buf && offs < *bufsiz) {
89 len = vsnprintf(*buf + offs, *bufsiz - offs, fmt, ap);
92 if (len < 0 || (size_t)len + 1 < *bufsiz - offs)
94 nbufsiz = MAX(*bufsiz + 512, (size_t)len + 1);
96 nbufsiz = MAX(offs, *bufsiz) + 512;
102 *bufsiz = nbufsiz;
115 format_string(char **buf, size_t *bufsiz, size_t offs, const char *fmt, argument
127 len = rasprintf(buf, bufsiz, o, "%p", addr);
130 len = rasprintf(buf, bufsiz,
157 format_address(symtab_t *st, char **buf, size_t *bufsiz, size_t offs, const char *fmt, const void *addr) argument
[all...]
/freebsd-11-stable/contrib/libxo/xo/
H A Dxo.c94 formatter (xo_handle_t *xop, char *buf, xo_ssize_t bufsiz, argument
145 rc = snprintf(buf, bufsiz, fmt, w1, w2, value);
147 rc = snprintf(buf, bufsiz, fmt, w1, value);
149 rc = snprintf(buf, bufsiz, fmt, value);
154 rc = snprintf(buf, bufsiz, fmt, w1, w2, value);
156 rc = snprintf(buf, bufsiz, fmt, w1, value);
158 rc = snprintf(buf, bufsiz, fmt, value);
163 rc = snprintf(buf, bufsiz, fmt, w1, w2, value);
165 rc = snprintf(buf, bufsiz, fmt, w1, value);
167 rc = snprintf(buf, bufsiz, fm
[all...]
/freebsd-11-stable/contrib/ntp/libntp/
H A Dmsyslog.c102 size_t bufsiz
110 pstatic = strerror_r(err, buf, bufsiz);
115 snprintf(buf, bufsiz, "%s(%d): errno %d",
123 else if (pstatic != buf && pstatic > (char *)bufsiz)
124 strlcpy(buf, pstatic, bufsiz);
128 rc = strerror_r(err, buf, bufsiz);
130 snprintf(buf, bufsiz, "strerror_r(%d): errno %d",
228 size_t bufsiz,
254 return vsnprintf(buf, bufsiz, nfmt, ap);
328 size_t bufsiz,
226 mvsnprintf( char * buf, size_t bufsiz, const char * fmt, va_list ap ) argument
326 msnprintf( char * buf, size_t bufsiz, const char * fmt, ... ) argument
[all...]
H A Daudio.c228 int bufsiz, /* buffer size */
287 printf("audio_init: <%s> bufsiz %d\n", dname, bufsiz);
297 s_size.play_size = s_size.rec_size = bufsiz;
362 info.record.buffer_size = bufsiz;
226 audio_init( const char *dname, int bufsiz, int unit ) argument
/freebsd-11-stable/contrib/apr/passwd/
H A Dapr_getpass.c232 APR_DECLARE(apr_status_t) apr_password_get(const char *prompt, char *pwbuf, apr_size_t *bufsiz)
236 if (getpass_r(prompt, pwbuf, *bufsiz) == NULL)
249 if (strlen(pw_got) >= *bufsiz) {
252 apr_cpystrn(pwbuf, pw_got, *bufsiz);
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dlz4.c56 uint32_t bufsiz; local
59 ASSERT(d_len >= sizeof (bufsiz));
61 bufsiz = real_LZ4_compress(s_start, &dest[sizeof (bufsiz)], s_len,
62 d_len - sizeof (bufsiz));
65 if (bufsiz == 0)
74 *(uint32_t *)dest = BE_32(bufsiz);
76 return (bufsiz + sizeof (bufsiz));
84 uint32_t bufsiz local
[all...]
/freebsd-11-stable/sys/cam/nvme/
H A Dnvme_xpt.c498 if (cdai->provsiz > cdai->bufsiz)
499 amt = cdai->bufsiz;
509 if (cdai->provsiz > cdai->bufsiz)
510 amt = cdai->bufsiz;
517 device->physpath_len = cdai->bufsiz;
519 if (cdai->bufsiz == 0)
521 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT);
526 memcpy(device->physpath, cdai->buf, cdai->bufsiz);
532 if (cdai->provsiz > cdai->bufsiz)
533 amt = cdai->bufsiz;
[all...]
/freebsd-11-stable/lib/libc/gen/
H A Dreadpassphrase.c46 readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags) argument
56 if (bufsiz == 0) {
128 end = buf + bufsiz - 1;
/freebsd-11-stable/crypto/openssh/openbsd-compat/
H A Dreadpassphrase.c62 readpassphrase(const char *prompt, char *buf, size_t bufsiz, int flags) argument
72 if (bufsiz == 0) {
138 end = buf + bufsiz - 1;
/freebsd-11-stable/lib/libc/net/
H A Dgetnameinfo.c372 ip6_sa2str(const struct sockaddr_in6 *sa6, char *buf, size_t bufsiz, int flags) argument
383 n = snprintf(buf, bufsiz, "%u", sa6->sin6_scope_id);
384 if (n < 0 || n >= bufsiz)
393 IN6_IS_ADDR_MC_NODELOCAL(a6)) && bufsiz >= IF_NAMESIZE) {
401 n = snprintf(buf, bufsiz, "%u", sa6->sin6_scope_id);
402 if (n < 0 || (size_t)n >= bufsiz)
/freebsd-11-stable/share/examples/ses/srcs/
H A Dgetencstat.c84 stri.bufsiz = sizeof(str);
88 stri.bufsiz = sizeof(str);
/freebsd-11-stable/sys/cam/scsi/
H A Dscsi_enc_ses.c1045 cdai.bufsiz = MAXPATHLEN;
1057 cdai.bufsiz = sbuf_len(args->physpath);
1106 cdai.bufsiz = CAM_SCSI_DEVID_MAXLEN;
1107 cdai.buf = devid = malloc(cdai.bufsiz, M_SCSIENC, M_WAITOK|M_ZERO);
1168 ses_page_cdb(char *cdb, int bufsiz, SesDiagPageCodes pagenum, int dir) argument
1181 cdb[3] = bufsiz >> 8; /* high bits */
1182 cdb[4] = bufsiz & 0xff; /* low bits */
2264 uint8_t *buf, int bufsiz)
2484 * \param bufsiz Size of the response buffer.
2492 uint8_t *buf, int bufsiz, in
2263 ses_get_elm_addlstatus_fc(enc_softc_t *enc, enc_cache_t *enc_cache, uint8_t *buf, int bufsiz) argument
2491 ses_get_elm_addlstatus_sas_type0(enc_softc_t *enc, enc_cache_t *enc_cache, uint8_t *buf, int bufsiz, int eip, int nobj) argument
2550 ses_get_elm_addlstatus_sas_type1(enc_softc_t *enc, enc_cache_t *enc_cache, uint8_t *buf, int bufsiz, int eip, int nobj) argument
2617 ses_get_elm_addlstatus_sas(enc_softc_t *enc, enc_cache_t *enc_cache, uint8_t *buf, int bufsiz, int eip, int tidx, int nobj) argument
2695 ses_get_elm_addlstatus_ata(enc_softc_t *enc, enc_cache_t *enc_cache, uint8_t *buf, int bufsiz, int eip, int tidx, int nobj) argument
[all...]
H A Dscsi_enc.h186 size_t bufsiz; /* IN/OUT: length of string provided/returned */ member in struct:encioc_string
H A Dscsi_xpt.c2527 if (cdai->provsiz > cdai->bufsiz)
2528 amt = cdai->bufsiz;
2538 if (cdai->provsiz > cdai->bufsiz)
2539 amt = cdai->bufsiz;
2550 if (cdai->bufsiz == 0)
2552 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT);
2557 device->physpath_len = cdai->bufsiz;
2558 memcpy(device->physpath, cdai->buf, cdai->bufsiz);
2564 if (cdai->provsiz > cdai->bufsiz)
2565 amt = cdai->bufsiz;
[all...]
/freebsd-11-stable/sys/cddl/boot/zfs/
H A Dlz4.c47 uint32_t bufsiz = htonl(*(uint32_t *)src); local
50 if (bufsiz + 4 > s_len)
57 return (LZ4_uncompress_unknownOutputSize((const char *)s_start + 4, d_start, bufsiz,
/freebsd-11-stable/usr.sbin/inetd/
H A Dbuiltins.c363 size_t size, bufsiz; local
474 bufsiz = sizeof(buf) - 1;
476 while (bufsiz > 0) {
491 if ((size_t)onreadlen > bufsiz)
492 onreadlen = bufsiz;
498 bufsiz -= ssize;
/freebsd-11-stable/sys/contrib/ngatm/netnatm/msg/
H A Dunimsglib.h84 size_t bufsiz; member in struct:unicx
/freebsd-11-stable/libexec/bootpd/
H A Dreadfile.c494 * The "bufsiz" parameter points to an unsigned int which specifies the
504 read_entry(fp, buffer, bufsiz)
507 unsigned *bufsiz;
557 if (length < *bufsiz - 1) {
565 if (length >= *bufsiz - 1) {
576 if (length < *bufsiz - 1) {
589 if (length >= *bufsiz - 1) {
597 if (length >= *bufsiz - 1) {
620 if (length >= *bufsiz - 1) {
628 *bufsiz
[all...]
/freebsd-11-stable/contrib/groff/src/devices/xditview/
H A Ddevice.c457 int bufsiz = 0; local
504 if (len > bufsiz) {
509 bufsiz = len;

Completed in 462 milliseconds

123