Commit Graph

493 Commits

Author SHA1 Message Date
Kurt Zeilenga
3111cfa3bd Update LinuxThread signal handling. Hide #ifdef hell in ac/signal.h. 1998-11-18 17:45:32 +00:00
Kurt Zeilenga
499735fec6 OBJS: passwd.c -> passwd.o (I thought I already fixed this once) 1998-11-18 16:15:10 +00:00
Kurt Zeilenga
6d2f28c080 Protect strdup/memcmp from macro subsitution. Let compiler pick registers. 1998-11-18 16:13:51 +00:00
Kurt Zeilenga
3474bbaed5 Need to add SIZEOF defines. 1998-11-18 06:10:11 +00:00
Kurt Zeilenga
a8586a141b Fix multiple define protection. 1998-11-18 05:11:12 +00:00
Kurt Zeilenga
f05554bddc Shouldn't have removed uint32's multiple defined protection... 1998-11-18 05:09:05 +00:00
Kurt Zeilenga
bda79e1324 Add missing check for crypt.h
Sync portable.h.nt with portable.h.in
1998-11-18 04:48:16 +00:00
Kurt Zeilenga
fb7d6ce5df Move byte orderring stuff to ac/bytes.h 1998-11-17 22:49:47 +00:00
Kurt Zeilenga
05e597d869 Add sizeof checks to configure.in.
Add ac/bytes.h to provided sized types.
Use new sized type in md5/sha1 header through simple typedef.
Should substitute old type for new everywhere.
1998-11-17 22:49:15 +00:00
Kurt Zeilenga
a240efce5c Add AC_C_BIGENDIAN check for <ac/socket.h>. Code should be rewritten
not to require knowledge of byte order such that this check can be removed.
1998-11-17 19:44:59 +00:00
Kurt Zeilenga
5413a9598a NT doesn't have fork. Need to define HAVE_SPAWNLP 1998-11-17 19:14:11 +00:00
Kurt Zeilenga
34780e1dc3 Remove recently added externs. Some may not actually be bogus. 1998-11-17 19:08:29 +00:00
Kurt Zeilenga
da42acb93a Update handling of string headers.
Update NT port.
1998-11-17 19:05:48 +00:00
Hallvard Furuseth
e4171a78db Back out probable fix to strange alignment code 1998-11-17 17:44:50 +00:00
Hallvard Furuseth
b581bdd23c Back out K&Rification change; would only be needed in ldap.h and lber.h. 1998-11-17 04:07:31 +00:00
Hallvard Furuseth
b1ab654fbe Kill off #elif in ldap/include/. K&R does not support it. 1998-11-17 01:25:45 +00:00
Kurt Zeilenga
86fc474a50 Make sure tblsize in initialized in ldap_new_select_info()
Regenerate configure.
1998-11-16 23:55:37 +00:00
Kurt Zeilenga
b5494457d8 Remove extern declarations of library functions from source.c.
This could cause problems on odd systems.  The generic
  headers should be extended as needed to include necessary
  system headers or, if necessary, make explicit declarations.
Extended ac/string.h header to look for string.h/strings.h if
  STDC_HEADERS is not defined.  Also provide basic declarations for
  str*() functions.  This could cause problems on odd systems.
Extended ac/unistd.h header to define basic declaration for misc
  functions that might be missing from headers.   This includes
  externs for getenv(), getopt(), mktemp(), tempname().
Protect fax500.h from multiple inclusion.  Moved includes of
  system/generic headers back to source files.
Made mail500 helper functions static.
Fixed includes of ctype.h, signal.h, etc. to use generics.
lutil/tempname.c: was including stdlib.h twice, one should stdio.h.
Wrapped <sys/resource.h> with HAVE_SYS_RESOURCE_H.
lber/io.c/ber_get_next(): Changed noctets back to signed.
  Used with BerRead which expects signed int as second arg and
  returns signed int.
1998-11-16 05:07:27 +00:00
Kurt Zeilenga
24c5b0e791 Add checks for string.h and strings.h and apply them in generic header. 1998-11-16 02:02:45 +00:00
Kurt Zeilenga
b8d552b9b3 Update pthread preemptive test. Still needs work. 1998-11-16 00:52:15 +00:00
Hallvard Furuseth
7e6ad5100c Protoized, moved extern definitions to .h files, fixed related bugs.
Most function and variable definitions are now preceded by its extern
definition, for error checking.  Retyped a number of functions, usually
to return void.  Fixed a number of printf format errors.

API changes (in ldap/include):
  Added avl_dup_ok, avl_prefixapply, removed ber_fatten (probably typo
  for ber_flatten), retyped ldap_sort_strcasecmp, grew lutil.h.

A number of `extern' declarations are left (some added by protoize), to
be cleaned away later.  Mostly strdup(), strcasecmp(), mktemp(), optind,
optarg, errno.
1998-11-15 22:40:11 +00:00
Kurt Zeilenga
1c91859e9b Remove #ifdef sunos in lthread HAVE_LWP code. 1998-11-15 22:05:28 +00:00
Hallvard Furuseth
63a818078c Added declarations of common str*() functions 1998-11-15 21:52:56 +00:00
Kurt Zeilenga
d0942df6c9 Add check to see if errno is always thread specific.
If it is not, then everything must use threading libraries.
1998-11-15 20:55:17 +00:00
Kurt Zeilenga
e4a210b017 fix typo in previous commit. 1998-11-15 15:05:22 +00:00
Kurt Zeilenga
5310070b38 don't assume NULL is zero. 1998-11-15 06:55:20 +00:00
Kurt Zeilenga
a8f7f0b3c7 Use "generic" ac headers. 1998-11-15 06:54:30 +00:00
Kurt Zeilenga
f2aa11550e Pthread library check. Autoconf uses same cache variable based
upon library and function, but not secondary libraries.  Must use
different functions in such cases.
1998-11-13 04:28:56 +00:00
Hallvard Furuseth
4ed85bbbb4 Removed space in front of #endif'; make depend' did not like it. 1998-11-13 03:06:54 +00:00
Kurt Zeilenga
3206b1b794 Eliminate #ifdef DOS 1998-11-12 23:28:47 +00:00
Kurt Zeilenga
5c2334c8a4 Updates based upon latest NT UserDirectory changes:
configure checks for getpwuid(), sys/resource.h, and pwd.h
	Fix !TERMIOS && !SGTTY ifdef in ud/util.c
1998-11-12 23:25:53 +00:00
Kurt Zeilenga
8f11966bff Modified UD as necessary to compile and link under NT. 1998-11-12 23:19:16 +00:00
Kurt Zeilenga
a9d6d0c6a1 Move extern declarations to headers.
Update NT portable.h and features.h
1998-11-12 21:07:28 +00:00
Kurt Zeilenga
8c5a6151b1 Rework prototype ifdef to use __NO_PROTOTYPES and __NEED_PROTOTYPES
to force no prototypes or require them.
Remove _WIN32 clause.  Will update portable.h.nt to define __NEED_PROTOTYPES.
1998-11-12 20:30:42 +00:00
Kurt Zeilenga
c32792b489 Include ldif.h to pickup declaration of str_getline()
Fix pointer truncation to int by including prototypes in forward declarations.
1998-11-12 20:17:01 +00:00
Kurt Zeilenga
f1fde41ff8 remove an entry from its parent's children ID list when it's deleted.
Provided by "Gary D. Williams" <sasgwi@unx.sas.com>
1998-11-12 18:39:33 +00:00
Hallvard Furuseth
14a5b7f5bd Forced commit to correct previous log, files were not changed.
inet_addr() on OSF1 returns (unsigned int)0xffffffff, not int.
If it had returned int, the old code would have worked.
1998-11-12 03:03:57 +00:00
Hallvard Furuseth
ce5dcbc522 Check if inet_addr() returns 0xffffffff as well as -1.
It returns (int)0xffffffff on OSF1 which has 64-bit long, so
`unsigned long address; ... if((address = inet_addr(str)) == -1)' fails.
1998-11-12 02:24:43 +00:00
Hallvard Furuseth
523fd2c891 Fix most `wider type truncated to int' bugs on OSF1 due to implicit decls:
#include <stdlib.h>    to get malloc & co various places,
 #include <ac/string.h> to get strlen & co in (liblutil/setproctitle.c),
 declare ch_malloc & co (slurp.h), avl_find_lin (avl.h), Malloc (ud/edit.c).
Also changed ch_malloc & co from char* to void* functions.
1998-11-11 23:37:38 +00:00
Hallvard Furuseth
5a14af5f84 Memory leaks: Values from ldap_get_dn were not freed. 1998-11-11 22:10:05 +00:00
Hallvard Furuseth
ede86e4da8 Memory leaks: Values from ldap_dn2ufn and ldap_get_dn were not freed. 1998-11-11 21:27:21 +00:00
Hallvard Furuseth
f0688d71a1 Locks were not always released, in particular if something went wrong.
Fixed in slurpd and the slapd main dir.  Slapd clients were not examined.
It also "felt right" to swap the order of closing dfp and rfp in slurpd
copy_replog(), so the last acquired lock is unlocked first.
1998-11-11 19:17:25 +00:00
Hallvard Furuseth
f165bb2b96 strlen() needed string.h. 1998-11-11 16:35:58 +00:00
Hallvard Furuseth
fc03c3f07a Fix HAVE_PTHREAD_D4 -> HAVE_PTHREADS_D4 1998-11-11 15:53:04 +00:00
Hallvard Furuseth
dfc9a1c2ff &deref_kv -> deref_kv; som compilers don't like &array 1998-11-11 15:42:22 +00:00
Kurt Zeilenga
d6e05ecbd7 Update NT4 port. 1998-11-11 05:50:51 +00:00
Kurt Zeilenga
dcec4bf292 Add/Remove defines to make current with ldapconfig.h.edit 1.8 1998-11-11 03:13:55 +00:00
Kurt Zeilenga
10a013f8ce Create feature file for NT build environment. 1998-11-11 03:03:03 +00:00
Kurt Zeilenga
e03d88fcc4 Don't include portable.h. Headers can and should assume portable.h
has been included.
1998-11-11 01:38:02 +00:00
Kurt Zeilenga
376e1e02ff Update configure to handle DEC OSF1 3.2 special cases.
-thread & -pthread are still treated as libraries, will need
additional work to use them as CFLAGS.
Eliminated HAVE_DCE define (was redundant) and its use.  Code
now relies on draft4 and function existance tests.
1998-11-11 00:24:22 +00:00