about summary refs log tree commit diff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-08 18:03:21 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-08 18:03:21 +0000
commit67a0b49db3561f23c9a504c74b31cc2ff4689b5d (patch)
treee144bdf65bc70dcc03256b67e5a766a23487fa7d /nscd
parent081fc592fa6e8cb8f262ad9dee917c658a415b42 (diff)
downloadglibc-67a0b49db3561f23c9a504c74b31cc2ff4689b5d.tar.gz
glibc-67a0b49db3561f23c9a504c74b31cc2ff4689b5d.tar.xz
glibc-67a0b49db3561f23c9a504c74b31cc2ff4689b5d.zip
* sysdeps/generic/nscd_setup_thread.c: New file.
	* sysdeps/unix/sysv/linux/nscd_setup_thread.c: New file.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/nscd-client.h6
-rw-r--r--nscd/nscd_helper.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/nscd/nscd-client.h b/nscd/nscd-client.h
index 02a57787b5..7cdeba5485 100644
--- a/nscd/nscd-client.h
+++ b/nscd/nscd-client.h
@@ -179,8 +179,8 @@ struct database_pers_head
 {
   int version;
   int header_size;
-  int gc_cycle;
-  int nscd_certainly_running;
+  volatile int gc_cycle;
+  volatile int nscd_certainly_running;
   volatile time_t timestamp;
 
   size_t module;
@@ -233,7 +233,7 @@ extern int __nscd_open_socket (const char *key, size_t keylen,
 extern struct mapped_database *__nscd_get_map_ref (request_type type,
 						   const char *name,
 						   struct locked_map_ptr *mapptr,
-						   int *gc_cyclep);
+						   volatile int *gc_cyclep);
 
 /* Unmap database.  */
 extern void __nscd_unmap (struct mapped_database *mapped);
diff --git a/nscd/nscd_helper.c b/nscd/nscd_helper.c
index 01c4c81848..74983b9762 100644
--- a/nscd/nscd_helper.c
+++ b/nscd/nscd_helper.c
@@ -212,7 +212,7 @@ get_mapping (request_type type, const char *key,
 
 struct mapped_database *
 __nscd_get_map_ref (request_type type, const char *name,
-		    struct locked_map_ptr *mapptr, int *gc_cyclep)
+		    struct locked_map_ptr *mapptr, volatile int *gc_cyclep)
 {
   struct mapped_database *cur = mapptr->mapped;
   if (cur == NO_MAPPING)