/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_logio.c | 46 logio_read(mdb_io_t *io, void *buf, size_t nbytes) argument 52 rbytes = IOP_READ(io->io_next, buf, nbytes); 56 (void) IOP_WRITE(logio, buf, rbytes); 66 logio_write(mdb_io_t *io, const void *buf, size_t nbytes) argument 72 wbytes = IOP_WRITE(io->io_next, buf, nbytes); 75 (void) IOP_WRITE(logio, buf, wbytes);
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fget.c | 34 ** buf -- buffer to place read string in 35 ** n -- size of 'buf' 38 ** success: returns value of 'buf' 47 sm_io_fgets(fp, timeout, buf, n) 50 char *buf; 61 s = buf; 77 if (s == buf) 102 return buf; 111 return buf;
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | time.c | 63 (void) snprintf(time_buf->buf, sizeof (time_buf->buf), 66 (void) snprintf(time_buf->buf, sizeof (time_buf->buf), 69 (void) snprintf(time_buf->buf, sizeof (time_buf->buf),
|
/illumos-gate/usr/src/cmd/boot/common/ |
H A D | boot_utils.c | 60 char *buf = buffer; local 71 ret = pwrite(fd, buf, size, off); 81 buf += ret; 93 char *buf = buffer; local 100 ret = pread(fd, buf, size, off); 110 buf += ret;
|
/illumos-gate/usr/src/cmd/cmd-inet/lib/nwamd/ |
H A D | logging.c | 57 log_format(int severity, const char *fmt, va_list ap, char *buf, int bufsize) argument 62 if (buf == NULL) { 63 buf = vbuf; 67 offset = snprintf(buf, bufsize, "%d: ", pthread_self()); 68 (void) vsnprintf(buf + offset, bufsize - offset, fmt, ap); 70 log_out(severity, buf);
|
/illumos-gate/usr/src/lib/smbsrv/libsmbrp/common/ |
H A D | smbrp_plugin.c | 91 * a reparse point for DFS, so 'buf' will contain the same data as 95 smb_rpo_deref(const char *svc_type, const char *svc_data, char *buf, argument 100 if ((!svc_type) || (!svc_data) || (!buf) || (!bufsz)) 113 (void) strlcpy(buf, svc_data, *bufsz); 124 smb_rpo_form(const char *svc_type, const char *svc_data, char *buf, argument 129 if ((!svc_type) || (!svc_data) || (!buf) || (!bufsz)) 139 (void) strlcpy(buf, svc_data, *bufsz);
|
/illumos-gate/usr/src/psm/stand/bootlst/common/ |
H A D | sasubr.c | 84 cons_gets(char *buf, int n) argument 90 lp = buf; 91 limit = &buf[n - 1]; 98 return (buf); 100 if (lp > buf) 104 lp = buf;
|
/illumos-gate/usr/src/uts/common/sys/scsi/ |
H A D | scsi_resource.h | 66 struct buf *scsi_alloc_consistent_buf(struct scsi_address *, 67 struct buf *, size_t, uint_t, int (*)(caddr_t), caddr_t); 69 struct scsi_pkt *, struct buf *, int, int, int, int, 72 void scsi_free_consistent_buf(struct buf *); 88 struct buf *pcw_bp; 102 struct buf *scsi_pkt2bp(struct scsi_pkt *);
|
/illumos-gate/usr/src/lib/libast/common/disc/ |
H A D | sfdcdio.c | 46 static ssize_t diordwr(Sfio_t* f, Void_t* buf, size_t n, Direct_t* di, int type) argument 48 static ssize_t diordwr(f, buf, n, di, type) 50 Void_t* buf; 63 if((P2I(buf)%di->dio.d_mem) == 0 && 77 rv = read(f->file,buf,io); 78 else rv = write(f->file,buf,io); 82 buf = (Void_t*)((char*)buf + rv); 98 (rv = type == SF_READ ? read(f->file,buf,rw) : write(f->file,buf,r 105 dioread(Sfio_t* f, Void_t* buf, size_t n, Sfdisc_t* disc) argument 118 diowrite(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument [all...] |
/illumos-gate/usr/src/lib/libast/common/path/ |
H A D | pathgetlink.c | 37 * return external representation for symbolic link text of name in buf 42 pathgetlink(const char* name, char* buf, int siz) argument 46 if ((n = readlink(name, buf, siz)) < 0) return(-1); 52 buf[n] = 0; 54 if (isspace(*buf)) 63 s = buf; 76 strcpy(buf, tmp);
|
/illumos-gate/usr/src/lib/libast/common/port/ |
H A D | astcopy.c | 62 static char* buf; local 84 if (buf) free(buf); 86 if (!(buf = newof(0, char, bufsiz, 0))) return(-1); 88 if ((c = read(rfd, buf, (size_t)n)) > 0 && write(wfd, buf, (size_t)c) != c) c = -1;
|
/illumos-gate/usr/src/lib/libast/common/sfio/ |
H A D | sfwr.c | 31 static ssize_t sfoutput(Sfio_t* f, char* buf, size_t n) argument 33 static ssize_t sfoutput(f,buf,n) 35 char* buf; 42 wbuf = buf; 43 endbuf = buf+n; 46 { buf += n; 51 sp = buf+1; 52 if(buf[0] == 0 && buf[_Sfpage-1] == 0) 79 if((s = sp-buf) > 125 sfwr(Sfio_t* f, const Void_t* buf, size_t n, Sfdisc_t* disc) argument [all...] |
/illumos-gate/usr/src/cmd/lp/lib/printers/ |
H A D | getpentry.c | 57 char buf[BUFSIZ]; local 127 while (fdgets(buf, BUFSIZ, fd) != NULL) { 129 buf[strlen(buf) - 1] = 0; 135 buf, 139 p = buf + prtrheadings[fld].len;
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | sha256.c | 34 zio_checksum_SHA256(const void *buf, uint64_t size, argument 41 SHA2Update(&ctx, buf, size); 59 zio_checksum_SHA512_native(const void *buf, uint64_t size, argument 65 SHA2Update(&ctx, buf, size); 71 zio_checksum_SHA512_byteswap(const void *buf, uint64_t size, argument 76 zio_checksum_SHA512_native(buf, size, ctx_template, &tmp);
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | libmandoc.h | 30 struct buf { struct 31 char *buf; member in struct:buf 63 int preconv_cue(const struct buf *, size_t); 64 int preconv_encode(struct buf *, size_t *, 65 struct buf *, size_t *, int *); 74 enum rofferr roff_parseln(struct roff *, int, struct buf *, int *);
|
H A D | mdoc.c | 97 mdoc_parseln(struct roff_man *mdoc, int ln, char *buf, int offs) argument 114 return roff_getcontrol(mdoc->roff, buf, &offs) ? 115 mdoc_pmacro(mdoc, ln, buf, offs) : 116 mdoc_ptext(mdoc, ln, buf, offs); 124 (*mdoc_macros[tok].fp)(mdoc, tok, line, ppos, pos, buf); 217 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs) argument 236 mdoc_macro(mdoc, MDOC_It, line, offs, &offs, buf); 246 mdoc_macro(mdoc, MDOC_It, line, offs, &offs, buf); 257 for (c = end = buf + offs; *c; c++) { 293 line, (int)(ws-buf), NUL 333 mdoc_pmacro(struct roff_man *mdoc, int ln, char *buf, int offs) argument [all...] |
/illumos-gate/usr/src/lib/libc/port/fp/ |
H A D | aconvert.c | 36 * If arg is finite and nonzero, buf is filled with ndigits hexadecimal 38 * (so ndigits must be at least 1 and buf must be large enough to hold 45 * If arg is zero, buf is filled with ndigits zeros followed by a null, 47 * is called to place an appropriate string in buf, and *exp is set to 56 __aconvert(double arg, int ndigits, int *exp, int *sign, char *buf) argument 74 fp_infinity : fp_quiet, ndigits, buf); 83 buf[i] = '0'; 84 buf[ndigits] = '\0'; 120 buf[0] = '1'; 123 buf[ 137 __qaconvert(long double *arg, int ndigits, int *exp, int *sign, char *buf) argument 294 __qaconvert(long double *arg, int ndigits, int *exp, int *sign, char *buf) argument 367 __aconvert(double arg, int ndigits, int *exp, int *sign, char *buf) argument [all...] |
/illumos-gate/usr/src/lib/print/libprint/common/ |
H A D | ns_bsd_addr.c | 76 char buf[BUFSIZ]; local 81 if (snprintf(buf, sizeof (buf), "%s", addr->server) >= sizeof (buf)) { 87 (void) strlcat(buf, ",", sizeof (buf)); 89 if (strlcat(buf, addr->printer, sizeof (buf)) >= sizeof (buf)) { 94 (void) strlcat(buf, ",", sizeo 128 char buf[BUFSIZ]; local 152 char buf[BUFSIZ]; local 270 char buf[BUFSIZ]; local [all...] |
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | pr_stat.c | 69 pr_stat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument 81 return (stat(path, buf)); 112 adp->arg_object = buf; 113 adp->arg_size = sizeof (*buf); 116 adp->arg_object = buf; 117 adp->arg_size = sizeof (*buf); 135 stat64_32_to_n(&statb64_32, buf); 144 pr_lstat(struct ps_prochandle *Pr, const char *path, struct stat *buf) argument 156 return (lstat(path, buf)); 187 adp->arg_object = buf; 219 pr_fstat(struct ps_prochandle *Pr, int fd, struct stat *buf) argument 294 pr_stat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument 373 pr_lstat64(struct ps_prochandle *Pr, const char *path, struct stat64 *buf) argument 452 pr_fstat64(struct ps_prochandle *Pr, int fd, struct stat64 *buf) argument [all...] |
/illumos-gate/usr/src/cmd/fgrep/ |
H A D | fgrep.c | 72 if (p >= &buf[fw_lBufsiz + BUFSIZ]) { \ 73 if (nlp == buf) { \ 76 if ((buf = realloc(buf, \ 80 nlp = buf; \ 81 p = &buf[fw_lBufsiz]; \ 84 (void) memmove(buf, nlp, \ 85 &buf[fw_lBufsiz + BUFSIZ] - nlp);\ 86 p -= nlp - buf; \ 87 nlp = buf; \ 304 static char *buf = NULL; local [all...] |
/illumos-gate/usr/src/lib/libnsl/nsl/ |
H A D | t_rcvdis.c | 104 ctlbuf.buf = tiptr->ti_lookbufs.tl_lookcbuf; 108 databuf.buf = tiptr->ti_lookbufs.tl_lookdbuf; 149 free(ctlbuf.buf); 151 tiptr->ti_ctlbuf = ctlbuf.buf; 184 pptr = (union T_primitives *)ctlbuf.buf; 219 (void) memcpy(discon->udata.buf, databuf.buf, 230 free(ctlbuf.buf); 232 tiptr->ti_ctlbuf = ctlbuf.buf; 234 free(databuf.buf); [all...] |
H A D | t_alloc.c | 48 static int _alloc_buf(struct netbuf *buf, t_scalar_t n, int fields, 106 * 'buf' and 'maxlen' fields of each. 263 _alloc_buf(struct netbuf *buf, t_scalar_t n, int fields, int api_semantics, argument 269 buf->buf = NULL; 270 buf->maxlen = 0; 293 if ((buf->buf = calloc(1, infalloc)) == NULL) { 297 buf->maxlen = infalloc; 302 if ((buf [all...] |
/illumos-gate/usr/src/cmd/vi/misc/ |
H A D | mkstr.c | 149 char buf[512]; local 150 register char *cp = buf; 206 printf("%d", hashit(buf, 1, NULL)); 218 char buf[512]; local 222 while (fgetNUL(buf, sizeof buf, mesgread) != NULL) { 223 hashit(buf, 0, mesgpt); 224 mesgpt += strlen(buf) + 2; 243 char buf[512]; local 258 fgetNUL(buf, sizeo 291 register char *buf = obuf; local [all...] |
/illumos-gate/usr/src/uts/common/io/nxge/npi/ |
H A D | npi.c | 81 rt->buf[i].ctl_addr = TRACE_CTL_INVALID; 82 rt->buf[i].val_l32 = 0; 83 rt->buf[i].val_h32 = 0; 94 rt->buf[idx].ctl_addr = (addr & TRACE_ADDR_MASK) 97 rt->buf[idx].ctl_addr = (addr & TRACE_ADDR_MASK); 98 rt->buf[idx].ctl_addr |= (((handle.function.function 102 rt->buf[idx].val_l32 = val & 0xFFFFFFFF; 103 rt->buf[idx].val_h32 = (val >> 32) & 0xFFFFFFFF; 118 rt->buf[idx].ctl_addr = (addr & TRACE_ADDR_MASK) 121 rt->buf[id [all...] |
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | arc.h | 61 typedef void arc_done_func_t(zio_t *zio, arc_buf_t *buf, void *private); 88 ARC_FLAG_IO_ERROR = 1 << 8, /* I/O failed for buf */ 159 boolean_t arc_is_metadata(arc_buf_t *buf); 160 enum zio_compress arc_get_compression(arc_buf_t *buf); 161 int arc_decompress(arc_buf_t *buf); 169 void arc_return_buf(arc_buf_t *buf, void *tag); 170 void arc_loan_inuse_buf(arc_buf_t *buf, void *tag); 171 void arc_buf_destroy(arc_buf_t *buf, void *tag); 172 int arc_buf_size(arc_buf_t *buf); 173 int arc_buf_lsize(arc_buf_t *buf); [all...] |