1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-25 00:23:52 +03:00
Commit Graph

38 Commits

Author SHA1 Message Date
Stefan Metzmacher
cdcd4232d2 r18999: merge from samba3:
- make more usage of PRINTF_ATTRIBUTE()
- vsyslog takes a 'const char *format'

metze
2007-10-10 14:20:28 -05:00
Andrew Tridgell
095b805774 r18343: fixed setlinebuf() prototype, added test for it, and use it in two
places to avoid a #ifdef
2007-10-10 14:18:13 -05:00
Andrew Tridgell
57cd0ca176 r18160: - pread and pwrite replacements need to be non-static
- replacing rename() is pointless - all platforms have it (and the
  #define of rename breaks some code)

- use system/locale.h in snprintf.c

- fix passwd.h for initgroups

- stdlib is in replace.h, not needed elsewhere

- fix the initgroups replacement

- fix mapping of dl functions to rep_*
2007-10-10 14:17:44 -05:00
Andrew Tridgell
41419e54d5 r18140: and this reduces warnings about toupper() 2007-10-10 14:17:39 -05:00
Andrew Tridgell
f46ab799b4 r18139: irix needs system/network.h here 2007-10-10 14:17:38 -05:00
Andrew Tridgell
77d1a468e0 r18129: moved the system includes into libreplace - this gives much more
isolation of our portability environment from the main code, and also
simplifies the includes system (no separate #ifdef _SAMBA_BUILD for
tdb. ldb etc now)
2007-10-10 14:17:36 -05:00
Andrew Tridgell
71c0a0731c r18061: this should fix the libreplace build on us4 with gcc 2007-10-10 14:17:10 -05:00
Andrew Tridgell
0b80ee8b3b r18056: includes needed for O_CREAT 2007-10-10 14:17:09 -05:00
Andrew Tridgell
5745ecdd82 r18052: discard_const_p() isn't part of the libreplace API, so we can't use it
inside libreplace.
2007-10-10 14:17:08 -05:00
Andrew Tridgell
3ec1db7bd1 r18044: timegm.c needs to be in a separate file 2007-10-10 14:17:07 -05:00
Jelmer Vernooij
9a421425d2 r18040: Use only one strnlen implementation 2007-10-10 14:17:06 -05:00
Jelmer Vernooij
fe7ca4b145 r18031: Merge my replace fixes:
* libreplace can now build stand-alone
 * add stub testsuite for libreplace
 * make talloc/tdb/ldb use libreplace
2007-10-10 14:17:05 -05:00
Volker Lendecke
2a7cdf52e4 r18018: Fix the build on OpenBSD. No license problem this time, I've written strnlen
from scratch.

Volker
2007-10-10 14:17:03 -05:00
Andrew Tridgell
5b9b9dd530 r17992: reverted r17842
This needs more consideration, as the patch removed the copyright
notice and license from the timegm.c code.

Volker, when you get a minute can you let me know what problem this
patch fixed so I can find a different approach?
2007-10-10 14:17:02 -05:00
Volker Lendecke
fd166ca0c0 r17842: After talking to Simo, apply the next attempt to resolve the strnlen
problem. Timegm is the same. Simo says this is just a workaround, but it helps
for now. Feel free to revert.

Volker
2007-10-10 14:16:47 -05:00
Volker Lendecke
1de3459082 r17841: Revert 17840, libldb.a defines strnlen. Sorry for the noise 2007-10-10 14:16:47 -05:00
Volker Lendecke
ebf75c6196 r17840: A step towards building on Solaris which appears not to have strnlen.
Volker
2007-10-10 14:16:47 -05:00
Andrew Tridgell
ed2dbc4dfe r17763: moved setenv to ldb/replace/ 2007-10-10 14:16:38 -05:00
Andrew Tridgell
ac178b5293 r17750: these have moved to ldb/replace/ now 2007-10-10 14:16:36 -05:00
James Peach
b3d2512ed4 r16556: Add mkdtemp to libreplace. This is apparantly available on Linux
and BSD systems, but it's not everywhere.
2007-10-10 14:09:34 -05:00
Stefan Metzmacher
2bda7b63be r16003: Tru64 doesn't have strtoll/strtoull but the size of 'long' is equal to
the size of 'long long' so we can use strtol/strtoul

Patch from Bjoern Jacke, thanks!
(I only added the SIZEOF_LONG == SIZEOF_LONG_LONG)

metze
2007-10-10 14:08:48 -05:00
Andrew Tridgell
acfaa98b5e r15953: our timegm() replacement still doesn't work, so grab the one from
Heimdal which does work. This should fix most of the rest of the
failures on solaris
2007-10-10 14:08:44 -05:00
Andrew Tridgell
df5bd916db r15879: strtok_r() replacement, for solaris 2007-10-10 14:08:36 -05:00
Jim McDonough
d28f49fc6d r15719: Fix build on systems (AIX) that don't have vsyslog or strcasestr, with
--enable-developer on.  syslog() and toupper() required more includes.

Someone more familiar with samba4 builds should verify this, please.
2007-10-10 14:08:09 -05:00
Jelmer Vernooij
aa6d66fda6 r15573: Fix build of systems that have iconv headers in non-standard locations
Split of system/locale.h header from system/iconv.h

Previously, iconv wasn't being used on these systems
2007-10-10 14:05:58 -05:00
Paul Green
a4d706cf26 r15382: Use grp.h in this block; it has been cleaned out of the other headers that formerly included it for us.
Paul
2007-10-10 14:05:30 -05:00
Jelmer Vernooij
c83e4b1665 r15321: Reduce the size of rewrite.m4 a bit more 2007-10-10 14:05:15 -05:00
Jelmer Vernooij
407b5e615f r11343: Remove dependency on DEBUG() 2007-10-10 13:45:21 -05:00
Andrew Tridgell
4483d275e1 r10896: added a strcasestr() replacement function 2007-10-10 13:39:41 -05:00
Andrew Tridgell
342489a1d4 r10523: fixed timegm() to not depend on get_time_zone(), so it works in lib/replace/
the old timegm() replacement was also broken (it returned the wrong value)
2007-10-10 13:39:00 -05:00
Jelmer Vernooij
fbbfad0a1f r10456: More SCons fixes:
- Add framework for fallback generating code
 - Move pread / pwrite replacement functions to libreplace
 - Support pidl builds correctly
 - Support asn1 builds correctly
 - Move OS-specific checks to lib/replace/SConscript
2007-10-10 13:38:48 -05:00
Jelmer Vernooij
29919a7105 r10438: Move portability functions to lib/replace/; replace now simply ensures
that a given set of (working) POSIX functions are available (without
prefixes to their names, etc). See lib/replace/README for a list.

Functions that behave different from their POSIX specification
(such as sys_select, sys_read, etc) have kept the sys_ prefix.
2007-10-10 13:38:45 -05:00
Andrew Tridgell
57e6bd6139 r9374: HPUX is also missing setegid() 2007-10-10 13:33:29 -05:00
Andrew Tridgell
e8260a81cf r9369: an attempt to fix the build on HPUX. This is based on work by Don
McCall, but takes a slightly different approach that I hope will be
more generic
2007-10-10 13:33:28 -05:00
Andrew Tridgell
eb3b3c8b40 r8710: another attempt at fixing HPUX 2007-10-10 13:29:56 -05:00
Andrew Tridgell
c84c516b17 r8698: attempt to cope with lack of strtoull() on HPUX 2007-10-10 13:29:55 -05:00
Andrew Tridgell
58d7a1e6a3 r8580: try to fix the build on stratus 2007-10-10 13:29:40 -05:00
Jelmer Vernooij
fc7f519e4a r7166: Move replacement stuff to seperate directory
(easier to add win32-specific bits later)
Trim LIBBASIC a bit more
2007-10-10 13:17:22 -05:00