Searched defs:newfd (Results 26 - 31 of 31) sorted by relevance

12

/illumos-gate/usr/src/lib/libshell/common/sh/
H A Dio.c1505 register int fd, savefd, newfd; local
1506 for(newfd=fd=0; fd < shp->topfd; fd++)
1509 filemap[newfd++] = filemap[fd];
1516 shp->topfd = newfd;
1952 int newfd = integralof(data); local
1955 if(newfd<0)
1958 (*fdnotify)(sffileno(sp),flag==SF_CLOSING?-1:newfd);
2014 else if(flag==SF_CLOSING || (flag==SF_SETFD && newfd<=2))
2287 int newfd, arg; local
2292 newfd
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_main.c86 static unsigned int process_cmd(int newfd, union mi_commands *mpi);
2270 int newfd; local
2283 newfd = accept(sock, (struct sockaddr *)&peer, &peerlen);
2284 if (newfd < 0) {
2298 (void) close(newfd);
2309 (void) close(newfd);
2317 (void) close(newfd);
2332 (void) close(newfd);
2338 (void) close(newfd);
2346 len = read(newfd,
2396 process_cmd(int newfd, union mi_commands *mpi) argument
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dmain.c2216 int newfd; local
2223 newfd = accept(sock, (struct sockaddr *)&peer, &peerlen);
2224 if (newfd < 0) {
2229 retval = ipadm_ndpd_read(newfd, &ndpd_msg, sizeof (ndpd_msg));
2233 retval = ndpd_process_cmd(newfd, &ndpd_msg);
2238 (void) close(newfd);
2245 ndpd_process_cmd(int newfd, ipadm_ndpd_msg_t *msg) argument
2251 (void) ndpd_send_error(newfd, EPERM);
2278 (void) ndpd_send_error(newfd, err);
/illumos-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Drdr_messages.c364 int newfd; local
367 if ((newfd = socket(family, SOCK_STREAM, 0)) == NULL) {
371 return (newfd);
494 int newfd; local
501 if ((newfd = accept(fd, (struct sockaddr *)&faddr, &faddr_len)) == -1) {
507 (void) close(newfd);
511 return (newfd);
/illumos-gate/usr/src/cmd/modload/
H A Ddrvsubr.c357 int newfd; local
415 if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) {
427 if ((newfp = fdopen(newfd, "w")) == NULL) {
431 (void) close(newfd);
1411 int newfd; local
1433 if ((newfd = open(newfile, O_WRONLY | O_CREAT | O_EXCL, 0644)) < 0) {
1445 if ((newfp = fdopen(newfd, "w")) == NULL) {
1449 (void) close(newfd);
/illumos-gate/usr/src/cmd/boot/bootadm/
H A Dbootadm.c3483 int fd = -1, newfd = -1, ret, i; local
3540 newfd = open(tempname, O_RDONLY);
3541 if (newfd == -1) {
3548 ret = pread64(newfd, saved_desc, sizeof (saved_desc),
3587 (void) close(newfd);
3588 newfd = -1;
3636 if (newfd != -1)
3637 (void) close(newfd);

Completed in 87 milliseconds

12