diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-12-22 20:10:10 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-12-22 20:10:10 +0000 |
commit | a334319f6530564d22e775935d9c91663623a1b4 (patch) | |
tree | b5877475619e4c938e98757d518bb1e9cbead751 /nscd/nscd.h | |
parent | 0ecb606cb6cf65de1d9fc8a919bceb4be476c602 (diff) | |
download | glibc-a334319f6530564d22e775935d9c91663623a1b4.tar.gz |
(CFLAGS-tst-align.c): Add -mpreferred-stack-boundary=4.
Diffstat (limited to 'nscd/nscd.h')
-rw-r--r-- | nscd/nscd.h | 34 |
1 files changed, 7 insertions, 27 deletions
diff --git a/nscd/nscd.h b/nscd/nscd.h index 5c2ff3a95b..d5dc613d22 100644 --- a/nscd/nscd.h +++ b/nscd/nscd.h @@ -1,4 +1,4 @@ -/* Copyright (c) 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006 +/* Copyright (c) 1998, 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Thorsten Kukuk <kukuk@suse.de>, 1998. @@ -58,18 +58,16 @@ typedef enum struct database_dyn { pthread_rwlock_t lock; - pthread_mutex_t prunelock; int enabled; int check_file; int persistent; int shared; - int propagate; - const char filename[12]; + const char *filename; const char *db_filename; time_t file_mtime; size_t suggested_module; - size_t max_db_size; + int secure; unsigned long int postimeout; /* In seconds. */ unsigned long int negtimeout; /* In seconds. */ @@ -96,17 +94,6 @@ struct database_dyn /* Path used when not using persistent storage. */ #define _PATH_NSCD_XYZ_DB_TMP "/var/run/nscd/dbXXXXXX" -/* Maximum alignment requirement we will encounter. */ -#define BLOCK_ALIGN_LOG 3 -#define BLOCK_ALIGN (1 << BLOCK_ALIGN_LOG) -#define BLOCK_ALIGN_M1 (BLOCK_ALIGN - 1) - -/* Default value for the maximum size of the database files. */ -#define DEFAULT_MAX_DB_SIZE (32 * 1024 * 1024) - -/* Number of bytes of data we initially reserve for each hash table bucket. */ -#define DEFAULT_DATASIZE_PER_BUCKET 1024 - /* Global variables. */ extern struct database_dyn dbs[lastdb]; @@ -123,6 +110,9 @@ extern int nthreads; /* Maximum number of threads to use. */ extern int max_nthreads; +/* Tables for which we cache data with uid. */ +extern int secure_in_use; /* Is one of the above 1? */ + /* User name to run server processes as. */ extern const char *server_user; @@ -185,7 +175,7 @@ extern struct datahead *cache_search (request_type, void *key, size_t len, extern int cache_add (int type, const void *key, size_t len, struct datahead *packet, bool first, struct database_dyn *table, uid_t owner); -extern void prune_cache (struct database_dyn *table, time_t now, int fd); +extern void prune_cache (struct database_dyn *table, time_t now); /* pwdcache.c */ extern void addpwbyname (struct database_dyn *db, int fd, request_header *req, @@ -246,14 +236,4 @@ extern void gc (struct database_dyn *db); /* nscd_setup_thread.c */ extern void setup_thread (struct database_dyn *db); - -/* Special version of TEMP_FAILURE_RETRY for functions returning error - values. */ -#define TEMP_FAILURE_RETRY_VAL(expression) \ - (__extension__ \ - ({ long int __result; \ - do __result = (long int) (expression); \ - while (__result == EINTR); \ - __result; })) - #endif /* nscd.h */ |