[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
tinc/lib avl_tree.c,1.1.2.15,1.1.2.16 dropin.c,1.1.2.14,1.1.2.15 dropin.h,1.1.2.11,1.1.2.12 fake-getaddrinfo.c,1.1.2.3,1.1.2.4 fake-getaddrinfo.h,1.1.2.2,1.1.2.3 fake-getnameinfo.c,1.1.2.6,1.1.2.7 fake-getnameinfo.h,1.1.2.2,1.1.2.3 ipv6.h,1.1.2.3,1.1.2.4 list.c,1.1.2.15,1.1.2.16 pidfile.c,1.1.1.1.4.3,1.1.1.1.4.4 utils.c,1.1.1.1.4.14,1.1.1.1.4.15 utils.h,1.1.1.1.4.15,1.1.1.1.4.16
- To: tinc-cvs@nl.linux.org
- Subject: tinc/lib avl_tree.c,1.1.2.15,1.1.2.16 dropin.c,1.1.2.14,1.1.2.15 dropin.h,1.1.2.11,1.1.2.12 fake-getaddrinfo.c,1.1.2.3,1.1.2.4 fake-getaddrinfo.h,1.1.2.2,1.1.2.3 fake-getnameinfo.c,1.1.2.6,1.1.2.7 fake-getnameinfo.h,1.1.2.2,1.1.2.3 ipv6.h,1.1.2.3,1.1.2.4 list.c,1.1.2.15,1.1.2.16 pidfile.c,1.1.1.1.4.3,1.1.1.1.4.4 utils.c,1.1.1.1.4.14,1.1.1.1.4.15 utils.h,1.1.1.1.4.15,1.1.1.1.4.16
- From: Guus Sliepen <guus@nl.linux.org>
- Date: Thu, 17 Jul 2003 17:06:28 +0200
- List-archive: <http://mail.nl.linux.org/tinc-cvs/>
- List-help: <mailto:listar@nl.linux.org?Subject=help>
- List-owner: <mailto:riel@nl.linux.org>
- List-post: <mailto:tinc-cvs@nl.linux.org>
- List-software: Listar version 1.0.0
- List-subscribe: <mailto:tinc-cvs-request@nl.linux.org?Subject=subscribe>
- List-unsubscribe: <mailto:tinc-cvs-request@nl.linux.org?Subject=unsubscribe>
- Original-Recipient: rfc822;tinc-cvs-archive@nl.linux.org
- Reply-to: tinc@nl.linux.org
- Sender: tinc-cvs-bounce@nl.linux.org
Update of /home/CVS/tinc/lib
In directory humbolt:/tmp/cvs-serv5751/lib
Modified Files:
Tag: CABAL
avl_tree.c dropin.c dropin.h fake-getaddrinfo.c
fake-getaddrinfo.h fake-getnameinfo.c fake-getnameinfo.h
ipv6.h list.c pidfile.c utils.c utils.h
Log Message:
Big header file cleanup: everything that has to do with standard system
libraries is moved to system.h.
Index: avl_tree.c
===================================================================
RCS file: /home/CVS/tinc/lib/avl_tree.c,v
retrieving revision 1.1.2.15
retrieving revision 1.1.2.16
diff -u -r1.1.2.15 -r1.1.2.16
--- avl_tree.c 2003/07/12 17:48:38 1.1.2.15
+++ avl_tree.c 2003/07/17 15:06:25 1.1.2.16
@@ -32,11 +32,10 @@
$Id$
*/
-#include <stdio.h>
-#include <stdlib.h>
-#include <xalloc.h>
+#include "system.h"
#include "avl_tree.h"
+#include "xalloc.h"
#ifdef AVL_COUNT
#define AVL_NODE_COUNT(n) ((n) ? (n)->count : 0)
Index: dropin.c
===================================================================
RCS file: /home/CVS/tinc/lib/dropin.c,v
retrieving revision 1.1.2.14
retrieving revision 1.1.2.15
diff -u -r1.1.2.14 -r1.1.2.15
--- dropin.c 2003/07/12 17:48:38 1.1.2.14
+++ dropin.c 2003/07/17 15:06:25 1.1.2.15
@@ -20,20 +20,7 @@
$Id$
*/
-#include "config.h"
-
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <stdarg.h>
-
-#include <xalloc.h>
-
-#include <system.h>
-#include <errno.h>
+#include "system.h"
#ifndef HAVE_DAEMON
/*
Index: dropin.h
===================================================================
RCS file: /home/CVS/tinc/lib/dropin.h,v
retrieving revision 1.1.2.11
retrieving revision 1.1.2.12
diff -u -r1.1.2.11 -r1.1.2.12
--- dropin.h 2003/07/12 17:48:38 1.1.2.11
+++ dropin.h 2003/07/17 15:06:25 1.1.2.12
@@ -36,8 +36,6 @@
#endif
#ifndef HAVE_GETNAMEINFO
-#include <sys/types.h>
-#include <sys/socket.h>
extern int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
size_t hostlen, char *serv, size_t servlen, int flags);
#endif
Index: fake-getaddrinfo.c
===================================================================
RCS file: /home/CVS/tinc/lib/Attic/fake-getaddrinfo.c,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -r1.1.2.3 -r1.1.2.4
--- fake-getaddrinfo.c 2003/07/11 16:12:59 1.1.2.3
+++ fake-getaddrinfo.c 2003/07/17 15:06:25 1.1.2.4
@@ -9,17 +9,7 @@
* that ai_family is AF_INET. Don't use it for another purpose.
*/
-#include "config.h"
-
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <string.h>
-
-#include <system.h>
+#include "system.h"
#include "fake-getaddrinfo.h"
Index: fake-getaddrinfo.h
===================================================================
RCS file: /home/CVS/tinc/lib/Attic/fake-getaddrinfo.h,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -r1.1.2.2 -r1.1.2.3
--- fake-getaddrinfo.h 2003/07/06 23:16:27 1.1.2.2
+++ fake-getaddrinfo.h 2003/07/17 15:06:25 1.1.2.3
@@ -3,12 +3,6 @@
#ifndef _FAKE_GETADDRINFO_H
#define _FAKE_GETADDRINFO_H
-#include "config.h"
-
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netdb.h>
-
#include "fake-gai-errnos.h"
#ifndef AI_PASSIVE
Index: fake-getnameinfo.c
===================================================================
RCS file: /home/CVS/tinc/lib/Attic/fake-getnameinfo.c,v
retrieving revision 1.1.2.6
retrieving revision 1.1.2.7
diff -u -r1.1.2.6 -r1.1.2.7
--- fake-getnameinfo.c 2003/01/17 00:43:57 1.1.2.6
+++ fake-getnameinfo.c 2003/07/17 15:06:25 1.1.2.7
@@ -9,17 +9,7 @@
* that ai_family is AF_INET. Don't use it for another purpose.
*/
-#include "config.h"
-
-#include <stdio.h>
-#include <sys/types.h>
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <string.h>
-
-#include <system.h>
+#include "system.h"
#include "fake-getnameinfo.h"
#include "fake-getaddrinfo.h"
Index: fake-getnameinfo.h
===================================================================
RCS file: /home/CVS/tinc/lib/Attic/fake-getnameinfo.h,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -r1.1.2.2 -r1.1.2.3
--- fake-getnameinfo.h 2003/07/12 17:41:45 1.1.2.2
+++ fake-getnameinfo.h 2003/07/17 15:06:25 1.1.2.3
@@ -3,11 +3,6 @@
#ifndef _FAKE_GETNAMEINFO_H
#define _FAKE_GETNAMEINFO_H
-#include "config.h"
-
-#include <sys/socket.h>
-#include <netdb.h>
-
#ifndef HAVE_GETNAMEINFO
int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
size_t hostlen, char *serv, size_t servlen, int flags);
Index: ipv6.h
===================================================================
RCS file: /home/CVS/tinc/lib/Attic/ipv6.h,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -r1.1.2.3 -r1.1.2.4
--- ipv6.h 2003/07/11 16:12:59 1.1.2.3
+++ ipv6.h 2003/07/17 15:06:25 1.1.2.4
@@ -23,13 +23,6 @@
#ifndef __TINC_IPV6_H__
#define __TINC_IPV6_H__
-#include "config.h"
-
-#include <netinet/in.h>
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
#ifndef AF_INET6
#define AF_INET6 10
#endif
Index: list.c
===================================================================
RCS file: /home/CVS/tinc/lib/list.c,v
retrieving revision 1.1.2.15
retrieving revision 1.1.2.16
diff -u -r1.1.2.15 -r1.1.2.16
--- list.c 2003/07/12 17:48:38 1.1.2.15
+++ list.c 2003/07/17 15:06:25 1.1.2.16
@@ -20,14 +20,10 @@
$Id$
*/
-#include "config.h"
-
-#include <stdlib.h>
-
-#include <xalloc.h>
-#include <system.h>
+#include "system.h"
#include "list.h"
+#include "xalloc.h"
/* (De)constructors */
Index: pidfile.c
===================================================================
RCS file: /home/CVS/tinc/lib/pidfile.c,v
retrieving revision 1.1.1.1.4.3
retrieving revision 1.1.1.1.4.4
diff -u -r1.1.1.1.4.3 -r1.1.1.1.4.4
--- pidfile.c 2002/09/10 09:40:20 1.1.1.1.4.3
+++ pidfile.c 2003/07/17 15:06:25 1.1.1.1.4.4
@@ -25,16 +25,7 @@
* First version (v0.2) released
*/
-#include <stdio.h>
-#include <unistd.h>
-#include <sys/stat.h>
-#include <sys/file.h>
-#include <string.h>
-#include <errno.h>
-#include <signal.h>
-#include <sys/types.h>
-#include <signal.h>
-#include <fcntl.h>
+#include "system.h"
/* read_pid
*
Index: utils.c
===================================================================
RCS file: /home/CVS/tinc/lib/utils.c,v
retrieving revision 1.1.1.1.4.14
retrieving revision 1.1.1.1.4.15
diff -u -r1.1.1.1.4.14 -r1.1.1.1.4.15
--- utils.c 2003/07/12 17:48:38 1.1.1.1.4.14
+++ utils.c 2003/07/17 15:06:25 1.1.1.1.4.15
@@ -18,15 +18,10 @@
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#include "config.h"
+#include "system.h"
-#include <sys/types.h>
-#include <ctype.h>
-#include <string.h>
-
-#include <utils.h>
-#include <syslog.h>
-#include <xalloc.h>
+#include "../src/logger.h"
+#include "utils.h"
#ifdef ENABLE_TRACING
volatile int (cp_line[]) = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
@@ -64,7 +59,7 @@
#ifdef ENABLE_TRACING
void cp_trace()
{
- syslog(LOG_DEBUG, "Checkpoint trace: %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d...",
+ logger(LOG_DEBUG, "Checkpoint trace: %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d <- %s:%d...",
cp_file[(cp_index + 15) % 16], cp_line[(cp_index + 15) % 16],
cp_file[(cp_index + 14) % 16], cp_line[(cp_index + 14) % 16],
cp_file[(cp_index + 13) % 16], cp_line[(cp_index + 13) % 16],
Index: utils.h
===================================================================
RCS file: /home/CVS/tinc/lib/utils.h,v
retrieving revision 1.1.1.1.4.15
retrieving revision 1.1.1.1.4.16
diff -u -r1.1.1.1.4.15 -r1.1.1.1.4.16
--- utils.h 2003/07/12 17:48:38 1.1.1.1.4.15
+++ utils.h 2003/07/17 15:06:25 1.1.1.1.4.16
@@ -21,14 +21,6 @@
#ifndef __TINC_UTILS_H__
#define __TINC_UTILS_H__
-#include <ctype.h>
-
-#include "fake-getaddrinfo.h"
-#include "fake-getnameinfo.h"
-#include "ipv6.h"
-
-#define min(a,b) (((a)<(b))?(a):(b))
-
#ifdef ENABLE_TRACING
extern volatile int cp_line[];
extern volatile char *cp_file[];
--
Tinc-cvs: CVS changelog list for the tinc VPN daemon
Archive: http://mail.nl.linux.org/tinc-cvs/
Tinc site: http://tinc.nl.linux.org/
- Prev by Date:
tinc configure.in,1.13.2.66,1.13.2.67 system.h,1.1.4.5,1.1.4.6
- Next by Date:
tinc/src conf.c,1.9.4.65,1.9.4.66 conf.h,1.6.4.38,1.6.4.39 connection.c,1.1.2.39,1.1.2.40 connection.h,1.1.2.33,1.1.2.34 edge.c,1.1.2.21,1.1.2.22 edge.h,1.1.2.13,1.1.2.14 event.c,1.1.4.8,1.1.4.9 event.h,1.1.4.6,1.1.4.7 graph.c,1.1.2.24,1.1.2.25 logger.c,1.1.2.3,1.1.2.4 logger.h,1.1.2.3,1.1.2.4 meta.c,1.1.2.35,1.1.2.36 net.c,1.35.4.190,1.35.4.191 net.h,1.9.4.63,1.9.4.64 net_packet.c,1.1.2.33,1.1.2.34 net_setup.c,1.1.2.34,1.1.2.35 net_socket.c,1.1.2.26,1.1.2.27 netutl.c,1.12.4.46,1.12.4.47 netutl.h,1.2.4.15,1.2.4.16 node.c,1.1.2.22,1.1.2.23 node.h,1.1.2.24,1.1.2.25 process.c,1.1.2.54,1.1.2.55 process.h,1.1.2.15,1.1.2.16 protocol.c,1.28.4.140,1.28.4.141 protocol.h,1.5.4.38,1.5.4.39 protocol_auth.c,1.1.4.23,1.1.4.24 protocol_edge.c,1.1.4.17,1.1.4.18 protocol_key.c,1.1.4.18,1.1.4.19 protocol_misc.c,1.1.4.10,1.1.4.11 protocol_subnet.c,1.1.4.11,1.1.4.12 route.c,1.1.2.58,1.1.2.59 subnet.c,1.1.2.46,1.1.2.47 tincd.c,1.10.4.72,1.10.4.73
- Prev by thread:
tinc configure.in,1.13.2.66,1.13.2.67 system.h,1.1.4.5,1.1.4.6
- Next by thread:
tinc/src conf.c,1.9.4.65,1.9.4.66 conf.h,1.6.4.38,1.6.4.39 connection.c,1.1.2.39,1.1.2.40 connection.h,1.1.2.33,1.1.2.34 edge.c,1.1.2.21,1.1.2.22 edge.h,1.1.2.13,1.1.2.14 event.c,1.1.4.8,1.1.4.9 event.h,1.1.4.6,1.1.4.7 graph.c,1.1.2.24,1.1.2.25 logger.c,1.1.2.3,1.1.2.4 logger.h,1.1.2.3,1.1.2.4 meta.c,1.1.2.35,1.1.2.36 net.c,1.35.4.190,1.35.4.191 net.h,1.9.4.63,1.9.4.64 net_packet.c,1.1.2.33,1.1.2.34 net_setup.c,1.1.2.34,1.1.2.35 net_socket.c,1.1.2.26,1.1.2.27 netutl.c,1.12.4.46,1.12.4.47 netutl.h,1.2.4.15,1.2.4.16 node.c,1.1.2.22,1.1.2.23 node.h,1.1.2.24,1.1.2.25 process.c,1.1.2.54,1.1.2.55 process.h,1.1.2.15,1.1.2.16 protocol.c,1.28.4.140,1.28.4.141 protocol.h,1.5.4.38,1.5.4.39 protocol_auth.c,1.1.4.23,1.1.4.24 protocol_edge.c,1.1.4.17,1.1.4.18 protocol_key.c,1.1.4.18,1.1.4.19 protocol_misc.c,1.1.4.10,1.1.4.11 protocol_subnet.c,1.1.4.11,1.1.4.12 route.c,1.1.2.58,1.1.2.59 subnet.c,1.1.2.46,1.1.2.47 tincd.c,1.10.4.72,1.10.4.73
- Index(es):