Searched defs:nbuf (Results 1 - 25 of 73) sorted by relevance

123

/illumos-gate/usr/src/cmd/mailwrapper/
H A Dfgetln.c63 char *nbuf = realloc(buf, nbufsiz); local
65 if (nbuf == NULL) {
72 buf = nbuf;
/illumos-gate/usr/src/cmd/fs.d/nfs/mountd/
H A Dmountd.h79 struct netbuf *nbuf; member in struct:cln
H A Dnfsauth.c60 struct netbuf nbuf; local
67 nbuf.len = argp->req_client.n_len;
68 nbuf.buf = argp->req_client.n_bytes;
70 if (nbuf.len == 0 || nbuf.buf == NULL)
82 cln_init_lazy(&cln, argp->req_netid, &nbuf);
H A Dnfs_cmd.c98 charmap_search(struct netbuf *nbuf, char *opts) argument
109 sa = (struct sockaddr *)nbuf->buf;
126 cln_init_lazy(&cln, netid, nbuf);
/illumos-gate/usr/src/lib/libbc/libc/sys/4.2/
H A Dread.c52 char *nbuf; local
58 if ((nbuf = (void *)malloc(size)) == NULL) {
63 if ((ret = _read(fd, nbuf, size)) == -1) {
66 free(nbuf);
69 to_utmp(buf, nbuf, ret);
73 free(nbuf);
85 to_utmp(char *buf, char *nbuf, int len) argument
90 utx = (struct utmpx *)nbuf;
93 while ((char *)utx < (nbuf + len)) {
H A Dreadv.c54 char *nbuf; local
62 if ((nbuf = (void *)malloc(size)) == NULL) {
67 if ((ret = _read(fd, nbuf, size)) == -1) {
70 free(nbuf);
74 to_utmp(iov[i].iov_base, nbuf, ret);
80 free(nbuf);
H A Dwrite.c55 char *nbuf; local
61 if ((nbuf = (void *)malloc(nsize)) == NULL) {
66 (void) memset(nbuf, 0, nsize);
68 ret = conv2utmpx(nbuf, buf, size);
70 if ((ret = _write(fd, nbuf, ret)) == -1) {
73 free(nbuf);
77 free(nbuf);
98 conv2utmpx(char *nbuf, char *buf, int len) argument
103 utx = (struct utmpx *) nbuf;
126 return ((char *) utx - nbuf);
[all...]
H A Dwritev.c55 char *nbuf; local
64 if ((nbuf = (void *)malloc(nsize)) == NULL) {
69 (void) memset(nbuf, 0, nsize);
71 ret = conv2utmpx(nbuf, iov[i].iov_base, iov[i].iov_len);
73 if ((ret = _write(fd, nbuf, ret)) == -1) {
76 free(nbuf);
80 free(nbuf);
/illumos-gate/usr/src/lib/libbc/libc/sys/common/
H A Dgetdents.c63 char *nbuf; local
76 if ((nbuf = (char *)malloc(nbytes)) == NULL) {
80 if ((ret = _syscall(SYS_getdents, fd, nbuf, nbytes)) == -1) {
81 free(nbuf);
87 ndir = (struct n_dirent *)nbuf; /* source directory format */
92 ((char *)ndir + sizeof(struct n_dirent) <= (nbuf + ret))) {
114 free(nbuf);
H A D_stat.c170 cpstatbuf(struct stat *bsdbuf, struct n_stat *nbuf) argument
172 bsdbuf->st_dev = (dev_t) cmpdev(nbuf->st_dev);
173 bsdbuf->st_ino = nbuf->st_ino;
174 bsdbuf->st_mode = (unsigned short) nbuf->st_mode;
175 bsdbuf->st_nlink = (short) nbuf->st_nlink;
177 if ((unsigned long)nbuf->st_uid > 0xffff)
180 bsdbuf->st_uid = (uid_t) nbuf->st_uid;
182 if ((unsigned long)nbuf->st_gid > 0xffff)
185 bsdbuf->st_gid = (gid_t) nbuf->st_gid;
187 bsdbuf->st_rdev = (dev_t) cmpdev(nbuf
[all...]
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dread.c52 char *nbuf; local
58 if ((nbuf = (void *)malloc(size)) == NULL) {
63 if ((ret = _read(fd, nbuf, size)) == -1) {
64 free(nbuf);
68 to_utmp(buf, nbuf, ret);
72 free(nbuf);
80 to_utmp(char *buf, char *nbuf, int len) argument
85 utx = (struct utmpx *)nbuf;
88 while ((char *)utx < (nbuf + len)) {
H A Dreadv.c53 char *nbuf; local
61 if ((nbuf = (void *)malloc(size)) == NULL) {
66 if ((ret = _read(fd, nbuf, size)) == -1) {
67 free(nbuf);
71 to_utmp(iov[i].iov_base, nbuf, ret);
77 free(nbuf);
H A Dwrite.c51 char *nbuf; local
57 if ((nbuf = (void *)malloc(nsize)) == NULL) {
62 (void) memset(nbuf, 0, nsize);
64 ret = conv2utmpx(nbuf, buf, size);
66 if ((ret = _write(fd, nbuf, ret)) == -1) {
67 free(nbuf);
71 free(nbuf);
86 conv2utmpx(char *nbuf, char *buf, int len) argument
91 utx = (struct utmpx *) nbuf;
114 return ((char *) utx - nbuf);
[all...]
H A Dwritev.c52 char *nbuf; local
61 if ((nbuf = (void *)malloc(nsize)) == NULL) {
66 (void) memset(nbuf, 0, nsize);
68 ret = conv2utmpx(nbuf, iov[i].iov_base, iov[i].iov_len);
70 if ((ret = _write(fd, nbuf, ret)) == -1) {
71 free(nbuf);
75 free(nbuf);
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dutil.c66 char *nbuf = sm_pmalloc_x(l); local
71 buf = nbuf;
/illumos-gate/usr/src/lib/libresolv/
H A Dres_query.c233 char nbuf[2*MAXDNAME+2]; local
234 char *longname = nbuf;
253 if (name[n] == '.' && n < sizeof (nbuf) - 1) {
255 memcpy((void *)nbuf, (void *)name, n);
257 bcopy(name, nbuf, n);
259 nbuf[n] = '\0';
263 (void) sprintf(nbuf, "%.*s.%.*s",
H A Dres_debug.c399 static char nbuf[40]; variable
456 (void) sprintf(nbuf, "%d", type);
457 return (nbuf);
477 (void) sprintf(nbuf, "%d", class);
478 return (nbuf);
493 strcpy(nbuf, "0 secs");
494 return (nbuf);
505 p = nbuf;
527 return (nbuf);
/illumos-gate/usr/src/cmd/ypcmd/
H A Dypserv_map.c218 struct netbuf *nbuf; local
222 nbuf = svc_getrpccaller(transp);
223 af = ((struct sockaddr_storage *)nbuf->buf)->ss_family;
227 if (!(check_secure_net_ti(nbuf, ypname))) {
238 port = ntohs(((struct sockaddr_in6 *)nbuf->buf)->sin6_port);
240 port = ntohs(((struct sockaddr_in *)nbuf->buf)->sin_port);
H A Dypset.c251 struct netbuf nbuf; local
266 clnt_control(server, CLGET_SVC_ADDR, (char *)&nbuf);
296 ypbind_info.ypbind_svcaddr = (struct netbuf *)(&nbuf);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ilbadm/
H A Dilbadm_nat.c119 ilb_nat_info_t *nbuf; member in union:__anon254
179 rclib = ilb_show_nat(h, buf.nbuf, &num, &end);
188 print_nat_info(&buf.nbuf[i]);
/illumos-gate/usr/src/uts/common/avs/ns/rdc/
H A Drdc_subr.c60 init_rdc_netbuf(struct netbuf *nbuf) argument
62 nbuf->buf = kmem_zalloc(RDC_MAXADDR, KM_SLEEP);
63 nbuf->maxlen = RDC_MAXADDR;
64 nbuf->len = 0;
72 free_rdc_netbuf(struct netbuf *nbuf) argument
74 if (!(nbuf) || !(nbuf->buf)) {
80 kmem_free(nbuf->buf, nbuf->maxlen);
81 nbuf
[all...]
/illumos-gate/usr/src/uts/common/inet/kifconf/
H A Dkifconf.c163 kifioctl(TIUSER *tiptr, int cmd, struct netbuf *nbuf, char *ifname) argument
175 if (nbuf->len) {
176 if (nbuf->len == sizeof (struct rtentry)) {
183 iocb.ic_len = nbuf->len;
184 iocb.ic_dp = nbuf->buf;
186 if (nbuf->len != sizeof (struct sockaddr_in) &&
187 nbuf->len != sizeof (struct sockaddr_in6)) {
191 bcopy(nbuf->buf, buf, nbuf->len);
/illumos-gate/usr/src/lib/libeti/form/common/
H A Dfield.c54 0, /* nbuf */
142 new_field(int rows, int cols, int frow, int fcol, int nrow, int nbuf) argument
149 /* int nbuf; number of additional buffers */
155 nbuf >= 0 && Alloc(f, FIELD)) {
165 f->nbuf = nbuf;
174 for (i = 0; i <= f->nbuf; ++i)
211 f->nbuf = field->nbuf;
262 f->nbuf
310 field_info(FIELD *f, int *rows, int *cols, int *frow, int *fcol, int *nrow, int *nbuf) argument
[all...]
/illumos-gate/usr/src/cmd/krb5/kadmin/kdcmgr/
H A Dklookup.c57 char nbuf[INET6_ADDRSTRLEN]; local
171 (void) inet_ntop(AF_INET, (void *)ansp, nbuf,
174 (void) printf("%s\n", nbuf);
/illumos-gate/usr/src/lib/smbsrv/libmlrpc/common/
H A Dndr_marshal.c84 ndr_buf_t *nbuf; local
86 if ((nbuf = calloc(1, sizeof (ndr_buf_t))) == NULL)
89 if ((nbuf->nb_heap = ndr_heap_create()) == NULL) {
90 free(nbuf);
94 nbuf->nb_ti = ti;
95 nbuf->nb_magic = NDR_BUF_MAGIC;
96 return (nbuf);
100 ndr_buf_fini(ndr_buf_t *nbuf) argument
102 assert(nbuf->nb_magic == NDR_BUF_MAGIC);
104 nds_destruct(&nbuf
125 ndr_buf_decode(ndr_buf_t *nbuf, unsigned hdr_type, unsigned opnum, const char *data, size_t datalen, void *result) argument
[all...]

Completed in 88 milliseconds

123