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

12

/illumos-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));
/illumos-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...]
/illumos-gate/usr/src/cmd/audio/include/
H A DAudioUnixfile_inline.h47 int newfd) // new file descriptor
49 fd = newfd;
46 setfd( int newfd) argument
/illumos-gate/usr/src/cmd/smbsrv/smbd/
H A Dsmbd_share_doorsvc.c61 int newfd; local
88 if ((newfd = creat(door_name, 0644)) < 0) {
97 (void) close(newfd);
H A Dsmbd_pipesvc.c179 int err, listen_fd, newfd, snlen; local
213 newfd = accept(listen_fd, (struct sockaddr *)&sa, &snlen);
214 if (newfd < 0) {
230 np = np_new(pl, newfd);
233 (void) close(newfd);
H A Dsmbd_doorsvc.c128 int newfd; local
159 if ((newfd = creat(smbd_door_name, 0644)) < 0) {
168 (void) close(newfd);
/illumos-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);
/illumos-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;
/illumos-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);
/illumos-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) {
/illumos-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
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa_supplicant.c604 int newfd; local
605 if ((newfd = creat(doorname, 0666)) < 0) {
612 (void) close(newfd);
/illumos-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;
/illumos-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);
/illumos-gate/usr/src/lib/libshell/common/edit/
H A Dhistory.c1159 register int newfd,oldfd; local
1167 if((newfd=open(hp->histname,O_BINARY|O_APPEND|O_CREAT|O_RDWR,S_IRUSR|S_IWUSR)) >= 0)
1169 if(fcntl(newfd, F_DUPFD, oldfd) !=oldfd)
1172 close(newfd);
/illumos-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...]
/illumos-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;
/illumos-gate/usr/src/cmd/nscd/
H A Dnscd_frontend.c1184 int newfd; local
1188 if ((newfd = creat(TSOL_NAME_SERVICE_DOOR, 0444)) < 0) {
1199 (void) close(newfd);
1212 int newfd; local
1216 if ((newfd = creat(NAME_SERVICE_DOOR, 0444)) < 0) {
1225 (void) close(newfd);
/illumos-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);
/illumos-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);
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c480 int newfd; local
486 newfd = 0;
527 if ((newfd =
536 if ((elf = elf_begin(newfd,
541 (void) close(newfd);
542 newfd = 0;
547 if (newfd) {
548 (void) close(newfd);
549 newfd = 0;
577 if (newfd) {
[all...]
/illumos-gate/usr/src/cmd/ldapcachemgr/
H A Dcachemgr.c520 int newfd; local
522 if ((newfd = creat(LDAP_CACHE_DOOR, 0444)) < 0) {
528 (void) close(newfd);
/illumos-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...]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsmb_quota.c1128 int newfd, dirfd, afd; local
1192 if ((newfd = creat(file, 0640)) < 0) {
1197 (void) close(newfd);
/illumos-gate/usr/src/boot/lib/libstand/
H A Dnfs.c275 nfs_lookupfh(struct nfs_iodesc *d, const char *name, struct nfs_iodesc *newfd) argument
328 bcopy( repl->fh, &newfd->fh, sizeof(newfd->fh));
329 bcopy(&repl->fa, &newfd->fa, sizeof(newfd->fa));
450 struct nfs_iodesc *newfd; local
506 currfd = malloc(sizeof(*newfd));
514 newfd = NULL;
539 newfd = malloc(sizeof(*newfd));
878 nfs_lookupfh(struct nfs_iodesc *d, const char *name, struct nfs_iodesc *newfd) argument
1092 struct nfs_iodesc *newfd; local
[all...]

Completed in 140 milliseconds

12