You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by dr...@apache.org on 2002/01/11 13:40:20 UTC

cvs commit: apr/shmem/beos shm.c

dreid       02/01/11 04:40:20

  Modified:    shmem/beos shm.c
  Log:
  Few changes that actually get us building well enough for apache.  More to
  follow.
  
  Revision  Changes    Path
  1.3       +8 -4      apr/shmem/beos/shm.c
  
  Index: shm.c
  ===================================================================
  RCS file: /home/cvs/apr/shmem/beos/shm.c,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- shm.c	11 Jan 2002 12:16:40 -0000	1.2
  +++ shm.c	11 Jan 2002 12:40:20 -0000	1.3
  @@ -65,12 +65,15 @@
       apr_pool_t *p;
       void *memblock;
       void *ptr;
  +    apr_size_t reqsize;
       apr_size_t avail;
       area_id aid;
   };
   
  -APR_DECLARE(apr_status_t) apr_shm_init(apr_shm_t **m, apr_size_t reqsize, const char *file, 
  -                                       apr_pool_t *p)
  +APR_DECLARE(apr_status_t) apr_shm_create(apr_shm_t **m, 
  +                                         apr_size_t reqsize, 
  +                                         const char *file, 
  +                                         apr_pool_t *p)
   {
       apr_size_t pagesize;
       area_id newid;
  @@ -91,6 +94,7 @@
       (*m)->memblock = addr;
       (*m)->ptr = (void*)addr;
       (*m)->avail = pagesize; /* record how big an area we actually created... */
  +    (*m)->reqsize = reqsize;
   
       return APR_SUCCESS;
   }
  @@ -118,11 +122,11 @@
   
   APR_DECLARE(void *) apr_shm_baseaddr_get(const apr_shm_t *m)
   {
  -    return APR_ENOTIMPL;
  +    return m->memblock;
   }
   
   APR_DECLARE(apr_size_t) apr_shm_size_get(const apr_shm_t *m)
   {
  -    return APR_ENOTIMPL;
  +    return m->reqsize;
   }