#include cleanup
MFC after: 1 week
This commit is contained in:
parent
d7e47db675
commit
28f805cece
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194089
@ -29,9 +29,6 @@
|
||||
#ifndef __NSCD_CACHELIB_H__
|
||||
#define __NSCD_CACHELIB_H__
|
||||
|
||||
#include <sys/queue.h>
|
||||
#include <sys/time.h>
|
||||
#include <stdlib.h>
|
||||
#include "hashtable.h"
|
||||
#include "cacheplcs.h"
|
||||
|
||||
|
@ -28,8 +28,12 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "cacheplcs.h"
|
||||
#include "debug.h"
|
||||
|
||||
|
@ -30,8 +30,6 @@
|
||||
#define __NSCD_CACHEPLCS_H__
|
||||
|
||||
#include <sys/queue.h>
|
||||
#include <sys/time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* common policy definitions */
|
||||
#define CACHELIB_MAX_FREQUENCY 100
|
||||
|
@ -28,11 +28,17 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <math.h>
|
||||
#include <nsswitch.h>
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "debug.h"
|
||||
#include "log.h"
|
||||
|
@ -29,11 +29,6 @@
|
||||
#ifndef __NSCD_CONFIG_H__
|
||||
#define __NSCD_CONFIG_H__
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <pthread.h>
|
||||
#include <nsswitch.h>
|
||||
#include <unistd.h>
|
||||
#include "cachelib.h"
|
||||
|
||||
#define DEFAULT_QUERY_TIMEOUT 8
|
||||
|
@ -29,7 +29,6 @@
|
||||
#ifndef __CACHELIB_HASHTABLE_H__
|
||||
#define __CACHELIB_HASHTABLE_H__
|
||||
|
||||
#include <search.h>
|
||||
#include <string.h>
|
||||
|
||||
#define HASHTABLE_INITIAL_ENTRIES_CAPACITY 8
|
||||
|
@ -28,15 +28,17 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/event.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <nsswitch.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "cachelib.h"
|
||||
#include "config.h"
|
||||
|
@ -28,12 +28,13 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/event.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/un.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <err.h>
|
||||
#include <errno.h>
|
||||
|
@ -28,9 +28,13 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "debug.h"
|
||||
#include "log.h"
|
||||
|
@ -29,8 +29,6 @@
|
||||
#ifndef __NSCD_PROTOCOL_H__
|
||||
#define __NSCD_PROTOCOL_H__
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
/* maximum buffer size to receive - larger buffers are not allowed */
|
||||
#define MAX_BUFFER_SIZE (1 << 20)
|
||||
|
||||
|
@ -29,15 +29,18 @@
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/event.h>
|
||||
#include <sys/socket.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/event.h>
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
#include <nsswitch.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "config.h"
|
||||
#include "debug.h"
|
||||
#include "query.h"
|
||||
|
@ -29,9 +29,6 @@
|
||||
#ifndef __NSCD_QUERY_H__
|
||||
#define __NSCD_QUERY_H__
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
#include "cachelib.h"
|
||||
#include "config.h"
|
||||
#include "protocol.h"
|
||||
|
@ -28,6 +28,8 @@
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
#include "singletons.h"
|
||||
|
||||
struct configuration *s_configuration = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user