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

123

/freebsd-10-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-10-stable/contrib/mdocml/
H A Dcompat_fgetln.c55 static size_t bufsiz = 0; local
60 bufsiz = BUFSIZ;
61 if ((buf = malloc(bufsiz)) == NULL)
65 if (fgets(buf, bufsiz, fp) == NULL)
70 size_t nbufsiz = bufsiz + BUFSIZ;
82 *len = bufsiz;
83 if (fgets(&buf[bufsiz], BUFSIZ, fp) == NULL)
86 bufsiz = nbufsiz;
/freebsd-10-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);
H A Dcdf.c1243 cdf_print_property_name(char *buf, size_t bufsiz, uint32_t p) argument
1249 return snprintf(buf, bufsiz, "%s", vn[i].n);
1250 return snprintf(buf, bufsiz, "%#x", p);
1254 cdf_print_elapsed_time(char *buf, size_t bufsiz, cdf_timestamp_t ts) argument
1269 len += snprintf(buf + len, bufsiz - len, "%dd+", days);
1270 if ((size_t)len >= bufsiz)
1275 len += snprintf(buf + len, bufsiz - len, "%.2d:", hours);
1276 if ((size_t)len >= bufsiz)
1280 len += snprintf(buf + len, bufsiz - len, "%.2d:", mins);
1281 if ((size_t)len >= bufsiz)
[all...]
/freebsd-10-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-10-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-10-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-10-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-10-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dlz4.c53 uint32_t bufsiz; local
56 ASSERT(d_len >= sizeof (bufsiz));
58 bufsiz = real_LZ4_compress(s_start, &dest[sizeof (bufsiz)], s_len,
59 d_len - sizeof (bufsiz));
62 if (bufsiz == 0)
71 *(uint32_t *)dest = BE_32(bufsiz);
73 return (bufsiz + sizeof (bufsiz));
81 uint32_t bufsiz local
[all...]
/freebsd-10-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) {
136 end = buf + bufsiz - 1;
/freebsd-10-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-10-stable/lib/libc/net/
H A Dgetnameinfo.c336 ip6_sa2str(const struct sockaddr_in6 *sa6, char *buf, size_t bufsiz, int flags) argument
347 n = snprintf(buf, bufsiz, "%u", sa6->sin6_scope_id);
348 if (n < 0 || n >= bufsiz)
357 IN6_IS_ADDR_MC_NODELOCAL(a6)) && bufsiz >= IF_NAMESIZE) {
365 n = snprintf(buf, bufsiz, "%u", sa6->sin6_scope_id);
366 if (n < 0 || (size_t)n >= bufsiz)
/freebsd-10-stable/share/examples/ses/srcs/
H A Dgetencstat.c84 stri.bufsiz = sizeof(str);
88 stri.bufsiz = sizeof(str);
/freebsd-10-stable/sys/cam/scsi/
H A Dscsi_enc.h154 size_t bufsiz; /* IN/OUT: length of string provided/returned */ member in struct:encioc_string
H A Dscsi_enc_ses.c1015 cdai.bufsiz = MAXPATHLEN;
1027 cdai.bufsiz = sbuf_len(args->physpath);
1072 cdai.bufsiz = CAM_SCSI_DEVID_MAXLEN;
1073 cdai.buf = devid = malloc(cdai.bufsiz, M_SCSIENC, M_WAITOK|M_ZERO);
1135 ses_page_cdb(char *cdb, int bufsiz, SesDiagPageCodes pagenum, int dir) argument
1148 cdb[3] = bufsiz >> 8; /* high bits */
1149 cdb[4] = bufsiz & 0xff; /* low bits */
2162 uint8_t *buf, int bufsiz)
2372 * \param bufsiz Size of the response buffer.
2380 uint8_t *buf, int bufsiz, in
2161 ses_get_elm_addlstatus_fc(enc_softc_t *enc, enc_cache_t *enc_cache, uint8_t *buf, int bufsiz) argument
2379 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
2438 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
2505 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
[all...]
H A Dscsi_xpt.c2496 if (cdai->provsiz > cdai->bufsiz)
2497 amt = cdai->bufsiz;
2507 if (cdai->provsiz > cdai->bufsiz)
2508 amt = cdai->bufsiz;
2517 device->physpath_len = cdai->bufsiz;
2519 if (cdai->bufsiz == 0)
2521 device->physpath = malloc(cdai->bufsiz, M_CAMXPT, M_NOWAIT);
2526 memcpy(device->physpath, cdai->buf, cdai->bufsiz);
2532 if (cdai->provsiz > cdai->bufsiz)
2533 amt = cdai->bufsiz;
[all...]
/freebsd-10-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-10-stable/usr.sbin/inetd/
H A Dbuiltins.c362 size_t size, bufsiz; local
473 bufsiz = sizeof(buf) - 1;
475 while (bufsiz > 0) {
490 if ((size_t)onreadlen > bufsiz)
491 onreadlen = bufsiz;
497 bufsiz -= ssize;
/freebsd-10-stable/sys/contrib/ngatm/netnatm/msg/
H A Dunimsglib.h84 size_t bufsiz; member in struct:unicx
/freebsd-10-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-10-stable/contrib/groff/src/devices/xditview/
H A Ddevice.c457 int bufsiz = 0; local
504 if (len > bufsiz) {
509 bufsiz = len;
/freebsd-10-stable/sys/net80211/
H A Dieee80211_ht.c544 int bufsiz = MS(baparamset, IEEE80211_BAPS_BUFSIZ); local
554 rap->rxa_wnd = (bufsiz == 0) ?
555 IEEE80211_AGGR_BAWMAX : min(bufsiz, IEEE80211_AGGR_BAWMAX);
1781 int bufsiz; local
1786 bufsiz = MS(baparamset, IEEE80211_BAPS_BUFSIZ);
1787 tap->txa_wnd = (bufsiz == 0) ?
1788 IEEE80211_AGGR_BAWMAX : min(bufsiz, IEEE80211_AGGR_BAWMAX);
1803 int bufsiz, tid; local
1808 bufsiz = MS(baparamset, IEEE80211_BAPS_BUFSIZ);
1810 tap->txa_wnd = (bufsiz
1921 int tid, bufsiz; local
[all...]

Completed in 184 milliseconds

123