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

/netbsd-6-1-5-RELEASE/external/bsd/am-utils/dist/conf/mtab/
H A Dmtab_file.c255 int tmpfd; local
273 tmpfd = mkstemp(tmpname);
274 fchmod(tmpfd, 0644);
277 tmpfd = open(tmpname, O_RDWR | O_CREAT | O_TRUNC, 0644);
279 if (tmpfd < 0) {
287 if (close(tmpfd) < 0)
H A Dmtab_linux.c337 int tmpfd; local
363 tmpfd = mkstemp(tmpname);
364 fchmod(tmpfd, 0644);
367 tmpfd = open(tmpname, O_RDWR | O_CREAT | O_TRUNC, 0644);
369 if (tmpfd < 0) {
377 if (close(tmpfd) < 0)
H A Dmtab_mach3.c320 int tmpfd; local
337 tmpfd = mkstemp(tmpname);
338 fchmod(tmpfd, 0644);
341 tmpfd = open(tmpname, O_RDWR | O_CREAT | O_TRUNC, 0644);
343 if (tmpfd < 0) {
351 if (close(tmpfd) < 0)
/netbsd-6-1-5-RELEASE/sys/ufs/chfs/
H A Dchfs_build.c120 struct chfs_dirent *fd, *tmpfd; local
143 TAILQ_FOREACH_SAFE(fd, &vc->scan_dirents, fds, tmpfd) {
222 struct chfs_dirent *fd, *tmpfd; local
341 TAILQ_FOREACH_SAFE(fd, &unlinked, fds, tmpfd) {
362 TAILQ_FOREACH_SAFE(fd, &vc->scan_dirents, fds, tmpfd) {
H A Dchfs_nodeops.c123 struct chfs_dirent *fd, *tmpfd; local
130 TAILQ_FOREACH_SAFE(fd, &parent->dents, fds, tmpfd) {
H A Dchfs_scan.c267 struct chfs_dirent *fd, *tmpfd; local
279 TAILQ_FOREACH_SAFE(fd, &pvc->scan_dirents, fds, tmpfd) {
H A Dchfs_write.c473 struct chfs_dirent *fd, *tmpfd; local
487 TAILQ_FOREACH_SAFE(fd, &parent->dents, fds, tmpfd) {
H A Dchfs_gc.c289 struct chfs_dirent *fd, *tmpfd; local
322 TAILQ_FOREACH_SAFE(fd, &ip->dents, fds, tmpfd) {
/netbsd-6-1-5-RELEASE/external/bsd/ntp/dist/lib/isc/win32/
H A Dfile.c151 int tmpfd; local
168 tmpfd = mkstemp(buf);
169 if (tmpfd > 0)
170 _close(tmpfd);
/netbsd-6-1-5-RELEASE/usr.bin/mkdep/
H A Dmkdep.c106 int tmpfd; local
128 if ((tmpfd = mkstemp(tmpfilename)) < 0)
136 (void)dup2(tmpfd, STDOUT_FILENO);
137 (void)close(tmpfd);
156 return tmpfd;
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/lib/isc/win32/
H A Dfile.c156 int tmpfd; local
173 tmpfd = mkstemp(buf, ISC_TRUE);
174 if (tmpfd > 0)
175 _close(tmpfd);
/netbsd-6-1-5-RELEASE/usr.sbin/edquota/
H A Dedquota.c1236 int tmpfd, const char *tmppath)
1253 if (writeprivs(curprivs, tmpfd, name, idtype,
1260 if (readprivs(curprivs, tmpfd, dflag) < 0)
1272 int tmpfd, i; local
1274 tmpfd = mkstemp(tmppath);
1275 fchown(tmpfd, getuid(), getgid());
1278 editone(fs, idtype, names[i], tmpfd, tmppath);
1281 close(tmpfd);
1235 editone(const char *fs, int idtype, const char *name, int tmpfd, const char *tmppath) argument
/netbsd-6-1-5-RELEASE/external/bsd/openldap/dist/clients/tools/
H A Dldapsearch.c1630 int tmpfd; local
1637 tmpfd = mkstemp( tmpfname );
1639 if ( tmpfd < 0 ) {
1644 if (( tmpfp = fdopen( tmpfd, "w")) == NULL ) {

Completed in 159 milliseconds