Searched defs:buf (Results 401 - 425 of 3356) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/boot/lib/libstand/
H A Dnullfs.c81 int null_read (struct open_file *f, void *buf, size_t size, size_t *resid) argument
86 int null_write (struct open_file *f, void *buf, size_t size, size_t *resid) argument
H A Duuid_to_string.c40 * Dump len characters into *buf from val as hex and update *buf
43 tohex(char **buf, int len, uint32_t val) argument
46 char *walker = *buf;
53 *buf = walker + len;
/illumos-gate/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dbwct_board.c24 char buf[] = {0x00, 0xa9}; local
26 EEWrite(0xd0, buf, sizeof(buf));
122 drvread(void *buf, unsigned lba, unsigned nblk) argument
124 return (MCI_read((char *)buf, lba << 9, nblk << 9));
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dls.c64 char *buf, *path; local
121 buf = malloc(strlen(path) + strlen(d->d_name) + 2);
122 sprintf(buf, "%s/%s", path, d->d_name);
124 if (stat(buf, &sb))
126 free(buf);
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/
H A Dbiosacpi.c55 char buf[24]; local
63 sprintf(buf, "0x%08x", (unsigned int)VTOP(rsdp));
64 setenv("acpi.rsdp", buf, 1);
68 sprintf(buf, "%d", revision);
69 setenv("acpi.revision", buf, 1);
70 strncpy(buf, rsdp->OemId, sizeof(rsdp->OemId));
71 buf[sizeof(rsdp->OemId)] = '\0';
72 setenv("acpi.oem", buf, 1);
73 sprintf(buf, "0x%08x", rsdp->RsdtPhysicalAddress);
74 setenv("acpi.rsdt", buf,
[all...]
/illumos-gate/usr/src/boot/sys/boot/userboot/userboot/
H A Dcopy.c55 char buf[4096]; local
60 if (sz > sizeof(buf))
61 sz = sizeof(buf);
62 s = read(fd, buf, sz);
67 CALLBACK(copyin, buf, va, s);
/illumos-gate/usr/src/lib/pam_modules/smbfs/
H A Dsmbfs_login.c64 char buf[NSS_BUFLEN_PASSWD]; local
92 if (getpwnam_r(user, &pwbuf, buf, sizeof (buf)) == NULL) {
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftKeystoreUtil.h65 uchar_t *buf; member in struct:ks_obj
91 int soft_keystore_put_new_obj(uchar_t *buf, size_t len, boolean_t public,
93 int soft_keystore_modify_obj(ks_obj_handle_t *ks_handle, uchar_t *buf,
/illumos-gate/usr/src/lib/print/libipp-listener/common/
H A Dsend-document.c54 char buf[BUFSIZ]; local
114 while ((status == PAPI_OK) && ((rc = iread(fd, buf, sizeof (buf))) > 0))
115 status = papiJobStreamWrite(svc, s, buf, rc);
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_door_encdec.c45 char *buf; local
55 if ((buf = malloc(len)) == NULL) {
61 xdrmem_create(&xdrs, buf, len, XDR_ENCODE);
66 free(buf);
67 buf = NULL;
72 return (buf);
79 smb_common_decode(char *buf, size_t len, xdrproc_t proc, void *data) argument
87 xdrmem_create(&xdrs, buf, len, XDR_DECODE);
100 char *buf = NULL; local
103 if ((obj.buf
135 smb_string_decode(smb_string_t *obj, char *buf, size_t buflen) argument
154 lsa_account_encode(lsa_account_t *acct, uint8_t *buf, uint32_t buflen) argument
172 lsa_account_decode(lsa_account_t *acct, uint8_t *buf, uint32_t buflen) argument
[all...]
/illumos-gate/usr/src/lib/fm/topo/modules/common/ipmi/
H A Dipmi_methods.c63 store_prop_val(topo_mod_t *mod, void *buf, char *propname, topo_type_t type, argument
84 if (nvlist_add_string(*out, TOPO_PROP_VAL_VAL, (char *)buf)
92 if (nvlist_add_nvlist(*out, TOPO_PROP_VAL_VAL, (nvlist_t *)buf)
100 if (nvlist_add_uint32(*out, TOPO_PROP_VAL_VAL, *(uint32_t *)buf)
130 char *fmtstr, buf[BUFSZ]; local
154 (void) snprintf(buf, BUFSZ, fmtstr,
157 if (store_prop_val(mod, (void *)buf, "label", TOPO_TYPE_STRING, out)
/illumos-gate/usr/src/lib/libresolv2/common/nameser/
H A Dns_date.c113 datepart(const char *buf, int size, int min, int max, int *errp) { argument
118 if (!isdigit((unsigned char)(buf[i])))
120 result = (result * 10) + buf[i] - '0';
/illumos-gate/usr/src/lib/libsecdb/common/
H A Dgetuserattr.c54 char buf[NSS_BUFLEN_USERATTR]; local
59 tmp = _getuserattr(&user, buf, NSS_BUFLEN_USERATTR, &err);
67 char buf[NSS_BUFLEN_USERATTR]; local
72 tmp = _fgetuserattr(f, &user, buf, NSS_BUFLEN_USERATTR);
81 char buf[NSS_BUFLEN_USERATTR]; local
85 resptr = _getusernam(name, &user, buf, NSS_BUFLEN_USERATTR, &err);
96 char buf[NSS_BUFLEN_PASSWD]; local
98 if (getpwuid_r(u, &pwd, buf, NSS_BUFLEN_PASSWD) == NULL)
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_profile.c85 char *buf = NULL; local
89 if (nvlist_pack((nvlist_t *)prof, &buf, &buflen, NV_ENCODE_NATIVE, 0))
91 rv = modctl(MODDEVNAME, MODDEVNAME_PROFILE, buf, buflen);
92 free(buf);
/illumos-gate/usr/src/lib/libdhcputil/common/
H A Ddhcpmsg.c59 char buf[512]; local
75 (void) snprintf(buf, sizeof (buf), (errlevel == MSG_ERR &&
77 (void) vsyslog(err_to_syslog(errlevel), buf, ap); local
83 (void) snprintf(buf, sizeof (buf), (errlevel == MSG_ERR &&
88 (void) vfprintf(stderr, buf, ap);
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dlink_addr.c50 char *buf; local
53 if (((buf = str) == NULL) &&
54 ((buf = malloc(3 * size)) == NULL))
56 n = sprintf(buf, "%x", *macaddr++);
58 n += sprintf(buf+n, ":%x", *macaddr++);
59 return (buf);
/illumos-gate/usr/src/lib/libumem/common/
H A Dvmem_mmap.c80 void *buf; local
92 buf = mmap((void *)CHUNKSIZE, size, FREE_PROT, FREE_FLAGS | MAP_ALIGN,
95 if (buf != MAP_FAILED) {
96 ret = _vmem_extend_alloc(src, buf, size, size, vmflags);
100 (void) munmap(buf, size);
/illumos-gate/usr/src/lib/libuutil/common/
H A Duu_alloc.c56 char *buf = NULL; local
62 buf = uu_zalloc(sz);
63 if (buf != NULL)
64 (void) memcpy(buf, str, sz);
66 return (buf);
96 uu_memdup(const void *buf, size_t sz) argument
103 (void) memcpy(p, buf, sz);
/illumos-gate/usr/src/lib/libwrap/
H A Dsocket.c89 char buf[BUFSIZ]; local
107 if (recvfrom(fd, buf, sizeof(buf), MSG_PEEK,
113 memset(buf, 0 sizeof(buf));
210 char buf[INET6_ADDRSTRLEN]; local
235 inet_ntop(SGFAM(sin), SGADDRP(sin), buf, sizeof(buf)),
250 char buf[BUFSIZ]; local
259 (void) recvfrom(fd, buf, sizeo
[all...]
/illumos-gate/usr/src/lib/libxcurses/src/libc/mks/
H A Dm_varian.c287 static int buf = 0; local
292 ret = str[buf++];
293 if (buf >= 10)
294 buf = 0;
/illumos-gate/usr/src/lib/libnls/common/
H A Dnlsenv.c73 nlsenv(struct netbuf *buf, char *envname) argument
92 if (!(buf->buf = calloc(1, length)))
95 buf->maxlen = length;
96 return(nlsc2addr(buf->buf, buf->maxlen, charaddr));
/illumos-gate/usr/src/lib/libnsl/common/
H A Ddaemon_utils.c90 char lock_file[MAXPATHLEN], buf[MAXPATHLEN]; local
101 (void) strncpy(buf, name, MAXPATHLEN);
104 p = strrchr(buf, ':');
109 p = strrchr(buf, '/');
111 p = buf;
115 p = strrchr(buf, '/');
117 p = buf;
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_rcv.c53 _tx_rcv(int fd, char *buf, unsigned nbytes, int *flags, int api_semantics) argument
172 databuf.buf = buf;
207 pptr = (union T_primitives *)ctlbuf.buf;
246 free(ctlbuf.buf);
248 tiptr->ti_ctlbuf = ctlbuf.buf;
270 if (_t_register_lookevent(tiptr, databuf.buf,
272 ctlbuf.buf, ctlbuf.len) < 0) {
296 databuf.buf =
370 free(ctlbuf.buf);
[all...]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dpmap_prot.c52 rpc_inline_t *buf; local
56 buf = XDR_INLINE(xdrs, 4 * BYTES_PER_XDR_UNIT);
57 if (buf == NULL) {
67 IXDR_PUT_U_INT32(buf, objp->pm_prog);
68 IXDR_PUT_U_INT32(buf, objp->pm_vers);
69 IXDR_PUT_U_INT32(buf, objp->pm_prot);
70 IXDR_PUT_U_INT32(buf, objp->pm_port);
74 buf = XDR_INLINE(xdrs, 4 * BYTES_PER_XDR_UNIT);
75 if (buf == NULL) {
85 objp->pm_prog = IXDR_GET_U_INT32(buf);
182 rpc_inline_t *buf; local
[all...]
H A Drpcb_prot.c208 rpc_inline_t *buf; local
210 buf = XDR_INLINE(xdrs, 3 * BYTES_PER_XDR_UNIT);
211 if (buf == NULL) {
219 IXDR_PUT_U_INT32(buf, objp->prog);
220 IXDR_PUT_U_INT32(buf, objp->vers);
221 IXDR_PUT_U_INT32(buf, objp->proc);
261 return (xdr_bytes(xdrs, (char **)&(objp->buf),

Completed in 130 milliseconds

<<11121314151617181920>>