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

/macosx-10.10/OpenSSH-189/openssh/openbsd-compat/
H A Dxmmap.c64 int tmpfd; local
68 tmpfd = mkstemp(tmpname);
70 if (tmpfd == -1)
74 if (ftruncate(tmpfd, size) != 0)
77 tmpfd, (off_t)0);
78 close(tmpfd);
/macosx-10.10/OpenSSH-189/openssh/
H A Dauth-krb5.c234 int tmpfd, ret, oerrno; local
247 int tmpfd;
255 tmpfd = mkstemp(ccname + strlen("FILE:"));
258 if (tmpfd == -1) {
263 if (fchmod(tmpfd,S_IRUSR | S_IWUSR) == -1) {
266 close(tmpfd);
269 close(tmpfd);
/macosx-10.10/apr-32/apr/apr/shmem/unix/
H A Dshm.c101 int tmpfd; local
128 status = apr_os_file_get(&tmpfd, file);
134 MAP_SHARED, tmpfd, 0);
240 status = apr_os_file_get(&tmpfd, file);
255 MAP_SHARED, tmpfd, 0);
264 tmpfd = shm_open(filename, O_RDWR | O_CREAT | O_EXCL, 0644);
265 if (tmpfd == -1) {
269 status = apr_os_file_put(&file, &tmpfd,
273 close(tmpfd);
284 MAP_SHARED, tmpfd,
465 int tmpfd; local
[all...]
/macosx-10.10/curl-83.1.2/curl/tests/libtest/
H A Dlib537.c104 int *tmpfd; local
369 tmpfd = realloc(fd, sizeof(*fd) * (size_t)(num_open.rlim_max));
370 if (tmpfd) {
371 fd = tmpfd;
372 tmpfd = NULL;
/macosx-10.10/diskdev_cmds-576/edquota.tproj/
H A Dedquota.c146 register int quotatype, tmpfd; local
205 tmpfd = mkstemp(tmpfil);
206 fchown(tmpfd, getuid(), getgid());
213 if (writetimes(protoprivs, tmpfd, quotatype) == 0)
219 close(tmpfd);
220 tmpfd = open(tmpfil, O_RDWR, 0);
221 if (tmpfd < 0) {
226 if (readtimes(protoprivs, tmpfd))
242 if (writeprivs(curprivs, tmpfd, *argv, quotatype) == 0) {
250 close(tmpfd);
[all...]
/macosx-10.10/ntp-92/lib/isc/win32/
H A Dfile.c149 int tmpfd; local
166 tmpfd = mkstemp(buf);
167 if (tmpfd > 0)
168 _close(tmpfd);
/macosx-10.10/bind9-45.101/bind9/lib/isc/win32/
H A Dfile.c151 int tmpfd; local
168 tmpfd = mkstemp(buf);
169 if (tmpfd > 0)
170 _close(tmpfd);
/macosx-10.10/xnu-2782.1.97/tools/tests/kqueue_tests/
H A Dkqueue_file_tests.c212 int res = -1, tmpfd, tmpfd2; local
229 tmpfd = creat((char*)args[0], 0755);
230 ftruncate(tmpfd, 1); /* So that mmap() doesn't fool us */
231 if (tmpfd >= 0) {
232 close(tmpfd);
240 tmpfd = open((char*)args[0], O_RDONLY);
241 if (tmpfd >= 0) {
242 res = read(tmpfd, &c, 1);
245 close(tmpfd);
248 tmpfd
[all...]
/macosx-10.10/ksh-23/ksh/src/cmd/ksh93/sh/
H A Dsubshell.c89 short tmpfd; /* saved tmp file descriptor */ member in struct:subshell
125 if((sp->tmpfd = fd = fcntl(1,F_DUPFD,10)) >= 0)
602 sp->tmpfd = -1;
693 if(sp->tmpfd>=0)
696 if (fcntl(sp->tmpfd,F_DUPFD,1) != 1)
698 sh_close(sp->tmpfd);
/macosx-10.10/OpenLDAP-499.27/OpenLDAP/clients/tools/
H A Dldapsearch.c1870 int tmpfd; local
1877 tmpfd = mkstemp( tmpfname );
1879 if ( tmpfd < 0 ) {
1884 if (( tmpfp = fdopen( tmpfd, "w")) == NULL ) {
/macosx-10.10/ruby-106/ruby/
H A Dfile.c4110 int tmpfd; local
4112 if ((tmpfd = rb_cloexec_open(StringValueCStr(path), 0, 0)) < 0) {
4115 rb_update_max_fd(tmpfd);
4116 if (chsize(tmpfd, pos) < 0) {
4117 close(tmpfd);
4120 close(tmpfd);

Completed in 168 milliseconds