/macosx-10.9.5/ruby-104/ruby/missing/ |
H A D | dup2.c | 9 * Check to see if fd2 is already open; if so, close it. 10 * Duplicate fd1 onto fd2; checking to make sure fd2 is a valid fd. 11 * Return fd2 if all went well; return BADEXIT otherwise. 27 dup2(int fd1, int fd2) argument 30 if (fd1 != fd2) { 34 if (fcntl(fd2, F_GETFL) >= 0) 35 close(fd2); 37 close(fd2); 39 if (fcntl(fd1, F_DUPFD, fd2) < [all...] |
/macosx-10.9.5/cxxfilt-11/cxxfilt/libiberty/ |
H A D | fdmatch.c | 23 @deftypefn Extension int fdmatch (int @var{fd1}, int @var{fd2}) 52 int fdmatch (int fd1, int fd2) argument 58 (fstat (fd2, &sbuf2) == 0) &&
|
/macosx-10.9.5/tcl-102/tcl_ext/expect/expect/example/ |
H A D | chesslib++.c | 60 int fd1, fd2; local 76 fd2 = exp_spawnl("chess","chess",(char *)0); 78 if (-1 == exp_expectl(fd2,exp_glob,"Chess\r\n",0,exp_end)) exit; 81 send_move(fd2); 82 read_counter_move(fd2);
|
H A D | chesslib.c | 56 int fd1, fd2; local 72 fd2 = exp_spawnl("chess","chess",(char *)0); 74 if (-1 == exp_expectl(fd2,exp_glob,"Chess\r\n",0,exp_end)) exit; 77 send_move(fd2); 78 read_counter_move(fd2);
|
/macosx-10.9.5/postfix-252/postfix/src/util/ |
H A D | fifo_rdonly_bug.c | 78 int fd2; local 91 if ((fd2 = open(FIFO_PATH, O_WRONLY, 0)) < 0) 93 if (write(fd2, "", 1) < 1) 95 if (close(fd2) < 0)
|
/macosx-10.9.5/bash-92/bash-3.2/lib/sh/ |
H A D | oslib.c | 84 dup2 (fd1, fd2) 85 int fd1, fd2; 94 if (fd2 < 0 || fd2 >= getdtablesize ()) 100 if (fd1 == fd2) 105 (void) close (fd2); 106 r = fcntl (fd1, F_DUPFD, fd2); 115 SET_OPEN_ON_EXEC (fd2);
|
/macosx-10.9.5/gnutar-452/gnutar/lib/ |
H A D | utimens.c | 153 int fd2 = dup (fd); local 155 if (0 <= fd2) 156 close (fd2); 157 errno = (fd2 < 0 && dup_errno == EBADF ? EBADF : ENOSYS);
|
/macosx-10.9.5/bash-92/bash-3.2/ |
H A D | input.c | 297 /* This is the buffered stream analogue of dup2(fd1, fd2). The 298 BUFFERED_STREAM corresponding to fd2 is deallocated, if one exists. 299 BUFFERS[fd1] is copied to BUFFERS[fd2]. This is called by the 302 duplicate_buffered_stream (fd1, fd2) 303 int fd1, fd2; 307 if (fd1 == fd2) 310 m = max (fd1, fd2); 318 (bash_input.location.buffered_fd == fd2); 320 if (buffers[fd2]) 323 if (buffers[fd1] && buffers[fd1]->b_buffer && buffers[fd1]->b_buffer == buffers[fd2] [all...] |
H A D | redir.c | 299 int document_len, fd2; local 330 if ((fd2 = dup (fd)) < 0 || (fp = fdopen (fd2, "w")) == NULL) 332 if (fd2 >= 0) 333 close (fd2); 350 fd2 = errno; 353 return (fd2); 376 int r, fd, fd2; local 405 fd2 = open (filename, O_RDONLY, 0600); 407 if (fd2 < [all...] |
/macosx-10.9.5/Heimdal-323.92.1/appl/kx/ |
H A D | context.c | 91 copy_encrypted (kx_context *kc, int fd1, int fd2) argument 93 return (*kc->copy_encrypted)(kc, fd1, fd2);
|
H A D | krb5.c | 284 * Copy data between `fd1' and `fd2', encrypting in one direction and 289 krb5_copy_encrypted (kx_context *kc, int fd1, int fd2) argument 295 if (fd1 >= FD_SETSIZE || fd2 >= FD_SETSIZE) { 302 FD_SET(fd2, &fdset); 304 ret = select (max(fd1, fd2)+1, &fdset, NULL, NULL, NULL); 310 ret = copy_out (kc, fd1, fd2); 314 if (FD_ISSET(fd2, &fdset)) { 315 ret = copy_in (kc, fd2, fd1);
|
H A D | kx.h | 188 int fd1, int fd2); 226 copy_encrypted (kx_context *kc, int fd1, int fd2);
|
/macosx-10.9.5/ruby-104/ruby/ext/socket/ |
H A D | init.c | 524 int fd2; local 528 fd2 = cloexec_accept(fptr->fd, (struct sockaddr*)sockaddr, len); 529 if (fd2 < 0) { 543 rb_update_max_fd(fd2); 544 make_fd_nonblock(fd2); 545 return rsock_init_sock(rb_obj_alloc(klass), fd2); 564 int fd2; local 574 fd2 = (int)BLOCKING_REGION_FD(accept_blocking, &arg); 575 if (fd2 < 0) { 590 rb_update_max_fd(fd2); [all...] |
/macosx-10.9.5/pyobjc-42/2.5/pyobjc/pyobjc-framework-FSEvents/PyObjCTest/ |
H A D | test_fsevents.py | 101 fd2 = os.open('/dev/null', os.O_WRONLY) 102 os.dup2(fd2, 2) 103 os.close(fd2)
|
/macosx-10.9.5/pyobjc-42/pyobjc/pyobjc-framework-FSEvents/PyObjCTest/ |
H A D | test_fsevents.py | 101 fd2 = os.open('/dev/null', os.O_WRONLY) 102 os.dup2(fd2, 2) 103 os.close(fd2)
|
/macosx-10.9.5/rsync-42/rsync/ |
H A D | receiver.c | 348 int fd1,fd2; local 597 fd2 = do_open(fname, O_WRONLY|O_CREAT, 0600); 598 if (fd2 == -1) { 620 fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS); 625 if (fd2 == -1 && relative_paths && errno == ENOENT 629 fd2 = do_mkstemp(fnametmp, file->mode & INITACCESSPERMS); 631 if (fd2 == -1) { 640 cleanup_set(fnametmp, partialptr, file, fd1, fd2); 645 fcntl(fd2, F_NOCACHE, 1); 654 fcntl(fd2, F_PREALLOCAT [all...] |
/macosx-10.9.5/ksh-20/ksh/src/cmd/ksh93/bltins/ |
H A D | mkservice.c | 155 static int fdnotify(int fd1, int fd2) argument 159 (*covered_fdnotify)(fd1, fd2); 160 if(fd2!=SH_FDCLOSE) 163 service_list[fd2] = service_list[fd1]; 169 file_list[i] = fd2;
|
/macosx-10.9.5/securityd-55199.3/src/ |
H A D | AuthorizationDBPlist.cpp | 134 int fd2 = open (mFileName.c_str(), O_RDONLY); local 137 close(fd2); 144 ffsctl(fd2, FSCTL_SYNC_VOLUME, &flags, sizeof(flags)); 145 close(fd2);
|
/macosx-10.9.5/file_cmds-230/pax/ |
H A D | buf_subs.c | 760 cp_file(ARCHD *arcn, int fd1, int fd2) argument 783 if (fstat(fd2, &sb) == 0) { 797 res = write(fd2, buf, cnt); 799 res = file_write(fd2, buf, cnt, &rem, &isem, sz, fnm); 827 file_flush(fd2, fnm, isem);
|
/macosx-10.9.5/gnutar-452/gnutar/src/ |
H A D | misc.c | 603 int fd2 = dup (fd1); 604 if (0 <= fd2) 605 close (fd2); 600 int fd2 = dup (fd1); local
|
/macosx-10.9.5/Heimdal-323.92.1/lib/krb5/ |
H A D | send_to_kdc.c | 306 rk_socket_t fd2; member in struct:host 365 if (!rk_IS_BAD_SOCKET(host->fd2)) 366 rk_closesocket(host->fd2); 489 krb5_net_write_block(context, &host->fd2, length, sizeof(length), 2); 490 krb5_net_write_block(context, &host->fd2, retdata.data, retdata.length, 2); 493 close(host->fd2); 494 host->fd2 = -1; 501 close(host->fd2); 502 host->fd2 = -1; 857 host->fd2 [all...] |
/macosx-10.9.5/ruby-104/ruby/ext/io/console/ |
H A D | console.c | 629 int fd1, fd2; local 635 fd2 = GetWriteFD(fptr); 636 if (fd2 != -1 && fd1 != fd2) { 638 if (tcflush(fd2, TCOFLUSH)) rb_sys_fail(0);
|
/macosx-10.9.5/system_cmds-597.90.1/at.tproj/ |
H A D | at.c | 223 int fdes, lockdes, fd2; local 296 if ((fd2 = dup(fdes)) <0) 299 if(fchown(fd2, real_uid, real_gid) != 0) 463 if (fchmod(fd2, S_IRUSR | S_IWUSR | S_IXUSR) < 0) 466 close(fd2);
|
/macosx-10.9.5/system_cmds-597.90.1/system_cmds-597.1.1/at.tproj/ |
H A D | at.c | 223 int fdes, lockdes, fd2; local 296 if ((fd2 = dup(fdes)) <0) 299 if(fchown(fd2, real_uid, real_gid) != 0) 463 if (fchmod(fd2, S_IRUSR | S_IWUSR | S_IXUSR) < 0) 466 close(fd2);
|
/macosx-10.9.5/zsh-60/zsh/Src/ |
H A D | exec.c | 2045 * fd2 must be open, and is `consumed' by this function. Note that 2046 * fd1 == fd2 is possible, and indicates that fd1 was really closed. 2047 * We effectively do `fd2 = movefd(fd2)' at the beginning of this 2058 addfd(int forked, int *save, struct multio **mfds, int fd1, int fd2, int rflag, argument 2065 fd1 = movefd(fd2); 2067 zerr("cannot moved fd %d: %e", fd2, errno); 2083 if (fd1 == fd2) 2102 redup(fd2, fd1); 2120 fdN = movefd(fd2); [all...] |