Searched defs:buf (Results 351 - 375 of 3356) sorted by relevance

<<11121314151617181920>>

/illumos-gate/usr/src/psm/promif/ieee1275/sun4u/
H A Dprom_starcat.c101 * associated with 'key', into the memory indicated by 'buf'. Although there is
108 caddr_t buf)
136 ci[3] = p1275_ptr2cell(buf);
161 * Request that OBP write 'len' bytes from the memory indicated by 'buf' into
169 caddr_t buf)
197 ci[3] = p1275_ptr2cell(buf);
107 prom_starcat_iosram_read(uint32_t key, uint32_t offset, uint32_t len, caddr_t buf) argument
168 prom_starcat_iosram_write(uint32_t key, uint32_t offset, uint32_t len, caddr_t buf) argument
/illumos-gate/usr/src/stand/lib/sa/
H A Dmemlist.c89 char buf[80]; local
91 (void) sprintf(buf,
93 prom_panic(buf);
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Dinz_split_vpp.c35 void *buf; local
47 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
49 assert(buf != MAP_FAILED);
50 memset(buf, 'a', mapsz);
52 ret = memcntl(buf + clroff, clrsz, MC_INHERIT_ZERO, 0, 0, 0);
55 ret = munmap(buf + spltoff, spltsz);
60 ubuf = buf;
80 ubuf = buf;
H A Dinz_vpp.c33 void *buf; local
43 buf = mmap(NULL, mapsz, PROT_READ | PROT_WRITE,
45 assert(buf != MAP_FAILED);
46 memset(buf, 'a', mapsz);
48 ret = memcntl(buf + clroff, clrsz, MC_INHERIT_ZERO, 0, 0, 0);
53 ubuf = buf;
71 for (i = 0, ubuf = buf; i < mapsz; i++)
/illumos-gate/usr/src/test/zfs-tests/cmd/randfree_file/
H A Drandfree_file.c53 char *buf; local
83 buf = (char *)malloc(filesize);
89 if (write(fd, buf, filesize) < filesize) {
101 free(buf);
/illumos-gate/usr/src/test/zfs-tests/cmd/readmmap/
H A Dreadmmap.c54 char *buf = NULL; local
65 if ((buf = calloc(1, size)) == NULL) {
81 bytes = write(fd, buf, size);
112 bytes = pread(fd, buf, size, 0);
119 if (buf[idx] != 1) {
121 "bad data from read! got buf[%ud]=%d, expected 1\n",
122 idx, buf[idx]);
127 (void) printf("good data from read: buf[%ud]=1\n", idx);
132 if (buf != NULL) {
133 free(buf);
[all...]
/illumos-gate/usr/src/uts/common/ktli/
H A Dt_kunbind.c77 char *buf; local
92 buf = kmem_alloc(unbindsz, KM_SLEEP);
94 unbind_req = (struct T_unbind_req *)buf;
99 strioc.ic_dp = buf;
123 kmem_free(buf, unbindsz);
H A Dt_kbind.c75 char *buf; local
92 buf = kmem_alloc(bindsz, KM_SLEEP);
95 bind_req = (struct T_bind_req *)buf;
102 bcopy(req->addr.buf, buf + bind_req->ADDR_offset,
107 strioc.ic_dp = buf;
147 bcopy(buf + bind_ack->ADDR_offset, ret->addr.buf,
154 kmem_free(buf, bindsz);
/illumos-gate/usr/src/uts/common/os/
H A Dsmb_subr.c56 smb_free(void *buf, size_t len) argument
58 kmem_free(buf, len);
/illumos-gate/usr/src/uts/common/rpc/sec/
H A Dsvc_authu.c77 int32_t *buf; local
95 buf = XDR_INLINE(&xdrs, auth_len);
96 if (buf != NULL) {
97 aup->aup_time = IXDR_GET_INT32(buf);
98 str_len = IXDR_GET_U_INT32(buf);
103 bcopy((caddr_t)buf, aup->aup_machname, (u_int)str_len);
106 buf += str_len / sizeof (int32_t);
107 aup->aup_uid = IXDR_GET_INT32(buf);
108 aup->aup_gid = IXDR_GET_INT32(buf);
109 gid_len = IXDR_GET_U_INT32(buf);
[all...]
/illumos-gate/usr/src/uts/common/syscall/
H A Dgetpagesizes.c37 getpagesizes(int legacy, size_t *buf, int nelem) argument
45 if (nelem == 0 && buf != NULL) {
48 if (nelem == 0 && buf == NULL) {
51 if (buf == NULL) {
61 if (copyout(pgsza, buf, nelem * sizeof (*pgsza)) != 0) {
76 getpagesizes32(int legacy, size32_t *buf, int nelem) argument
86 if (nelem == 0 && buf != NULL) {
104 if (nelem == 0 && buf == NULL) {
108 if (buf == NULL) {
112 if (copyout(pgsza32, buf, nele
[all...]
H A Dgetrandom.c44 uint8_t *buf = bufp; local
69 if (ddi_copyout(rbytes, buf + out, len, 0) != 0)
H A Dreadlink.c54 readlinkat(int dfd, char *name, char *buf, size_t count) argument
98 aiov.iov_base = buf;
119 readlink(char *name, char *buf, size_t count) argument
121 return (readlinkat(AT_FDCWD, name, buf, count));
131 readlinkat32(int dfd, caddr32_t name, caddr32_t buf, size32_t count) argument
134 (char *)(uintptr_t)buf, (ssize32_t)count));
138 readlink32(caddr32_t name, caddr32_t buf, size32_t count) argument
141 (char *)(uintptr_t)buf, (ssize32_t)count));
/illumos-gate/usr/src/uts/common/io/
H A Dvcons_conf.c88 vt_getactive(char *buf, int buflen) argument
90 ASSERT(buf);
96 (void) snprintf(buf, buflen, "/dev/console");
98 (void) snprintf(buf, buflen, "%u", vc_active_console);
104 vt_getconsuser(char *buf, int buflen) argument
106 ASSERT(buf);
112 (void) snprintf(buf, buflen, "/dev/console");
117 (void) snprintf(buf, buflen, "%u", vc_cons_user);
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dkdb_xdr.c117 krb5_octet buf[4]; /* this is the encoded size of an int32 */ local
120 tl_data.tl_data_length = sizeof(buf);
121 krb5_kdb_encode_int32((krb5_int32) stamp, buf);
122 tl_data.tl_data_contents = buf;
/illumos-gate/usr/src/lib/krb5/ss/
H A Dhelp.c74 char buf[MAXPATHLEN]; local
75 strncpy(buf, "No info found for ", sizeof(buf) - 1);
76 buf[sizeof(buf) - 1] = '\0';
77 strncat(buf, argv[1], sizeof(buf) - 1 - strlen(buf));
78 ss_perror(sci_idx, 0, buf);
/illumos-gate/usr/src/lib/libast/common/comp/
H A Dmktemp.c44 temp(char* buf, int* fdp) argument
51 len = strlen(buf);
52 if (s = strrchr(buf, '/'))
55 d = buf;
59 s = buf;
63 *buf = 0;
67 if (!pathtemp(buf, len, d, s, fdp))
68 *buf = 0;
70 return buf;
74 mktemp(char* buf) argument
80 mkstemp(char* buf) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/disc/
H A Dsfdctee.c40 static ssize_t teewrite(Sfio_t* f, const Void_t* buf, size_t size, Sfdisc_t* disc) argument
42 static ssize_t teewrite(f,buf,size,disc)
44 Void_t* buf; /* the buffer of data being output */
52 if(te->status == 0 && sfwrite(te->tee,buf,size) != (ssize_t)size)
56 return sfwr(f,buf,size,disc);
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathgetlink.c37 * 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);
H A Dpathprog.c109 char buf[PATH_MAX]; local
113 if (!pathpath(buf, path, NiL, PATH_REGULAR|PATH_EXECUTE))
115 else if ((n = strlen(buf) + 1) <= size)
116 memcpy(path, buf, n);
/illumos-gate/usr/src/lib/libast/common/port/
H A Dastcopy.c62 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/regex/
H A Dregerror.c59 regerror(int code, const regex_t* p, char* buf, size_t size) argument
72 strncpy(buf, s, size);
73 buf[size - 1] = 0;
76 buf = (char*)s;
77 return strlen(buf) + 1;
/illumos-gate/usr/src/lib/libast/common/sfio/
H A Dsfwr.c31 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/lib/libast/common/string/
H A Dfmtfmt.c53 char* buf; local
196 s = buf = fmtbuf(m + z);
204 return buf;
H A Dfmtfs.c64 char* buf; local
88 buf = fmtbuf(strlen(s) + 1);
89 strcpy(buf, s);
91 return buf;

Completed in 134 milliseconds

<<11121314151617181920>>