Searched refs:tmpfd (Results 1 - 12 of 12) sorted by relevance

/osnet-11/usr/src/lib/libkmf/libkmf/common/
H A Dclient.c666 int fd = -1, tmpfd = -1; local
690 tmpfd = mkstemp(tempfn);
692 if (tmpfd == -1) {
699 ret = download_file(uri, proxy, proxy_port, maxsecs, tmpfd);
700 (void) close(tmpfd);
740 int fd = -1, tmpfd = -1; local
765 tmpfd = mkstemp(tempfn);
767 if (tmpfd == -1) {
774 ret = download_file(uri, proxy, proxy_port, maxsecs, tmpfd);
775 (void) close(tmpfd);
[all...]
H A Dpolicy.c1041 int prefix_len, tmpfd; local
1085 tmpfd = mkstemp(tmpfilename);
1087 if (tmpfd == -1) {
1091 if ((tmpfile = fdopen(tmpfd, "w")) == NULL) {
1092 (void) close(tmpfd);
1110 if (fchmod(tmpfd, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) == -1) {
1111 (void) close(tmpfd);
/osnet-11/usr/src/lib/nsswitch/pynss/common/
H A Dnssbase.py198 self.tmpfd = None # Temp fd
217 self.tmpfd = None # Temp fd
510 self.traceit('in open_tmp: tmpfd= ', self.tmpfd)
511 if self.tmpfd == None:
515 self.tmpfd = open(tmppath, 'w+')
516 os.fchmod(self.tmpfd.fileno(), self.PERM)
518 os.fchown(self.tmpfd.fileno(), self.OWNER, self.GROUP)
522 self.tmpfd = None
524 return self.tmpfd
[all...]
/osnet-11/usr/src/lib/udapl/udapl_tavor/tavor/
H A Ddapl_tavor_hca.c180 int tmpfd; local
249 tmpfd = fcntl(fd, F_DUPFD, 256);
250 if (tmpfd < 0) {
255 fd = tmpfd;
477 int tmpfd; local
503 tmpfd = fcntl(fd, F_DUPFD, 256);
504 if (tmpfd < 0) {
510 fd = tmpfd;
/osnet-11/usr/src/lib/libcmdutils/common/
H A Dprocess_xattrs.c83 int tmpfd = -1; local
111 if ((tmpfd = dup(indfd)) == -1) {
116 if ((dirp = fdopendir(tmpfd)) == NULL) {
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/lib/Pod/Perldoc/
H A DToChecker.pm23 my( $self, $file, $tmp, $tmpfd ) = @_;
/osnet-11/usr/src/lib/libshell/common/sh/
H A Dsubshell.c83 short tmpfd; /* saved tmp file descriptor */ member in struct:subshell
118 if((sp->tmpfd = fd = fcntl(1,F_DUPFD,10)) >= 0)
556 sp->tmpfd = -1;
645 if(sp->tmpfd>=0)
648 if (fcntl(sp->tmpfd,F_DUPFD,1) != 1)
650 sh_close(sp->tmpfd);
/osnet-11/usr/src/cmd/sendmail/aux/
H A Dvacation.c782 int i, pipefd[2], tmpfd; local
835 tmpfd = -1;
836 tmpfd = mkstemp(tmpf_name);
837 if (tmpfd == -1) {
841 tmpf = fdopen(tmpfd, "w");
/osnet-11/usr/src/lib/passwdutil/
H A Dfiles_attr.c1168 int tmpfd; local
1186 if ((tmpfd = open(HISTEMP, O_WRONLY|O_CREAT|O_TRUNC, HISTMODE)) < 0) {
1189 (void) fchown(tmpfd, (uid_t)0, (gid_t)0);
1197 if ((dst = fdopen(tmpfd, "wF")) == NULL) {
/osnet-11/usr/src/lib/libdevalloc/common/
H A Dlibdevalloc.c1491 int rc = 0, lockfd = 0, tmpfd = 0; local
1502 if ((tmpfd = open(tmpdefpath, O_RDWR|O_CREAT, DA_DBMODE)) == -1) {
1506 (void) fchown(tmpfd, DA_UID, DA_GID);
1507 if ((tmpfp = fdopen(tmpfd, "r+")) == NULL) {
1508 (void) close(tmpfd);
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/
H A Dpp_sys.c2131 int tmpfd; local
2133 if ((tmpfd = PerlLIO_open(name, O_RDWR)) < 0)
2136 if (my_chsize(tmpfd, len) < 0)
2138 PerlLIO_close(tmpfd);
/osnet-11/usr/src/lib/libzonecfg/common/
H A Dlibzonecfg.c1661 int tmpfd, err, valid; local
1669 tmpfd = mkstemp(tmpfile);
1670 if (tmpfd == -1) {
1674 (void) close(tmpfd);

Completed in 141 milliseconds