httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dr...@locus.apache.org
Subject cvs commit: apache-2.0/src/lib/apr/locks/beos crossproc.c locks.c
Date Wed, 15 Mar 2000 12:11:09 GMT
dreid       00/03/15 04:11:09

  Modified:    src/lib/apr/locks/beos crossproc.c locks.c
  Log:
  Add some missing functions into BeOS locks
  
  Revision  Changes    Path
  1.7       +5 -0      apache-2.0/src/lib/apr/locks/beos/crossproc.c
  
  Index: crossproc.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/locks/beos/crossproc.c,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- crossproc.c	2000/03/14 13:11:31	1.6
  +++ crossproc.c	2000/03/15 12:11:07	1.7
  @@ -122,3 +122,8 @@
       }
       return stat;
   }
  +
  +ap_status_t child_init_lock(struct lock_t **lock, ap_context_t *cont, char *fname)
  +{
  +    return APR_SUCCESS;
  +}
  
  
  
  1.10      +33 -0     apache-2.0/src/lib/apr/locks/beos/locks.c
  
  Index: locks.c
  ===================================================================
  RCS file: /home/cvs/apache-2.0/src/lib/apr/locks/beos/locks.c,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- locks.c	2000/03/10 04:15:38	1.9
  +++ locks.c	2000/03/15 12:11:07	1.10
  @@ -135,4 +135,37 @@
       return APR_SUCCESS;
   }
   
  +ap_status_t ap_child_init_lock(struct lock_t **lock, char *fname, ap_context_t *cont)
  +{
  +    ap_status_t stat;
  +    if ((*lock)->scope != APR_CROSS_PROCESS) {
  +        if ((stat = child_init_lock(lock, cont, fname)) != APR_SUCCESS) {
  +            return stat;
  +        }
  +    }
  +    return APR_SUCCESS;
  +}
  +
  +ap_status_t ap_get_lockdata(struct lock_t *lock, char *key, void *data)
  +{
  +    if (lock != NULL) {
  +        return ap_get_userdata(data, key, lock->cntxt);
  +    }
  +    else {
  +        data = NULL;
  +        return APR_ENOLOCK;
  +    }
  +}
  +
  +ap_status_t ap_set_lockdata(struct lock_t *lock, void *data, char *key,
  +                            ap_status_t (*cleanup) (void *))
  +{
  +    if (lock != NULL) {
  +        return ap_set_userdata(data, key, cleanup, lock->cntxt);
  +    }
  +    else {
  +        data = NULL;
  +        return APR_ENOLOCK;
  +    }
  +}
   
  
  
  

Mime
View raw message