/macosx-10.10/system_cmds-643.1.1/vipw.tproj/ |
H A D | vipw.c | 90 int pfd, tfd; local 109 tfd = pw_tmp(); 110 copyfile(pfd, tfd); 111 (void)close(tfd);
|
/macosx-10.10/adv_cmds-158/gencat/ |
H A D | gencat.c | 142 int fd, tfd; local 157 if ((tfd = mkstemp(tmpname)) < 0) 162 MCWriteConst(tfd, lang, orConsts); 169 if (lseek(tfd, (off_t)0, L_SET) < 0) 173 while ((tlen = read(tfd, tbuf, BUFSIZ)) > 0) { 187 if (lseek(tfd, (off_t)0, L_SET) < 0) 192 while ((len = read(tfd, buf, BUFSIZ)) > 0) { 198 close(tfd);
|
/macosx-10.10/man-16/man/gencat/ |
H A D | gencat.c | 189 int fd, tfd; local 207 if ((tfd = open(tmpname, O_RDWR|O_CREAT, 0666)) < 0) { 214 MCWriteConst(tfd, lang, orConsts); 223 if (lseek(tfd, 0L, L_SET) < 0) { 229 while ((tlen = read(tfd, tbuf, BUFSIZ)) > 0) { 243 if (lseek(tfd, 0L, L_SET) < 0) { 252 while ((len = read(tfd, buf, BUFSIZ)) > 0) { 259 close(tfd);
|
/macosx-10.10/sudo-73/src/ |
H A D | sudo_edit.c | 75 int rc, i, j, ac, ofd, tfd, nargc, rval, nfiles, tmplen; local 153 tfd = mkstemps(tf[j].tfile, suff ? strlen(suff) : 0); 155 if (tfd == -1) { 161 if ((nwritten = write(tfd, buf, nread)) != nread) { 178 (void) touch(tfd, NULL, &tf[j].omtim); 180 rc = fstat(tfd, &sb); 186 close(tfd); 219 if ((tfd = open(tf[i].tfile, O_RDONLY, 0644)) != -1) { 221 rc = fstat(tfd, &sb); 233 if (tfd ! [all...] |
H A D | visudo.c | 280 int tfd; /* sudoers temp file descriptor */ local 305 tfd = open(sp->tpath, O_WRONLY | O_CREAT | O_TRUNC, 0600); 306 if (tfd < 0) 313 if (write(tfd, buf, nread) != nread) 319 if (write(tfd, buf, 1) != 1) 323 (void) close(tfd);
|
/macosx-10.10/system_cmds-643.1.1/chpass.tproj/ |
H A D | pw_copy.c | 72 pw_copy(ffd, tfd, pw) 73 int ffd, tfd; 82 if (!(to = fdopen(tfd, "w")))
|
H A D | chpass.c | 120 int ch, pfd, tfd; local 124 int ch, tfd; local 339 if ((tfd = mkstemp(tfn)) == -1) 350 if ((tfd = pw_tmp(-1)) == -1) { 413 if ((tfd = pw_tmp(-1)) == -1) { 417 if (pw_copy(pfd, tfd, pw, old_pw) == -1) {
|
/macosx-10.10/remote_cmds-47/rpc_yppasswdd.tproj/ |
H A D | yppasswdd_mkpw.c | 102 _pw_copy(ffd, tfd, pw) 103 int ffd, tfd; 112 if (!(to = fdopen(tfd, "w"))) 201 int pfd, tfd; local 304 tfd = pw_lock(0); 305 if (tfd < 0) 308 _pw_copy(pfd, tfd, &pw);
|
H A D | passwd.c | 299 pw_copy(ffd, tfd, pw, old_pw) 300 int ffd, tfd; 309 if (!(to = fdopen(tfd, "w")))
|
/macosx-10.10/file-46/file/src/ |
H A D | compress.c | 239 int tfd, te; local 245 tfd = open(ptr, O_RDWR|O_TRUNC|O_EXCL|O_CREAT, 0600); 251 tfd = mkstemp(buf); 256 if (tfd == -1) { 262 if (swrite(tfd, startbuf, nbytes) != (ssize_t)nbytes) 266 if (swrite(tfd, buf, (size_t)r) != r) 286 if ((fd = dup2(tfd, fd)) == -1) { 290 (void)close(tfd);
|
/macosx-10.10/lsof-53/lsof/scripts/ |
H A D | list_fields.perl | 74 $tfd = $1; 77 $fd = $tfd;
|
/macosx-10.10/lsof-53/lsof/tests/ |
H A D | LTsock.c | 535 int tfd; /* temporary file descriptor */ local 537 if ((tfd = FdPara[LT_CLNT].fd) >= 0) { 538 (void) shutdown(tfd, 2); 539 (void) close(tfd); 552 int tfd; /* temporary file descriptor */ local 562 if ((tfd = FdPara[ti].fd) >= 0) { 563 (void) shutdown(tfd, 2); 564 (void) close(tfd);
|
/macosx-10.10/bless-103/ |
H A D | firmwaresyncd.c | 703 int ret, tfd; local 729 tfd = open(timepath, O_WRONLY|O_CREAT|O_EXCL, S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH); 730 if (tfd < 0) { 739 ret = futimes(tfd, times); 749 ret = close(tfd);
|
/macosx-10.10/system_cmds-643.1.1/pwd_mkdb.tproj/ |
H A D | pwd_mkdb.c | 115 int ch, tfd, makeold, secureonly, flags, checkonly; local 270 if ((tfd = open(buf, 273 if ((oldfp = fdopen(tfd, "w")) == NULL)
|
/macosx-10.10/dtrace-147/tools/ctfconvert/ |
H A D | output.c | 1219 int tfd = -1; local 1227 if ((tfd = open(newname, O_RDWR | O_CREAT | O_TRUNC, st.st_mode)) < 0) 1229 if ((telf = elf_begin(tfd, ELF_C_WRITE, NULL)) == NULL) 1245 if (write(tfd, data, len) != len) { 1259 if (write(tfd, data, len) != len) { 1277 (void) close(tfd);
|
/macosx-10.10/vim-55/src/ |
H A D | dosinst.c | 1130 FILE *fd, *tfd; local 1176 if ((tfd = fopen("diff.exe", "r")) != NULL) 1179 fclose(tfd);
|
/macosx-10.10/emacs-93/emacs/leim/CXTERM-DIC/ |
H A D | ARRAY30.tit | 849 tfd\040 �� # ---> 5^4-3- 3
|