Searched defs:buf (Results 101 - 125 of 3356) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmtmode.c38 char* buf; local
42 s = buf = fmtbuf(MODELEN + 1);
46 return buf;
H A Dfmtversion.c37 char* buf; local
40 buf = cur = fmtbuf(n = 18);
52 return buf;
/illumos-gate/usr/src/lib/libast/common/vec/
H A Dvecfile.c42 register char* buf; local
50 if (!fstat(fd, &st) && S_ISREG(st.st_mode) && (n = st.st_size) > 0 && (buf = newof(0, char, n + 1, 0)))
52 if (read(fd, buf, n) == n)
54 buf[n] = 0;
55 vec = vecload(buf);
57 if (!vec) free(buf);
H A Dvecload.c34 * load a string vector from lines in buf
35 * buf may be modified on return
37 * each line in buf is treated as a new vector element
47 vecload(char* buf) argument
55 n = (*buf == '#') ? -1 : 0;
56 for (s = buf;; s++)
60 if (s > buf && *(s - 1) == '\\') *(s - 1) = *s = ' ';
80 *p++ = s = buf;
/illumos-gate/usr/src/uts/intel/promif/
H A Dprom_version.c58 prom_version_name(char *buf, int len) argument
63 (void) strlcpy(buf, prom_versionstr, len - 1);
/illumos-gate/usr/src/cmd/lp/lib/msgs/
H A Dwrite_fifo.c49 int write_fifo ( int fifo, char * buf, unsigned int size ) argument
51 int write_fifo (fifo, buf, size)
53 char *buf;
60 (void)memcpy (buf + HEAD_RESYNC, Resync, HEAD_RESYNC_LEN);
61 (void)memcpy (buf + TAIL_ENDSYNC(size), Endsync, TAIL_ENDSYNC_LEN);
63 CALC_CHKSUM (buf, size, chksum);
64 (void)htos (buf + TAIL_CHKSUM(size), chksum);
86 if ((wbytes = write(fifo, buf, size)) > 0)
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dpsiginfo.c52 char buf[256]; local
61 (void) snprintf(buf, sizeof (buf),
72 (void) snprintf(buf, sizeof (buf),
78 (void) snprintf(buf, sizeof (buf),
84 (void) snprintf(buf, sizeof (buf),
88 (void) write(2, buf, strle
[all...]
/illumos-gate/usr/src/cmd/fs.d/
H A Ddeffs.c50 static char buf[BUFSIZ]; local
60 if (fgets(buf, sizeof (buf), fp) != NULL)
61 deffs = strtok(buf, " \t\n");
/illumos-gate/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dcentipad_board.c65 drvread(void *buf, unsigned lba, unsigned nblk) argument
67 return (MCI_read((char *)buf, lba << 9, nblk << 9));
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dcrc32.c99 crc32(const void *buf, size_t size) argument
101 const uint8_t *p = buf;
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dpread.c51 static char buf[BUFSIZE]; variable
67 got = read(fd, buf, count);
72 vpbcopy(buf, dest, got);
/illumos-gate/usr/src/boot/sys/boot/zfs/
H A Ddevicename_stubs.c44 static char buf[128]; local
46 return (buf);
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/
H A Dblkptr.c43 * buf must be at least BPE_GET_PSIZE(bp) bytes long (which will never be
47 decode_embedded_bp_compressed(const blkptr_t *bp, void *buf) argument
50 uint8_t *buf8 = buf;
/illumos-gate/usr/src/lib/passwdutil/
H A D__failed_count.c34 void *buf; local
53 if ((ret = ops->getpwnam(username, items, NULL, &buf)) != PWU_SUCCESS) {
58 if ((ret = ops->update(items, NULL, buf)) != PWU_SUCCESS) {
69 if ((ret = ops->update(items, NULL, buf)) != PWU_SUCCESS)
72 if (((ret = ops->putpwnam(username, NULL, NULL, buf)) ==
93 void *buf; local
112 if ((ret = ops->getpwnam(username, items, NULL, &buf)) != PWU_SUCCESS)
114 if ((ret = ops->update(items, NULL, buf)) != PWU_SUCCESS)
116 ret = ops->putpwnam(username, NULL, NULL, buf);
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_ctxbuf.c54 smb_ctxbuf_init(smb_ctxbuf_t *ctx, unsigned char *buf, size_t buflen) argument
56 if (ctx == 0 || buf == 0 || buflen == 0)
59 buf[0] = '\0';
61 ctx->basep = buf;
62 ctx->curp = buf;
63 ctx->endp = &buf[buflen];
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/sun4vpi/
H A Dpi_ldom.c132 pi_free(void *buf, size_t size) argument
138 topo_mod_free(Pi_mod, buf, size);
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dread_msg.c38 char *buf = NULL; local
53 if (!(buf = malloc(inbuf->length))) {
56 if ((len2 = krb5_net_read(context, fd, buf, ilen)) != ilen) {
57 krb5_xfree(buf);
61 inbuf->data = buf;
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dutil_cksum.c44 char *buf = 0; local
76 if ((buf = (char *) xmalloc(len)) == NULL)
82 ptr = buf;
93 plaind.data = buf;
122 if (buf)
123 xfree(buf);
129 xfree(buf);
135 xfree(buf);
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dtgetwch.c49 char buf[CSMAX]; local
60 buf[0] = (char)c;
68 buf[n] = (char)c;
72 (void) _curs_mbtowc(&wchar, buf, n);
H A Dwaddwch.c46 char buf[CSMAX]; local
55 if ((width = _curs_wctomb(buf, code & TRIM)) < 0)
59 p = buf;
H A Dwgetwch.c46 char buf[CSMAX]; local
59 buf[0] = (char)c;
66 buf[n] = (char)c;
70 if ((_curs_mbtowc(&wchar, buf, n)) < 0)
H A Dwinswch.c45 char buf[CSMAX]; local
52 if ((width = _curs_wctomb(buf, code & TRIM)) < 0)
57 if (winsch(win, a|(unsigned char)buf[i]) == ERR)
/illumos-gate/usr/src/lib/libwanboot/common/
H A Dsocket_inet.c43 * buf - Buffer to read data into.
49 socket_read(int fildes, void *buf, size_t nbyte, int read_timeout) argument
66 return (recv(fildes, buf, nbyte, 0));
74 * buf - Buffer containing data to be written.
80 socket_write(int fildes, const void *buf, size_t nbyte, argument
83 return (sendto(fildes, buf, nbyte, 0, (struct sockaddr *)addr,
/illumos-gate/usr/src/lib/libwanbootutil/common/
H A Dwbio.c43 const char *buf = buffer; local
46 nbytes = write(fd, &buf[nwritten], buflen - nwritten);
63 char *buf = buffer; local
66 nbytes = read(fd, &buf[nread], buflen - nread);
/illumos-gate/usr/src/lib/libnvpair/
H A Dnvpair_alloc_system.c41 nv_free_sys(nv_alloc_t *nva, void *buf, size_t size) argument
43 free(buf);

Completed in 176 milliseconds

1234567891011>>