/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | fmtmode.c | 38 char* buf; local 42 s = buf = fmtbuf(MODELEN + 1); 46 return buf;
|
H A D | fmtversion.c | 37 char* buf; local 40 buf = cur = fmtbuf(n = 18); 52 return buf;
|
/illumos-gate/usr/src/lib/libast/common/vec/ |
H A D | vecfile.c | 42 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 D | vecload.c | 34 * 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 D | prom_version.c | 58 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 D | write_fifo.c | 49 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 D | psiginfo.c | 52 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 D | deffs.c | 50 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 D | centipad_board.c | 65 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 D | crc32.c | 99 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 D | pread.c | 51 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 D | devicename_stubs.c | 44 static char buf[128]; local 46 return (buf);
|
/illumos-gate/usr/src/boot/sys/cddl/boot/zfs/ |
H A D | blkptr.c | 43 * 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.c | 34 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 D | smb_ctxbuf.c | 54 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 D | pi_ldom.c | 132 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 D | read_msg.c | 38 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 D | util_cksum.c | 44 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 D | tgetwch.c | 49 char buf[CSMAX]; local 60 buf[0] = (char)c; 68 buf[n] = (char)c; 72 (void) _curs_mbtowc(&wchar, buf, n);
|
H A D | waddwch.c | 46 char buf[CSMAX]; local 55 if ((width = _curs_wctomb(buf, code & TRIM)) < 0) 59 p = buf;
|
H A D | wgetwch.c | 46 char buf[CSMAX]; local 59 buf[0] = (char)c; 66 buf[n] = (char)c; 70 if ((_curs_mbtowc(&wchar, buf, n)) < 0)
|
H A D | winswch.c | 45 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 D | socket_inet.c | 43 * 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 D | wbio.c | 43 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 D | nvpair_alloc_system.c | 41 nv_free_sys(nv_alloc_t *nva, void *buf, size_t size) argument 43 free(buf);
|