httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@locus.apache.org
Subject cvs commit: apache-2.0/src/ap ap_buckets_mmap.c
Date Sat, 21 Oct 2000 12:11:05 GMT
wrowe       00/10/21 05:11:05

  Modified:    src/ap   ap_buckets_mmap.c
  Log:
    Needs review - but better than it was (perhaps)
  
  Revision  Changes    Path
  1.17      +11 -6     apache-2.0/src/ap/ap_buckets_mmap.c
  
  Index: ap_buckets_mmap.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/ap/ap_buckets_mmap.c,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- ap_buckets_mmap.c	2000/10/19 00:04:54	1.16
  +++ ap_buckets_mmap.c	2000/10/21 12:11:04	1.17
  @@ -69,15 +69,12 @@
       if (ok != APR_SUCCESS) {
   	return ok;
       }
  -#else
  -    /* XXX: This has to go away - win32 needs the symbol. Not tonight though.
  -     * plus ok creates a great unused symbol compile time warning to remind us
  -     */
  -    return APR_ENOTIMPL;
  -#endif
       *str = addr;
       *length = s->end - s->start;
       return APR_SUCCESS;
  +#else
  +    return APR_ENOTIMPL;
  +#endif
   }
   
   static void mmap_destroy(void *data)
  @@ -99,6 +96,7 @@
   {
       ap_bucket_mmap *m;
   
  +#ifdef AP_USE_MMAP_FILES
       m = malloc(sizeof(*m));
       if (m == NULL) {
   	return NULL;
  @@ -114,13 +112,20 @@
       b->type     = &ap_mmap_type;
   
       return b;
  +#else
  +    return APR_ENOTIMPL;
  +#endif
   }
   
   
   AP_DECLARE(ap_bucket *) ap_bucket_create_mmap(
   		apr_mmap_t *mm, apr_off_t start, apr_size_t length)
   {
  +#ifdef AP_USE_MMAP_FILES
       ap_bucket_do_create(ap_bucket_make_mmap(b, mm, start, length));
  +#else
  +    return APR_ENOTIMPL;
  +#endif
   }
   
   const ap_bucket_type ap_mmap_type = {
  
  
  

Mime
View raw message