Kurt Zeilenga
404f953ef0
New pthread_try_link test. Looks for pthread_create and pthread_detach
...
and, if LinuxThreads, pthread_kill_other_threads_np().
1999-04-07 02:47:15 +00:00
Kurt Zeilenga
bbb7964508
New LinuxThreads detection. Correctly detects FreeBSD's LinuxThreads port
...
(but not sure if it's usable yet). Needs to be tested on various versions
of Linux native LinuxThreads.
1999-04-06 23:44:27 +00:00
Kurt Zeilenga
73b846c011
Add ldap_pvt_thread_destory() to un-ldap_pvt_thread_initialize().
...
Move all SunOS routines (ie: _sleep() and its helpers) to thr_lwp.c
so that it's internals can be 'static'. Add 'static' to thr_lwp.c.
Add comment to LWP: NEEDS WORK, may not compile! Need some
SunOS user to sort out the details. Volunteers?
1999-04-06 21:57:16 +00:00
Hallvard Furuseth
e78f4140d7
Use macros for the dummy definitions of sys_errlist/sys_errno
1999-04-06 01:25:03 +00:00
Kurt Zeilenga
b4658cbe24
Cleanup socket() detection.
...
Move select() detection forward, error if not available.
Move select() args type check forward so it can be used in subsequent tests.
1999-04-04 20:36:35 +00:00
Kurt Zeilenga
82453169fc
Add select args type & vfork tests for experimentation purposes.
1999-04-04 00:59:32 +00:00
Hallvard Furuseth
9ebd9a0289
Add -U and -G options to set user and group id.
...
Move socket setup to set_socket(), called before the uid/gid change.
1999-04-03 03:19:07 +00:00
Gary Williams
92d4ccf906
NT port
1999-04-01 16:38:11 +00:00
Kurt Zeilenga
f626fbbd57
Rebuild configure due to MDBM addition.
1999-03-30 04:46:17 +00:00
Juan Gomez
8c23e997e9
MDBM support added.
1999-03-30 04:39:41 +00:00
Juan Gomez
009038a795
MDBM detection feature.
1999-03-30 04:25:52 +00:00
Kurt Zeilenga
b9109a9f20
add wait macros. add LDAP_SIGCHLD. and other misc NT cleanups.
1999-03-29 09:04:35 +00:00
Kurt Zeilenga
db721ca821
Add ioctl_t for arg type (Unix requires 'int', Winsock requires 'u_long').
1999-03-29 05:28:29 +00:00
Kurt Zeilenga
ff23537bcb
Rework ac/socket.h for HAVE_WINSOCK:
...
tcp_close -> closesocket
ioctl -> ioctlsocket
Modify codes to use tcp_close() instead of close() for sockets.
Modify ioctl codes to be compatible with WINSOCK.
1999-03-29 05:15:59 +00:00
Kurt Zeilenga
30f953160f
Add wait4/3 detection.
...
Modify slapd_tester to use pid_t and wait macros. May need to
implement additional macros in ac/wait.h (in addition to
WEXITSTATUS and WIFEXITED).
1999-03-29 01:40:17 +00:00
Kurt Zeilenga
598b7473fe
All implementations of lutil_lockf (aka ldap_lockf) block until
...
the lock is acquired. Add comments to that effect. Remove
unnecessary busy loops from slapd/lock.c and slurpd/lock.c.
1999-03-28 22:43:43 +00:00
Kurt Zeilenga
f4161b5bf8
NT doesn't have waitpid()
1999-03-28 22:42:13 +00:00
Kurt Zeilenga
7adc0a65d0
Update lutil_lockf (aka: ldap_lockf) to hide implementation in
...
library, not header. Eliminate need for <ac/unistd.h> to sometimes
include <fcntl.h> and/or <sys/file.h>. Change lock API to expect
fd not FILE*. Allows wider use and eliminates requirement that
lutil_lockf.h depencency on stdio.h.
Implemented lockf, fcntl, and flock locking in lutil/lockf.c.
Additional implementations (including no-op) may be needed.
Update slapd/lock.c and slurpd/lock.c to use new API.
1999-03-28 21:39:02 +00:00
Ben Collins
5c931bdffa
If we are using lutil_lock functions then define NEED_SIMPLE_LOCKING or
...
liblutil/lockf.c wont be compiled.
1999-03-28 18:07:44 +00:00
Kurt Zeilenga
11add79cb1
Update locking codes.
1999-03-26 17:43:23 +00:00
Ben Collins
cfe36cb71f
Added extra checks to locking definitions
1999-03-26 15:10:06 +00:00
Kurt Zeilenga
81acad8937
Add LDAP_DEBUG promotion and include of ac/insert.h
1999-03-26 04:37:39 +00:00
Kurt Zeilenga
61f6d5d8ca
Add check for <assert.h> and put include in right file (acconfig.h)
1999-03-20 03:21:19 +00:00
Kurt Zeilenga
f999e1350d
Provide global assert solution. <ac/assert.h> (new) is now included
...
by portable.h with NDEBUG undefined. This makes assert() is always
available and automatically disables itself when LDAP_DEBUG is undefined.
I've included a basic assert() for pre-STDC compilers. It relies on
abort() which may not actually be available. (well replace abort()
with whatever is appropriate if and when we're faced with a pre-STDC
compiler that doesn't have assert()).
1999-03-20 03:13:24 +00:00
Kurt Zeilenga
5a4babde00
Add DEFAULT_EDITOR to ldapconfig.h. Used by ldbmtest and ud.
1999-03-17 22:34:17 +00:00
Kurt Zeilenga
96b2ae55ac
Add OL_STRUCT_PASSWD_PW_GECOS test. Checks for pw_gecos in struct passwd.
1999-03-17 22:23:29 +00:00
Kurt Zeilenga
98d3206c42
Rebuild configure and portable.h.in...
1999-03-17 22:10:31 +00:00
Kurt Zeilenga
8694a8395c
Add EBCDIC test in preparation for VM port.
1999-03-15 19:31:13 +00:00
Kurt Zeilenga
5f3c7a88dc
Add 'extern' to externals.
1999-03-15 01:06:02 +00:00
Ben Collins
13f169ee54
Only declare strdup() if DECL_STRDUP is defined
1999-03-15 00:19:46 +00:00
Ben Collins
e732e12279
configure.in now includes OL_DECL_STRDUP, configure and portable.h.in
...
rebuilt to reflect it.
1999-03-15 00:18:49 +00:00
Hallvard Furuseth
7927ffe7f3
Add missing parens around Debug macro parameter
1999-03-14 07:15:58 +00:00
Ben Collins
4e733cf024
Macros for file locking/unlocking added (ldap_lockf/ldap_unlockf)
1999-03-13 20:31:55 +00:00
Ben Collins
615923f0d1
Functions for using fcntl to lock/unlock files in case lockf is not available
1999-03-13 19:25:15 +00:00
Ben Collins
ebce51b2db
actually define HAVE_SYS_ERRLIST if we have it, if not then declare it locally in ac/errno.h
1999-03-13 18:19:11 +00:00
Ben Collins
362f051a57
Added check for <arpa/inet.h>
1999-03-13 02:17:34 +00:00
Ben Collins
c0b11aa8b5
Added check for getpass() as well as adding it to the -llutil Makefile.in (BeOS will need this)
1999-03-13 02:08:42 +00:00
Ben Collins
8f0aae9b72
#ifdef for <arpa/inet.h>
1999-03-13 01:12:54 +00:00
Kurt Zeilenga
e2d90b3acb
Update configure to:
...
-- fixed gethostbyaddr_r/gethostbyname_r compile warnings
-- relocated Pthread -mt test to be before -kthread test
1999-03-10 23:31:06 +00:00
Hallvard Furuseth
6de5ba2834
Fix typo -lxttp => -lxtpp in HAVE_XTPP comment
1999-03-09 08:05:27 +00:00
Kurt Zeilenga
53fc115b6f
Add LDIF_ to LINE_WIDTH
1999-03-09 00:50:41 +00:00
Kurt Zeilenga
6570ec368c
Regenerate configure and friends.
1999-03-08 20:01:17 +00:00
Kurt Zeilenga
8d3f492698
Add GNU readline detection. Needed for saucer enhancement (ITS#96).
1999-03-08 01:48:45 +00:00
Kurt Zeilenga
9e71e09bac
Relocate reentrant function checks to before thread library checks.
...
Disable ctime_r() type check. Need better test.
1999-03-07 00:22:11 +00:00
Kurt Zeilenga
588a458d78
MSVC5 cleanup...
...
lber: ifdef'ed out lber_..set_nonblock() function because it used ioctl's.
If it remains, it needs to be written to support various methods for
setting non-blocking. ioctls should probably be last choice. configure
could detect existance of fcntl(), ioctl(), etc.
bdb2:
added .dsp/.dsw files and did some basic cleanup (still needs work).
1999-03-06 00:57:25 +00:00
Kurt Spanier
6da27229d9
1. Fix of ldbmcat segmentation fault bug (ITS#85 and #81 ).
...
2. Make ldbm_Env a failure-safe entity.
1999-03-05 11:24:42 +00:00
Juan Gomez
e46c2e494e
Added prototypes for ldap_rename2() and ldap_rename2_s(), which generate
...
a MODDN or MODRDN request depending on the newSuperior parameter.
1999-03-04 03:14:31 +00:00
Kurt Zeilenga
ce6836dbed
Apply Hallvard's D4 pthread detection patch.
1999-03-03 23:32:00 +00:00
Juan Gomez
cd90353f10
Added LDAP_TAG_NEWSUPERIOR tag and a brief description about tag
...
construction which may be useful later when adding new tags. This
in preparation to support moddn v3.
1999-03-03 22:51:43 +00:00
Hallvard Furuseth
45bf79315e
Correct typo ldap_count_reference -> ldap_count_references
1999-03-03 17:45:15 +00:00