From acc75108f01a8c7f090deb6a61f6923246f9ff02 Mon Sep 17 00:00:00 2001 From: piaip Date: Wed, 26 Mar 2008 05:21:22 +0000 Subject: - (internal) drop deprecated old OS support. focus on modern Linux/FreeBSD now. git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@4020 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- include/proto.h | 29 ++--------------------------- 1 file changed, 2 insertions(+), 27 deletions(-) (limited to 'include/proto.h') diff --git a/include/proto.h b/include/proto.h index dd893cda..a69288f4 100644 --- a/include/proto.h +++ b/include/proto.h @@ -47,8 +47,6 @@ void BlogMain(int); #endif /* args */ -void initsetproctitle(int argc, char **argv, char **envp); -void setproctitle(const char* format, ...) GCC_CHECK_FORMAT(1,2); /* assess */ int inc_goodpost(const char *, int num); @@ -476,22 +474,8 @@ char *completeutmp_getname(int where); /* osdep */ int cpuload(char *str); -double swapused(int *total, int *used); - -#ifdef NEED_FLOCK - #define LOCK_EX 1 - #define LOCK_UN 2 - - int flock(int, int); -#endif - -#ifdef NEED_UNSETENV - void unsetenv(char *name); -#endif - -#ifdef NEED_STRCASESTR - char *strcasestr(const char *big, const char *little); -#endif +void initsetproctitle(int argc, char **argv, char **envp); +void setproctitle(const char* format, ...) GCC_CHECK_FORMAT(1,2); #ifdef NEED_STRLCPY size_t strlcpy(char *dst, const char *src, size_t size); @@ -501,15 +485,6 @@ double swapused(int *total, int *used); size_t strlcat(char *dst, const char *src, size_t size); #endif -#ifdef NEED_SCANDIR - int scandir(const char *dirname, struct dirent ***namelist, int (*select)(struct dirent *), int (*compar)(const void *, const void *)); - int alphasort(const void *d1, const void *d2); -#endif - -#ifdef NEED_INET_PTON - int inet_pton(int af, const char *src, void *dst); -#endif - /* othello */ int othello_main(void); -- cgit v1.2.3