apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/file_io/win32 open.c
Date Tue, 04 Jun 2002 02:41:30 GMT
wrowe       2002/06/03 19:41:30

  Modified:    file_io/win32 open.c
  Log:
    Answer half the questions.
  
  Revision  Changes    Path
  1.103     +7 -5      apr/file_io/win32/open.c
  
  Index: open.c
  ===================================================================
  RCS file: /home/cvs/apr/file_io/win32/open.c,v
  retrieving revision 1.102
  retrieving revision 1.103
  diff -u -r1.102 -r1.103
  --- open.c	3 Jun 2002 19:25:34 -0000	1.102
  +++ open.c	4 Jun 2002 02:41:30 -0000	1.103
  @@ -518,13 +518,15 @@
       (*file)->pool = pool;
       (*file)->filehand = *thefile;
       (*file)->ungetchar = -1; /* no char avail */
  +    (*file)->timeout = -1;
  +    (*file)->flags = flags;
  +    if (flags & APR_APPEND)
  +	(*file)->append = 1;
   
  -    /* XXX... we pcalloc above so these are zeroed.  Is zero really
  -     * the right answer when we passed flags into os_file_put?
  -     * Should we be testing if thefile is a handle to a PIPE and
  -     * set up the mechanics appropriately?
  +    /* XXX... we pcalloc above so all others are zeroed.
  +     * Should we be testing if thefile is a handle to 
  +     * a PIPE and set up the mechanics appropriately?
        *
  -     *  (*file)->flags;
        *  (*file)->pipe;
        */
       return APR_SUCCESS;
  
  
  

Mime
View raw message