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

53 Commits

Author SHA1 Message Date
Stefan Metzmacher
6afef7d624 r26550: libreplace: fallback to __ss_family of struct sockaddr_storage
metze
(This used to be commit 11bdc9bed8)
2007-12-21 06:28:49 +01:00
Jelmer Vernooij
89f34bb213 r26507: Fix function signature for freeifaddrs.
(This used to be commit cc873bdd2e)
2007-12-21 05:51:13 +01:00
Jelmer Vernooij
83655ec0dd r26497: Fix return type for freeifaddrs().
(This used to be commit 8c65053f51)
2007-12-21 05:50:51 +01:00
Jelmer Vernooij
af3c0b9324 r26492: Some hosts have a define called ifa_dstaddr.
(This used to be commit c4cd935ee7)
2007-12-21 05:50:47 +01:00
Jelmer Vernooij
958864ccdf r26469: Fix paths, only include IPv4 addresses for now.
(This used to be commit fa9e3b6fa8)
2007-12-21 05:50:32 +01:00
Jelmer Vernooij
be4decb2b7 r26467: Use getifaddrs() for interface enumeration and provide replacements for platforms that don't have it in lib/replace.
(This used to be commit 9b4924fbd8)
2007-12-21 05:50:31 +01:00
Michael Adam
cbdad76b0d 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
(This used to be commit df3e151992)
2007-12-21 05:47:30 +01:00
Michael Adam
b08a82de58 r26254: Add check for PPC statfs.h to workaround for broken capability.h.
Synced from Samba3.

Michael
(This used to be commit dfdfac2b57)
2007-12-21 05:47:30 +01:00
Michael Adam
9e367b13d9 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
(This used to be commit 4d1df9c0b4)
2007-12-21 05:47:30 +01:00
Stefan Metzmacher
b24e7a1505 r26102: libreplace: remove system/printing.h as it only contains samba3 stuff
metze
(This used to be commit 1ecb4ec01b)
2007-12-21 05:46:04 +01:00
Stefan Metzmacher
319ecac5b1 r25910: Try and fix the Solaris build by adding a missing define
(from Jerry).
Jeremy

merge from v3-2-test commit a68bbea0d4
(This used to be commit b833dce5e6)
2007-12-21 05:44:50 +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
49cb694041 r25867: libreplace: solaris has different prototypes for getpwent_r and getgrent_r
metze
(This used to be commit 44250ac6f9)
2007-12-21 05:44:33 +01:00
Stefan Metzmacher
29598b83e0 r25865: libreplace: check for nss passwd|group get*_r functions
metze
(This used to be commit 98095b3425)
2007-12-21 05:44:32 +01:00
Stefan Metzmacher
9ed91eabdd r25863: libreplace: we need include <unistd.h> before nss_wrapper.h
metze
(This used to be commit a16f0e3cdb)
2007-12-21 05:44:31 +01:00
Stefan Metzmacher
4d354fd583 r25838: libreplace: include nss_wrapper.h if NSS_WRAPPER is defined
metze
(This used to be commit 17f9189fb4)
2007-12-21 05:44:19 +01:00
Stefan Metzmacher
74a2b05793 r25728: [libreplace] define AI_NUMERICSERV as it's used in getaddrinfo.c
metze
(This used to be commit 5648c8a0de)
2007-12-21 05:43:31 +01:00
Stefan Metzmacher
88f6c5a1d2 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
(This used to be commit 57d5cf4b5f)
2007-12-21 05:43:29 +01:00
Stefan Metzmacher
31569f1c88 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
(This used to be commit 8b92b81101)
2007-12-21 05:43:26 +01:00
Stefan Metzmacher
582496f5d0 r25715: [libreplace] move definition of struct addrinfo so that it can use socklen_t
metze
(This used to be commit 12cec014c4)
2007-12-21 05:43:25 +01:00
Stefan Metzmacher
c01f61340b r25714: [libreplace] move define of a constant to near to the others
metze
(This used to be commit 8bd2cf71be)
2007-12-21 05:43:25 +01:00
Stefan Metzmacher
1cfd89c6aa r25713: [libreplace] include socket_wrapper.h after we have typedef'ed socklen_t
metze
(This used to be commit a3657a4e71)
2007-12-21 05:43:24 +01:00
Stefan Metzmacher
9f53479997 r25687: Move #defined for getaddrinfo into network.h (as other
defines). Allows RHEL4 compile to work.
Jeremy.
(cherry picked from commit 0ffdf4fdee)
(This used to be commit facb811bb3)
2007-12-21 05:43:14 +01:00
Stefan Metzmacher
c68e3d8d65 r25685: rename getsmbpass -> rep_getpass and provide the function prototype
metze
(cherry picked from commit 96820f8d8f)
(This used to be commit cd5069a8ca)
2007-12-21 05:43:13 +01:00
Stefan Metzmacher
ce7a3abcd8 r25677: add missing stuff from samba3
metze
(This used to be commit d286c0533d)
2007-12-21 05:43:09 +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
Stefan Metzmacher
39f5745c16 r25597: HPUX doesn't have INET_ADDRSTRLEN defined
metze
(This used to be commit f9696109cc)
2007-10-10 15:08:02 -05: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
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
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
Andrew Tridgell
9c6c4848c9 r23237: update lib/replace from ctdb
(This used to be commit 361c5995bc)
2007-10-10 14:53:05 -05:00
Andrew Tridgell
bc02bba449 r22829: system/select.h needs to bring in epoll.h for epoll usage in
lib/events
(This used to be commit 2c9d0b57f9)
2007-10-10 14:52:21 -05:00
Jelmer Vernooij
c3b00b471a r22827: Change license to LGPL (discussed with tridge).
(This used to be commit 1193c75962)
2007-10-10 14:52:21 -05:00
Stefan Metzmacher
6262602b4f r22217: merge from samba3 21944:
move acl header checks to the correct place only

metze
(This used to be commit be84eb68e1)
2007-10-10 14:50:39 -05:00
Andrew Tridgell
cf8eef4ad8 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
(This used to be commit 1bb10b6cf7)
2007-10-10 14:43:55 -05:00
Stefan Metzmacher
0ce02a2c0e r20819: - include system/aio.h
- use full prototype for main
- use ifdef instead if

metze
(This used to be commit b3a3c44f42)
2007-10-10 14:43:35 -05:00
Stefan Metzmacher
71f6a4d05b r20816: merge from samba3:
include setjmp.h via system/wait.h

metze
(This used to be commit 1b10cbb629)
2007-10-10 14:43:35 -05:00
Stefan Metzmacher
274df78541 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
(This used to be commit d46a5efb03)
2007-10-10 14:40:55 -05:00
Andrew Tridgell
4056528f72 r20665: put in my version of aio.h
sorry about that ....
(This used to be commit a913732914)
2007-10-10 14:37:28 -05:00
Stefan Metzmacher
4a1ac217f4 r20659: add missing system/aio.h
tridge: please commit your version and merge it to both samba3 branches

metze
(This used to be commit ba492e2c3a)
2007-10-10 14:37:27 -05:00
Andrew Bartlett
13dbee3ffe 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
(This used to be commit 2b569c42e0)
2007-10-10 14:25:00 -05:00
Stefan Metzmacher
2e468ee5df 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
(This used to be commit 3df2cb1ea8)
2007-10-10 14:21:32 -05:00
Andrew Tridgell
5a4b133d1c r19438: try to fix up the build breakages on BSD systems due to incorrectly
detecting iconv.h
(This used to be commit e6baa13e1f)
2007-10-10 14:21:31 -05:00
Stefan Metzmacher
2210d51e4e r19122: merge from samba3:
sync system/iconv.h

metze
(This used to be commit 9c74964b61)
2007-10-10 14:20:37 -05:00
Stefan Metzmacher
c0c135c774 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
(This used to be commit f37b13cbe6)
2007-10-10 14:20:24 -05:00
Stefan Metzmacher
174742a74c r18947: overload listen() and ioctl() in socket_wrapper
metze
(This used to be commit dfaccdca1b)
2007-10-10 14:20:23 -05:00
Stefan Metzmacher
4a854fe809 r18593: try to get the same socket_wrapper file building in samba3 and samba4
this is preparation of adding libreplace to samba3 later.

metze
(This used to be commit 26228e4b2e)
2007-10-10 14:18:54 -05:00
Andrew Tridgell
513568b7e2 r18400: move MAP_FAILED define to lib/replace/system/shmem.h
(This used to be commit 025b142ff2)
2007-10-10 14:18:23 -05:00