Searched refs:newfd (Results 1 - 25 of 34) sorted by relevance

12

/opensolaris-onvv-gate/usr/src/lib/libast/common/sfio/
H A Dsfsetfd.c30 static int _sfdup(int fd, int newfd) argument
32 static int _sfdup(fd,newfd)
34 int newfd;
40 while((dupfd = sysfcntlf(fd,F_DUPFD,newfd)) < 0 && errno == EINTR)
45 if((dupfd = sysdupf(fd)) < 0 || dupfd >= newfd)
49 newfd = _sfdup(fd,newfd);
54 return newfd;
59 int sfsetfd(Sfio_t* f, int newfd) argument
61 int sfsetfd(f,newfd)
[all...]
/opensolaris-onvv-gate/usr/src/cmd/audio/include/
H A DAudioUnixfile_inline.h47 int newfd) // new file descriptor
49 fd = newfd;
46 setfd( int newfd) argument
/opensolaris-onvv-gate/usr/src/lib/libc/port/sys/
H A Drename.c34 renameat(int oldfd, const char *oldname, int newfd, const char *newname) argument
36 return (syscall(SYS_renameat, oldfd, oldname, newfd, newname));
/opensolaris-onvv-gate/usr/src/lib/libdhcpsvc/modules/binfiles/
H A Ddhcptab.c342 int fd, newfd; local
384 newfd = open(newpath, O_WRONLY|O_CREAT|O_EXCL, 0644);
385 if (newfd == -1) {
390 retval = copy_range(fd, 0, newfd, 0, st.st_size);
400 if (write_rec(newfd, rec, st.st_size) == -1) {
412 (void) close(newfd);
420 (void) close(newfd);
430 int fd, newfd; local
503 newfd = open(newpath, O_WRONLY|O_CREAT|O_EXCL, 0644);
504 if (newfd
550 int fd, newfd; local
[all...]
/opensolaris-onvv-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c476 int newfd; local
482 newfd = 0;
523 if ((newfd =
532 if ((elf = elf_begin(newfd,
537 (void) close(newfd);
538 newfd = 0;
543 if (newfd) {
544 (void) close(newfd);
545 newfd = 0;
571 if (newfd) {
[all...]
/opensolaris-onvv-gate/usr/src/lib/libdhcpsvc/modules/files0/
H A Ddhcptab.c285 int newfd; local
305 newfd = open(newpath, O_CREAT|O_EXCL|O_WRONLY, 0644);
306 if (newfd == -1) {
372 retval = copy_range(fileno(fp), 0, newfd, 0, recoff);
376 retval = copy_range(fileno(fp), recnext, newfd, recoff,
385 retval = write_rec(newfd, newp, recoff + st.st_size - recnext);
397 (void) close(newfd);
405 (void) close(newfd);
H A Ddhcp_network.c390 int newfd; local
409 newfd = open(newpath, O_CREAT|O_TRUNC|O_WRONLY, 0644);
410 if (newfd == -1) {
476 retval = copy_range(fileno(fp), 0, newfd, 0, recoff);
480 retval = copy_range(fileno(fp), recnext, newfd, recoff,
489 retval = write_rec(newfd, newp, recoff + st.st_size - recnext);
501 (void) close(newfd);
509 (void) close(newfd);
/opensolaris-onvv-gate/usr/src/lib/libdhcpsvc/modules/files/
H A Ddhcptab.c320 int newfd; local
340 newfd = open(newpath, O_CREAT|O_EXCL|O_WRONLY, 0644);
341 if (newfd == -1) {
431 retval = copy_range(fileno(fp), 0, newfd, 0, recoff);
435 retval = copy_range(fileno(fp), recnext, newfd, recoff,
449 if (fstat(newfd, &st) == -1) {
454 retval = write_rec(newfd, newp, st.st_size);
466 (void) close(newfd);
474 (void) close(newfd);
H A Ddhcp_network.c460 int fd, newfd; local
480 newfd = open(newpath, O_CREAT|O_TRUNC|O_WRONLY, 0644);
481 if (newfd == -1) {
569 retval = copy_range(fd, 0, newfd, 0, recoff);
573 retval = copy_range(fd, recnext, newfd, recoff, st.st_size - recnext);
586 retval = write_rec(newfd, newp, recoff + st.st_size - recnext);
598 (void) close(newfd);
606 (void) close(newfd);
/opensolaris-onvv-gate/usr/src/cmd/picl/plugins/common/piclevent/
H A Dpiclevent.c196 int newfd; local
197 if ((newfd = creat(PICLEVENT_DOOR, 0444)) < 0) {
202 (void) close(newfd);
/opensolaris-onvv-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_share_doorsvc.c60 int newfd; local
82 if ((newfd = creat(SMB_SHARE_DNAME, 0644)) < 0) {
91 (void) close(newfd);
/opensolaris-onvv-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...]
/opensolaris-onvv-gate/usr/src/cmd/cvcd/sparc/sun4u/starfire/
H A Dcvcd.c584 int newfd; local
613 newfd = t_open(TCP_DEV, O_RDWR|O_NDELAY, NULL);
614 if (newfd == -1) {
620 if (t_accept(fd, newfd, tcall) < 0) {
623 t_close(newfd);
652 if (ioctl(newfd, TI_GETPEERNAME, &netbuf) < 0) {
655 t_close(newfd);
677 t_close(newfd);
681 pfd[0].fd = newfd;
/opensolaris-onvv-gate/usr/src/cmd/modload/
H A Dplcysubr.c258 int newfd; local
300 newfd = fileno(new);
304 (void) fchown(newfd, buf.st_uid, buf.st_gid);
305 (void) fchmod(newfd, buf.st_mode);
307 (void) fchown(newfd, 0, 3); /* root:sys */
308 (void) fchmod(newfd, 0644);
412 (void) fsync(newfd);
/opensolaris-onvv-gate/usr/src/lib/auditd_plugins/binfile/
H A Dbinfile.c513 int newfd = 0; local
527 newfd = open(newname,
529 if (newfd < 0) {
583 error = write_file_token(newfd, oldname);
586 (void) close(newfd);
599 current_dir->dl_fd = newfd;
/opensolaris-onvv-gate/usr/src/stand/lib/sock/
H A Dsock_test.c711 int listen_fd, newfd; local
756 if ((newfd = st_local_accept(listen_fd, (struct sockaddr *)&addr,
768 (void) st_local_socket_close(newfd);
771 while ((ret = st_local_recv(newfd, buf, buf_len, 0)) > 0) {
774 if ((snd_cnt = st_local_send(newfd, buf, ret, 0)) < ret) {
781 (void) st_local_socket_close(newfd);
/opensolaris-onvv-gate/usr/src/lib/libpkg/common/
H A Dkeystore.c1149 int newfd; local
1167 if ((newfd = open(newpath, O_RDWR|O_NONBLOCK, 0)) != -1) {
1168 if (fstat(newfd, &buf) != -1) {
1175 if (!wait_restore(newfd, keystore_file,
1180 (void) close(newfd);
1189 (void) close(newfd);
1197 (void) close(newfd);
1207 wait_restore(int newfd, char *keystore_file, argument
1215 if (file_lock(newfd, F_WRLCK, 1) == -1) {
1222 if (fstat(newfd,
[all...]
/opensolaris-onvv-gate/usr/src/lib/abi/apptrace/common/
H A Dapptrace.c237 int fd, newfd, targetfd, lowerlimit; local
280 if ((newfd = fcntl(fd, F_DUPFD, targetfd)) != -1)
284 if (newfd == -1) {
293 if (fcntl(newfd, F_SETFD, FD_CLOEXEC) == -1) {
301 if ((fp = fdopen(newfd, "wF")) != NULL) {
/opensolaris-onvv-gate/usr/src/cmd/nscd/
H A Dnscd_frontend.c1180 int newfd; local
1184 if ((newfd = creat(TSOL_NAME_SERVICE_DOOR, 0444)) < 0) {
1195 (void) close(newfd);
1208 int newfd; local
1212 if ((newfd = creat(NAME_SERVICE_DOOR, 0444)) < 0) {
1221 (void) close(newfd);
/opensolaris-onvv-gate/usr/src/uts/common/avs/ns/rdc/
H A Drdc_bitmap.c1015 nsc_fd_t *newfd = NULL; local
1053 newfd = nsc_open(newbitmap, NSC_RDCHR_ID|NSC_FILE|NSC_RDWR, 0, 0, 0);
1054 if (newfd == NULL) {
1055 newfd = nsc_open(newbitmap,
1057 if (newfd == NULL) {
1066 sts = nsc_reserve(newfd, 0);
1072 sts = nsc_partsize(newfd, &vol_size);
1073 nsc_release(newfd);
1091 krdc->bitmapfd = newfd; /* swap under lock */
1110 /* Forget newfd no
[all...]
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/
H A Dmain.c2247 int newfd; local
2254 newfd = accept(sock, (struct sockaddr *)&peer, &peerlen);
2255 if (newfd < 0) {
2260 retval = ipadm_ndpd_read(newfd, &ndpd_msg, sizeof (ndpd_msg));
2264 retval = ndpd_process_cmd(newfd, &ndpd_msg);
2269 (void) close(newfd);
2276 ndpd_process_cmd(int newfd, ipadm_ndpd_msg_t *msg) argument
2282 (void) ndpd_send_error(newfd, EPERM);
2309 (void) ndpd_send_error(newfd, err);
/opensolaris-onvv-gate/usr/src/cmd/sendmail/aux/
H A Dmail.local.c534 int newfd; local
704 if ((newfd = dup(bfd)) >= 0) {
706 bfd = newfd;
708 if ((newfd = dup(hfd)) >= 0) {
710 hfd = newfd;
/opensolaris-onvv-gate/usr/src/cmd/dcs/sparc/sun4u/
H A Ddcs.c196 int newfd; local
376 newfd = rdr_connect_srv(dcs_rcv.fd);
378 if ((newfd == RDR_ERROR) || (newfd == RDR_NET_ERR)) {
385 if (ses_start(newfd) == -1) {
387 (void) rdr_close(newfd);
/opensolaris-onvv-gate/usr/src/lib/brand/solaris10/s10_brand/common/
H A Ds10_deleted.c294 int oldfd, const char *oldname, int newfd, const char *newname)
297 oldfd, oldname, newfd, newname));
293 s10_renameat(sysret_t *rval, int oldfd, const char *oldname, int newfd, const char *newname) argument
/opensolaris-onvv-gate/usr/src/cmd/picl/picld/
H A Dpicld.c1045 int newfd; local
1049 newfd = creat(PICLD_DOOR, 0444);
1052 if (newfd < 0)
1054 (void) close(newfd);

Completed in 215 milliseconds

12