Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nadezhda Ivanova
OpenLDAP
Commits
450b02ca
Commit
450b02ca
authored
May 21, 1999
by
Kurt Zeilenga
Browse files
s/WIN32/HAVE_WINSOCK/
remove old Version.c
parent
60a068ae
Changes
9
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-bdb2/Version.c
deleted
100644 → 0
View file @
60a068ae
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of Michigan at Ann Arbor. The name of the University
* may not be used to endorse or promote products derived from this
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
*/
static
char
Versionstr
[]
=
" bdb2 backend %VERSION% (%WHEN%)
\n\t
%WHOANDWHERE%
\n
"
;
servers/slapd/back-ldbm/Version.c
deleted
100644 → 0
View file @
60a068ae
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of Michigan at Ann Arbor. The name of the University
* may not be used to endorse or promote products derived from this
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
*/
static
char
Versionstr
[]
=
" ldbm backend %VERSION% (%WHEN%)
\n\t
%WHOANDWHERE%
\n
"
;
servers/slapd/back-ldbm/modify.c
View file @
450b02ca
...
...
@@ -6,6 +6,7 @@
#include
<ac/string.h>
#include
<ac/socket.h>
#include
<ac/time.h>
#include
"slap.h"
#include
"back-ldbm.h"
...
...
servers/slapd/back-passwd/Version.c
deleted
100644 → 0
View file @
60a068ae
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of Michigan at Ann Arbor. The name of the University
* may not be used to endorse or promote products derived from this
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
*/
static
char
Versionstr
[]
=
" passwd backend %VERSION% (%WHEN%)
\n\t
%WHOANDWHERE%
\n
"
;
servers/slapd/back-perl/Version.c
deleted
100644 → 0
View file @
60a068ae
/*
* Copyright 1999, John C. Quillan, All rights reserved.
*
* Redistribution and use in source and binary forms are permitted only
* as authorized by the OpenLDAP Public License. A copy of this
* license is available at http://www.OpenLDAP.org/license.html or
* in file LICENSE in the top-level directory of the distribution.
*/
static
char
Versionstr
[]
=
" perl backend %VERSION% (%WHEN%)
\n\t
%WHOANDWHERE%
\n
"
;
servers/slapd/back-shell/Version.c
deleted
100644 → 0
View file @
60a068ae
/*
* Copyright (c) 1995 Regents of the University of Michigan.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
* provided that this notice is preserved and that due credit is given
* to the University of Michigan at Ann Arbor. The name of the University
* may not be used to endorse or promote products derived from this
* software without specific prior written permission. This software
* is provided ``as is'' without express or implied warranty.
*/
static
char
Versionstr
[]
=
" shell backend %VERSION% (%WHEN%)
\n\t
%WHOANDWHERE%
\n
"
;
servers/slapd/back-tcl/Version.c
deleted
100644 → 0
View file @
60a068ae
/* $Id: Version.c,v 1.2 1999/02/18 01:18:39 bcollins Exp $
*
* Copyright 1999, Ben Collins <bcollins@debian.org>, All rights reserved.
*
* Redistribution and use in source and binary forms are permitted only
* as authorized by the OpenLDAP Public License. A copy of this
* license is available at http://www.OpenLDAP.org/license.html or
* in file LICENSE in the top-level directory of the distribution.
*/
static
char
Versionstr
[]
=
" tcl backend %VERSION% (%WHEN%)
\n\t
%WHOANDWHERE%
\n
"
;
servers/slapd/daemon.c
View file @
450b02ca
...
...
@@ -30,15 +30,19 @@ void hit_socket();
char
*
WSAGetLastErrorString
();
#define WAKE_LISTENER \
do {\
if( wake ) {\
ldap_pvt_thread_kill( listener_tid, LDAP_SIGUSR1 );\
hit_socket();\
}
}\
} while(0)
#else
#define WAKE_LISTENER \
do {\
if( wake ) {\
ldap_pvt_thread_kill( listener_tid, LDAP_SIGUSR1 );\
}
}\
} while(0)
#endif
static
int
daemon_initialized
=
0
;
...
...
@@ -183,16 +187,16 @@ set_socket( struct sockaddr_in *addr )
int
tmp
;
if
(
(
tcps
=
socket
(
AF_INET
,
SOCK_STREAM
,
0
))
==
-
1
)
{
#ifndef
WIN32
#ifndef
HAVE_WINSOCK
int
err
=
errno
;
Debug
(
LDAP_DEBUG_ANY
,
"daemon: socket() failed errno %d (%s)
\n
"
,
err
,
err
>
-
1
&&
err
<
sys_nerr
?
sys_errlist
[
err
]
:
"unknown"
,
0
);
#endif
#ifdef WIN32
#else
Debug
(
LDAP_DEBUG_ANY
,
"daemon: socket() failed errno %d (%s)
\n
"
,
WSAGetLastError
(),
"daemon: socket() failed errno %d (%s)
\n
"
,
WSAGetLastError
(),
WSAGetLastErrorString
(),
0
);
#endif
exit
(
1
);
...
...
@@ -621,7 +625,8 @@ int slapd_daemon( int inetd, int tcps )
connections_init
();
#define SLAPD_LISTENER_THREAD 1
#if SLAPD_LISTENER_THREAD
#if defined( SLAPD_LISTENER_THREAD ) || !defined(HAVE_PTHREADS)
/* listener as a separate THREAD */
rc
=
ldap_pvt_thread_create
(
&
listener_tid
,
0
,
slapd_daemon_task
,
args
);
...
...
@@ -721,7 +726,7 @@ void
slap_set_shutdown
(
int
sig
)
{
slapd_shutdown
=
sig
;
#ifndef
WIN32
#ifndef
HAVE_WINSOCK
if
(
slapd_listener
)
{
ldap_pvt_thread_kill
(
listener_tid
,
LDAP_SIGUSR1
);
}
...
...
servers/slapd/main.c
View file @
450b02ca
...
...
@@ -25,7 +25,8 @@ static RETSIGTYPE wait4child( int sig );
*/
#ifndef HAVE_MKVERSION
const
char
Versionstr
[]
=
"OpenLDAP Standalone LDAP Server (slapd)"
;
const
char
Versionstr
[]
=
OPENLDAP_PACKAGE
" "
OPENLDAP_VERSION
" Standalone LDAP Server (slapd)"
;
#endif
#ifdef LOG_LOCAL4
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment