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

52 Commits

Author SHA1 Message Date
Jelmer Vernooij
cc873bdd2e r26507: Fix function signature for freeifaddrs. 2007-12-21 05:51:13 +01:00
Jelmer Vernooij
8c65053f51 r26497: Fix return type for freeifaddrs(). 2007-12-21 05:50:51 +01:00
Jelmer Vernooij
c4cd935ee7 r26492: Some hosts have a define called ifa_dstaddr. 2007-12-21 05:50:47 +01:00
Jelmer Vernooij
fa9e3b6fa8 r26469: Fix paths, only include IPv4 addresses for now. 2007-12-21 05:50:32 +01:00
Jelmer Vernooij
9b4924fbd8 r26467: Use getifaddrs() for interface enumeration and provide replacements for platforms that don't have it in lib/replace. 2007-12-21 05:50:31 +01:00
Michael Adam
df3e151992 r26255: Work around another broken aspect of sys/capability.h on RHEL5.
This is synced from samba3 v3-2-test/11bcdf780e164659b89:

The /usr/include/sys/capability.h defines _LINUX_TYPES_H
which prevents /usr/include/linux/types.h from being parsed
(when included afterwards). Thus certain types are undefined
that are for instance needed in /usr/include/linux/dqblk_xfs.h.
This breaks the build of lib/sysquotas_xfs.c in Samba3.

This commit adds a configure check and a workaround for this.

Michael
2007-12-21 05:47:30 +01:00
Michael Adam
dfdfac2b57 r26254: Add check for PPC statfs.h to workaround for broken capability.h.
Synced from Samba3.

Michael
2007-12-21 05:47:30 +01:00
Michael Adam
4d1df9c0b4 r26253: Add check for broken RedHat 7.2 system header files to lib/replace.
This is taken (with slight reformatting) from samba3:configure.in.
It is already used in lib/replace/system/capablity.h.

Michael
2007-12-21 05:47:30 +01:00
Stefan Metzmacher
1ecb4ec01b r26102: libreplace: remove system/printing.h as it only contains samba3 stuff
metze
2007-12-21 05:46:04 +01:00
Stefan Metzmacher
b833dce5e6 r25910: Try and fix the Solaris build by adding a missing define
(from Jerry).
Jeremy

merge from v3-2-test commit a68bbea0d4
2007-12-21 05:44:50 +01:00
Jeremy Allison
cb6c663fa8 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.
2007-12-21 05:44:42 +01:00
Stefan Metzmacher
44250ac6f9 r25867: libreplace: solaris has different prototypes for getpwent_r and getgrent_r
metze
2007-12-21 05:44:33 +01:00
Stefan Metzmacher
98095b3425 r25865: libreplace: check for nss passwd|group get*_r functions
metze
2007-12-21 05:44:32 +01:00
Stefan Metzmacher
a16f0e3cdb r25863: libreplace: we need include <unistd.h> before nss_wrapper.h
metze
2007-12-21 05:44:31 +01:00
Stefan Metzmacher
17f9189fb4 r25838: libreplace: include nss_wrapper.h if NSS_WRAPPER is defined
metze
2007-12-21 05:44:19 +01:00
Stefan Metzmacher
5648c8a0de r25728: [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
metze
2007-12-21 05:43:31 +01:00
Stefan Metzmacher
57d5cf4b5f r25724: - include getaddrinfo.h after we have defined struct addrinfo
- use rep_ instead of pg_ as prefix in getaddrinfo.[ch]
- define HAVE_<name> macros when we replace functions

metze
2007-12-21 05:43:29 +01:00
Stefan Metzmacher
8b92b81101 r25718: [libreplace] if we replace types define the HAVE_<type> macro
this is needed as heimdal's roken.h also tries to replace the types

metze
2007-12-21 05:43:26 +01:00
Stefan Metzmacher
12cec014c4 r25715: [libreplace] move definition of struct addrinfo so that it can use socklen_t
metze
2007-12-21 05:43:25 +01:00
Stefan Metzmacher
8bd2cf71be r25714: [libreplace] move define of a constant to near to the others
metze
2007-12-21 05:43:25 +01:00
Stefan Metzmacher
a3657a4e71 r25713: [libreplace] include socket_wrapper.h after we have typedef'ed socklen_t
metze
2007-12-21 05:43:24 +01:00
Stefan Metzmacher
facb811bb3 r25687: Move #defined for getaddrinfo into network.h (as other
defines). Allows RHEL4 compile to work.
Jeremy.
(cherry picked from commit 0ffdf4fdee)
2007-12-21 05:43:14 +01:00
Stefan Metzmacher
cd5069a8ca r25685: rename getsmbpass -> rep_getpass and provide the function prototype
metze
(cherry picked from commit 96820f8d8f)
2007-12-21 05:43:13 +01:00
Stefan Metzmacher
d286c0533d r25677: add missing stuff from samba3
metze
2007-12-21 05:43:09 +01:00
Stefan Metzmacher
507d5ca7d9 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
2007-12-21 05:42:47 +01:00
Stefan Metzmacher
00467c2593 r25601: replace.h should never imply any "system/*.h"
(here it's "system/time.h")

metze
2007-12-21 05:42:46 +01:00
Stefan Metzmacher
f9696109cc r25597: HPUX doesn't have INET_ADDRSTRLEN defined
metze
2007-10-10 15:08:02 -05:00
Jelmer Vernooij
b6d3fd84a5 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.
2007-10-10 15:07:51 -05:00
Jelmer Vernooij
7016d50028 r25017: Move MAXHOSTNAMELEN definition to replace.h as it is usually part of
sys/param.h.
2007-10-10 15:05:37 -05:00
Andrew Tridgell
40c0919aaa r23798: updated old Temple Place FSF addresses to new URL 2007-10-10 14:59:15 -05:00
Andrew Tridgell
84b468b2f8 r23795: more v2->v3 conversion 2007-10-10 14:59:14 -05:00
Andrew Tridgell
361c5995bc r23237: update lib/replace from ctdb 2007-10-10 14:53:05 -05:00
Andrew Tridgell
2c9d0b57f9 r22829: system/select.h needs to bring in epoll.h for epoll usage in
lib/events
2007-10-10 14:52:21 -05:00
Jelmer Vernooij
1193c75962 r22827: Change license to LGPL (discussed with tridge). 2007-10-10 14:52:21 -05:00
Stefan Metzmacher
be84eb68e1 r22217: merge from samba3 21944:
move acl header checks to the correct place only

metze
2007-10-10 14:50:39 -05:00
Andrew Tridgell
1bb10b6cf7 r20930: use sigaction() instead of signal()
add support for sa_flags argument to event_add_signal(). These are
passed to sigaction(). Special handling is provided for SA_RESETHAND
(which tells the event system to remove the handler after the signal)
and SA_SIGINFO which allows the siginfo structure to be received per
signal
2007-10-10 14:43:55 -05:00
Stefan Metzmacher
b3a3c44f42 r20819: - include system/aio.h
- use full prototype for main
- use ifdef instead if

metze
2007-10-10 14:43:35 -05:00
Stefan Metzmacher
1b10cbb629 r20816: merge from samba3:
include setjmp.h via system/wait.h

metze
2007-10-10 14:43:35 -05:00
Stefan Metzmacher
d46a5efb03 r20788: - remove epoll configure checks from libreplace
- fix epoll configure checks for the epoll and aio
  events backends
- we should only activate the epoll backend if sys/epoll.h
  and epoll_create() are found
- we should only activate the aio backend if sys/epoll.h, epoll_create(),
  libaio.h and io_getevents() are found

hopefully fix the build on 'bnhtest' in the build farm...

metze
2007-10-10 14:40:55 -05:00
Andrew Tridgell
a913732914 r20665: put in my version of aio.h
sorry about that ....
2007-10-10 14:37:28 -05:00
Stefan Metzmacher
ba492e2c3a r20659: add missing system/aio.h
tridge: please commit your version and merge it to both samba3 branches

metze
2007-10-10 14:37:27 -05:00
Andrew Bartlett
2b569c42e0 r19598: Ahead of a merge to current lorikeet-heimdal:
Break up auth/auth.h not to include the world.

Add credentials_krb5.h with the kerberos dependent prototypes.

Andrew Bartlett
2007-10-10 14:25:00 -05:00
Stefan Metzmacher
3df2cb1ea8 r19442: this real cause of the failures on *BSD came from the missing
ICONV dependency and not from a broken configure test
and incorrect ifdef's.

metze
2007-10-10 14:21:32 -05:00
Andrew Tridgell
e6baa13e1f r19438: try to fix up the build breakages on BSD systems due to incorrectly
detecting iconv.h
2007-10-10 14:21:31 -05:00
Stefan Metzmacher
9c74964b61 r19122: merge from samba3:
sync system/iconv.h

metze
2007-10-10 14:20:37 -05:00
Stefan Metzmacher
f37b13cbe6 r18957: we need to include unistd.h in system/network.h because
it contains the ioctl() prototype on some systems
and we need to make sure it gets included before socket_wrapper
defines ioctl swrap_ioctl

metze
2007-10-10 14:20:24 -05:00
Stefan Metzmacher
dfaccdca1b r18947: overload listen() and ioctl() in socket_wrapper
metze
2007-10-10 14:20:23 -05:00
Stefan Metzmacher
26228e4b2e r18593: try to get the same socket_wrapper file building in samba3 and samba4
this is preparation of adding libreplace to samba3 later.

metze
2007-10-10 14:18:54 -05:00
Andrew Tridgell
025b142ff2 r18400: move MAP_FAILED define to lib/replace/system/shmem.h 2007-10-10 14:18:23 -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