1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-14 20:23:54 +03:00
Commit Graph

89 Commits

Author SHA1 Message Date
Jelmer Vernooij
7c34f48827 r26495: Add defines for getifaddrs/freeifaddrs.
(This used to be commit c9e5a3078f)
2007-12-21 05:50:49 +01:00
Stefan Metzmacher
2baec5a557 r25911: Remove more fstring/pstring bad useage. Go talloc !
Jeremy.

merge from v3-2-test commit 2a0173743d
(This used to be commit cb0eca66dc)
2007-12-21 05:44:51 +01:00
Jeremy Allison
2cb22d93ae r25892: Keep the tdb code in sync between 3.2.x and 4.0.
Add in the alarm fix to allow locks to exit on
alarm signal.
Sync up the changes in tools.
Jeremy.
(This used to be commit cb6c663fa8)
2007-12-21 05:44:42 +01:00
Stefan Metzmacher
a3e5710eda r25602: don't imply "system/network.h" within replace.h,
as this brings in the socket_wrapper.h in unexpected
code and we endup with a missing 'swrap_close' while linking

metze
(This used to be commit 507d5ca7d9)
2007-12-21 05:42:47 +01:00
Stefan Metzmacher
6876d2613d r25601: replace.h should never imply any "system/*.h"
(here it's "system/time.h")

metze
(This used to be commit 00467c2593)
2007-12-21 05:42:46 +01:00
Jelmer Vernooij
e511090a43 r25543: Merge libreplace support for inet_pton, inet_ntop, getaddrinfo, getnameinfo
(and friends) from SAMBA_3_2, with some minor tweaks:

- avoid including network headers in replace.h unless absolutely required
- autoconf tests for getaddrinfo() in lib/replace

The heimdal-specific code also no longer looks for these functions anymore.
(This used to be commit b6d3fd84a5)
2007-10-10 15:07:51 -05:00
Stefan Metzmacher
d4f0d738f1 r25251: move macro defines to the end of replace.h
and move the include location sys/param.h
before we redefine missing macros

metze
(This used to be commit 87559febdf)
2007-10-10 15:06:59 -05:00
Stefan Metzmacher
d232d1851c r25210: fix typo
metze
(This used to be commit 489758afb2)
2007-10-10 15:06:54 -05:00
Jelmer Vernooij
d0f3d4a2f1 r25017: Move MAXHOSTNAMELEN definition to replace.h as it is usually part of
sys/param.h.
(This used to be commit 7016d50028)
2007-10-10 15:05:37 -05:00
Jelmer Vernooij
b159717785 r24350: Remove offsetof() replacement to see if there are actually any
hosts that don't have it.
(This used to be commit b37d86242d)
2007-10-10 15:01:42 -05:00
Jelmer Vernooij
bc13766a76 r24337: Make libreplace provide offsetof.
(This used to be commit 48d1aa4fcf)
2007-10-10 15:01:39 -05:00
Andrew Tridgell
6c973f4e8c r23798: updated old Temple Place FSF addresses to new URL
(This used to be commit 40c0919aaa)
2007-10-10 14:59:15 -05:00
Andrew Tridgell
b8d69a7ea2 r23795: more v2->v3 conversion
(This used to be commit 84b468b2f8)
2007-10-10 14:59:14 -05:00
Michael Adam
14846bf4f6 r23363: Activate rep_pread and rep_pwrite in lib/replace/replace.h.
This fixes the build on a SuSE 6.1. :-)
I guess this had been merely forgotten.

But beware: The implementations of rep_pread and rep_pwrite are
not thread safe.

Michael
(This used to be commit e4955c729f)
2007-10-10 14:53:12 -05:00
Stefan Metzmacher
867f7f4b74 r23208: on some HP-UX boxes dlfcn.h is available and use unsigned int flags
for dlopen but no library contains the function...

metze
(This used to be commit 0c7e3ed962)
2007-10-10 14:53:03 -05:00
Stefan Metzmacher
fbe7d8cbc5 r23188: revert 23123 and 23118.
as a long term solution this was the correct approach,
but it's a bit more complex and we need to provide the
whole socket api and libnsl.so checking in libreplace...

as a short term solution to fix the build on host 'hape'
we'll use the same trick as with inet_aton.c from
heimdal's lib/roken/

metze
(This used to be commit 0e88e2e461)
2007-10-10 14:53:02 -05:00
Jelmer Vernooij
dc919c2534 r23175: Handle PKG_CONFIG_PATH not set yet - fixes warning in selftest.pl
(This used to be commit 222acbe33b)
2007-10-10 14:52:59 -05:00
Michael Adam
4fa973e4a4 r23123: Fix two utterly simply typos that broke the whole build farm...
Michael
(This used to be commit 54193c4638)
2007-10-10 14:52:51 -05:00
Michael Adam
ef5dc55983 r23118: Make inet_pton and inet_ntop available through lib/replace.
The code for inet_pton.c and inet_ntop.c is taken from
the rsync code.

I will put this into 3_0 and 3_0_26 too, but let's sort
the readahead issue in lib/replace of 3_0 first...

Michael
(This used to be commit 9781b13fd3)
2007-10-10 14:52:51 -05:00
Michael Adam
a32b648ea1 r23108: Add defines of RTLD_NOW and RTLD_GLOBAL to replace.h.
Fixing build of ldb for instance on some systems without dlfcn.h.
(This used to be commit 943acd688d)
2007-10-10 14:52:49 -05:00
Stefan Metzmacher
4047b20c36 r22297: move ZERO_*, ARRAY_SIZE and PTR_DIFF macros into libreplace
metze
(This used to be commit b69c950858)
2007-10-10 14:50:59 -05:00
Stefan Metzmacher
7e13a1c96a r22273: - provide __LINESTR__ macro
- add __STRINGSTRING() macro to really create a string of __LINE__
- fix __location__ macro

metze
(This used to be commit 24324fbcff)
2007-10-10 14:50:55 -05:00
Stefan Metzmacher
3dd41c856e r22270: provide __location__ in replace.h
and see how the build-farm likes this simpler version

metze
(This used to be commit 2abc79680f)
2007-10-10 14:50:55 -05:00
Stefan Metzmacher
9a7d2f8e54 r22263: use AC_HAVE_DECL() because AC_CHECK_DECLS() defines to 1 or 0
and #ifndef doesn't work.

metze
(This used to be commit 99125fe76a)
2007-10-10 14:50:54 -05:00
Stefan Metzmacher
f0c9bc037e r22250: try to fix the build on aix1 in the farm
metze
(This used to be commit 0a04ed570b)
2007-10-10 14:50:46 -05:00
Stefan Metzmacher
bb36705c8d r22226: move discard_const macros to librelace
metze
(This used to be commit c2cfee6d25)
2007-10-10 14:50:40 -05:00
Stefan Metzmacher
eb49760603 r22215: add strptime replacement to libreplace based on the patch
from jojowil@hvcc.edu to bug 4063

also add a testsuite for strptime()

metze
(This used to be commit aba6452170)
2007-10-10 14:50:38 -05:00
Stefan Metzmacher
14233bb76f r21795: fix the prototype of unsetenv()...
metze
(This used to be commit 2952c20b77)
2007-10-10 14:49:28 -05:00
Stefan Metzmacher
544a2d30e0 r21793: add replacement for unsetenv()
metze
(This used to be commit d6de7f2cda)
2007-10-10 14:49:27 -05:00
James Peach
0602d4d7f2 r20981: Fix cut'n'paste error.
(This used to be commit 20dcd6e241)
2007-10-10 14:44:17 -05:00
Jelmer Vernooij
f9a0ada725 r19393: Add replacement function for socketpair()
(This used to be commit 448a3ecc01)
2007-10-10 14:21:24 -05:00
Stefan Metzmacher
b6582987fe r19242: merge from samba3:
handle NO_CONFIG_H in libreplace

metze
(This used to be commit 909d736a4b)
2007-10-10 14:20:56 -05:00
Stefan Metzmacher
e8a005acfe r18999: merge from samba3:
- make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
(This used to be commit cdcd4232d2)
2007-10-10 14:20:28 -05:00
Volker Lendecke
9f98bcf6a8 r18991: Fix bug 4133 -- Thanks to Olaf Flebbe
(This used to be commit d8bea42bb7)
2007-10-10 14:20:27 -05:00
Andrew Tridgell
2550f5ae12 r18970: avoid strndup and strnlen on AIX. They are quite broken. See
http://lists.samba.org/archive/samba-technical/2004-August/036915.html
(This used to be commit c178c84f01)
2007-10-10 14:20:25 -05:00
Andrew Tridgell
2b2c7ee2f0 r18862: as andrew pointed our on irc, if we are going to define _TRUE, then
better make it be true :)
(This used to be commit 4bda5ed3f9)
2007-10-10 14:20:17 -05:00
Andrew Tridgell
311e26246c r18861: merge from samba3
(This used to be commit c5e2fcdc10)
2007-10-10 14:20:17 -05:00
Stefan Metzmacher
0780eb7f82 r18675: merge from samba3:
we need to define the macros the indicate we have bool
even if we have not defining bool ourself

metze
(This used to be commit 0c18e5d938)
2007-10-10 14:19:01 -05:00
Stefan Metzmacher
550495b6f9 r18674: merge from samba3,
PRINTF_ATTRIBUTE seems to not work with gcc 3.0

metze
(This used to be commit dfb9bfba94)
2007-10-10 14:19:01 -05:00
Andrew Tridgell
eef5a6f538 r18518: we replace snprintf() if its not C99, so we should also add the rep_
prototype in that case
(This used to be commit 64b5ff171d)
2007-10-10 14:18:41 -05:00
Stefan Metzmacher
4e355095d1 r18472: - use STDC_HEADERS for stdlib.h and stddef.h as autoconf does
- AC_HEADERS_STDC is not explicit needed

metze
(This used to be commit 8f20d2cfe5)
2007-10-10 14:18:35 -05:00
Stefan Metzmacher
c706319c8f r18458: move wins32 stuff to the top dir
metze
(This used to be commit 521e94f269)
2007-10-10 14:18:33 -05:00
Andrew Tridgell
daff791c27 r18432: ensure roken doesn't try to include both inttypes.h and stdint.h. The
two conflict on irix.
(This used to be commit 4dd949c80d)
2007-10-10 14:18:28 -05:00
Stefan Metzmacher
68201cc76b r18419: fix include paths of the configure tests
metze
(This used to be commit 8774eeb0dc)
2007-10-10 14:18:26 -05:00
Stefan Metzmacher
27964734a6 r18383: ok we need _XOPEN_SOURCE 500 and include standards.h on Tru64
to get MAP_FAILED

metze
(This used to be commit 0f48c8ad7c)
2007-10-10 14:18:22 -05:00
Andrew Tridgell
a8421e8107 r18343: fixed setlinebuf() prototype, added test for it, and use it in two
places to avoid a #ifdef
(This used to be commit 095b805774)
2007-10-10 14:18:13 -05:00
Andrew Tridgell
d82ed849cc r18337: more -Ae tests in check_cc.m4
honor the MMAP_BLACKLIST
(This used to be commit c2f2dbb5d1)
2007-10-10 14:18:11 -05:00
Andrew Tridgell
3f8383cd61 r18335: more portable bool tests
(This used to be commit 45a3a6a566)
2007-10-10 14:18:11 -05:00
Andrew Tridgell
f64b2474be r18278: move more header checks and _GNU_SOURCE into libreplace
(This used to be commit 77c442cd46)
2007-10-10 14:18:00 -05:00
Andrew Tridgell
8717b5e3e6 r18206: need rep_ macro for setlinebuf
(This used to be commit 6a48f75eae)
2007-10-10 14:17:49 -05:00