You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rb...@locus.apache.org on 2000/12/07 06:01:14 UTC

cvs commit: apr-util/src/buckets ap_buckets_file.c

rbb         00/12/06 21:01:14

  Modified:    src/buckets ap_buckets_file.c
  Log:
  Port apr-util to the newest MMAP API
  
  Revision  Changes    Path
  1.13      +2 -1      apr-util/src/buckets/ap_buckets_file.c
  
  Index: ap_buckets_file.c
  ===================================================================
  RCS file: /home/cvs/apr-util/src/buckets/ap_buckets_file.c,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ap_buckets_file.c	2000/12/06 04:42:34	1.12
  +++ ap_buckets_file.c	2000/12/07 05:01:14	1.13
  @@ -102,7 +102,8 @@
           /* we need to protect ourselves in case we die while we've got the
            * file mmapped */
           apr_status_t status;
  -        if ((status = apr_mmap_create(&mm, f, a->offset, e->length, NULL)) != APR_SUCCESS) {
  +        if ((status = apr_mmap_create(&mm, f, a->offset, e->length, 
  +                                      APR_MMAP_READ, NULL)) != APR_SUCCESS) {
               mm = NULL;
           }
       }