From 9ea7a42b99fe7ca8b367e86a97652bea01cfb4bd Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 4 Aug 1999 23:59:13 +0000 Subject: [PATCH] Add copyright notice and a few comments here and there --- servers/slapd/back-ldbm/back-ldbm.h | 4 ++++ servers/slapd/back-ldbm/external.h | 4 ++++ servers/slapd/back-ldbm/proto-back-ldbm.h | 4 ++++ servers/slapd/daemon.c | 3 +++ servers/slapd/main.c | 4 ++++ servers/slapd/proto-slap.h | 4 ++++ servers/slapd/slap.h | 4 ++++ servers/slapd/tools/ldbmcat.c | 4 ++++ servers/slapd/tools/ldbmtest.c | 4 ++++ servers/slapd/tools/ldif.c | 4 ++++ servers/slapd/tools/ldif2id2children.c | 4 ++++ servers/slapd/tools/ldif2id2entry.c | 4 ++++ servers/slapd/tools/ldif2index.c | 4 ++++ servers/slapd/tools/ldif2ldbm.c | 4 ++++ servers/slapd/tools/mimic.c | 4 ++++ 15 files changed, 59 insertions(+) diff --git a/servers/slapd/back-ldbm/back-ldbm.h b/servers/slapd/back-ldbm/back-ldbm.h index d34161ad10..10cf04ce57 100644 --- a/servers/slapd/back-ldbm/back-ldbm.h +++ b/servers/slapd/back-ldbm/back-ldbm.h @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ /* back-ldbm.h - ldap ldbm back-end header file */ #ifndef _BACK_LDBM_H_ diff --git a/servers/slapd/back-ldbm/external.h b/servers/slapd/back-ldbm/external.h index dc33dda355..ac9ffe710a 100644 --- a/servers/slapd/back-ldbm/external.h +++ b/servers/slapd/back-ldbm/external.h @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #ifndef _LDBM_EXTERNAL_H #define _LDBM_EXTERNAL_H diff --git a/servers/slapd/back-ldbm/proto-back-ldbm.h b/servers/slapd/back-ldbm/proto-back-ldbm.h index ad550ee17d..bac579c371 100644 --- a/servers/slapd/back-ldbm/proto-back-ldbm.h +++ b/servers/slapd/back-ldbm/proto-back-ldbm.h @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #ifndef _PROTO_BACK_LDBM #define _PROTO_BACK_LDBM diff --git a/servers/slapd/daemon.c b/servers/slapd/daemon.c index e937ca9158..2ce6669f2f 100644 --- a/servers/slapd/daemon.c +++ b/servers/slapd/daemon.c @@ -295,6 +295,7 @@ open_listener( #endif #ifdef SO_REUSEADDR + /* enable address reuse */ tmp = 1; if ( setsockopt( l.sl_sd, SOL_SOCKET, SO_REUSEADDR, (char *) &tmp, sizeof(tmp) ) == -1 ) @@ -308,6 +309,7 @@ open_listener( } #endif #ifdef SO_KEEPALIVE + /* enable keep alives */ tmp = 1; if ( setsockopt( l.sl_sd, SOL_SOCKET, SO_KEEPALIVE, (char *) &tmp, sizeof(tmp) ) == -1 ) @@ -321,6 +323,7 @@ open_listener( } #endif #ifdef TCP_NODELAY + /* enable no delay */ tmp = 1; if ( setsockopt( l.sl_sd, IPPROTO_TCP, TCP_NODELAY, (char *)&tmp, sizeof(tmp) ) ) diff --git a/servers/slapd/main.c b/servers/slapd/main.c index 63c631327b..559c1b5dde 100644 --- a/servers/slapd/main.c +++ b/servers/slapd/main.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #include "portable.h" #include diff --git a/servers/slapd/proto-slap.h b/servers/slapd/proto-slap.h index 3aaf6f02f4..7e6562a05a 100644 --- a/servers/slapd/proto-slap.h +++ b/servers/slapd/proto-slap.h @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #ifndef _PROTO_SLAP #define _PROTO_SLAP diff --git a/servers/slapd/slap.h b/servers/slapd/slap.h index 4bea7aca51..56e732d5e4 100644 --- a/servers/slapd/slap.h +++ b/servers/slapd/slap.h @@ -1,4 +1,8 @@ /* slap.h - stand alone ldap server include file */ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #ifndef _SLDAPD_H_ #define _SLDAPD_H_ diff --git a/servers/slapd/tools/ldbmcat.c b/servers/slapd/tools/ldbmcat.c index 6ee8a2850c..7580c2efdc 100644 --- a/servers/slapd/tools/ldbmcat.c +++ b/servers/slapd/tools/ldbmcat.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #include "portable.h" #include diff --git a/servers/slapd/tools/ldbmtest.c b/servers/slapd/tools/ldbmtest.c index ba787e9f7e..a1c0282290 100644 --- a/servers/slapd/tools/ldbmtest.c +++ b/servers/slapd/tools/ldbmtest.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #include "portable.h" #include diff --git a/servers/slapd/tools/ldif.c b/servers/slapd/tools/ldif.c index f157bf021b..17c6187c28 100644 --- a/servers/slapd/tools/ldif.c +++ b/servers/slapd/tools/ldif.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #include "portable.h" #include diff --git a/servers/slapd/tools/ldif2id2children.c b/servers/slapd/tools/ldif2id2children.c index 5f224bb86d..a0cbb7bf94 100644 --- a/servers/slapd/tools/ldif2id2children.c +++ b/servers/slapd/tools/ldif2id2children.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #include "portable.h" #include diff --git a/servers/slapd/tools/ldif2id2entry.c b/servers/slapd/tools/ldif2id2entry.c index 4bb03c9b2b..ba1b600578 100644 --- a/servers/slapd/tools/ldif2id2entry.c +++ b/servers/slapd/tools/ldif2id2entry.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #include "portable.h" #include diff --git a/servers/slapd/tools/ldif2index.c b/servers/slapd/tools/ldif2index.c index f2760549d2..7f43ccb3d2 100644 --- a/servers/slapd/tools/ldif2index.c +++ b/servers/slapd/tools/ldif2index.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #include "portable.h" #include diff --git a/servers/slapd/tools/ldif2ldbm.c b/servers/slapd/tools/ldif2ldbm.c index 00bf438380..60f856891c 100644 --- a/servers/slapd/tools/ldif2ldbm.c +++ b/servers/slapd/tools/ldif2ldbm.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ #include "portable.h" #include diff --git a/servers/slapd/tools/mimic.c b/servers/slapd/tools/mimic.c index c5e4d28492..aa7d1dc41b 100644 --- a/servers/slapd/tools/mimic.c +++ b/servers/slapd/tools/mimic.c @@ -1,3 +1,7 @@ +/* + * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved. + * COPYING RESTRICTIONS APPLY, see COPYRIGHT file + */ /* * Mimic unused interfaces of slapd... * needed for linking. -- 2.39.5