apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bnicho...@apache.org
Subject cvs commit: apr/file_io/unix filedup.c
Date Thu, 20 Mar 2003 22:04:01 GMT
bnicholes    2003/03/20 14:04:01

  Modified:    file_io/unix filedup.c
  Log:
  dup2() is supported on NetWare
  
  Revision  Changes    Path
  1.61      +0 -8      apr/file_io/unix/filedup.c
  
  Index: filedup.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/unix/filedup.c,v
  retrieving revision 1.60
  retrieving revision 1.61
  diff -u -r1.60 -r1.61
  --- filedup.c	19 Mar 2003 10:17:26 -0000	1.60
  +++ filedup.c	20 Mar 2003 22:04:01 -0000	1.61
  @@ -69,15 +69,7 @@
               /* We can't dup2 unless we have a valid new_file */
               return APR_EINVAL;
           }
  -#ifdef NETWARE
  -        /* Apparently Netware doesn't support dup2... instead
  -         * close() then dup()
  -         */
  -        close((*new_file)->filedes);
  -        rv = ((*new_file)->filedes = dup(old_file->filedes)); 
  -#else
           rv = dup2(old_file->filedes, (*new_file)->filedes);
  -#endif
       } else {
           rv = dup(old_file->filedes);
       }
  
  
  

Mime
View raw message