version 1.54, 2002/01/04 19:40:30
|
version 1.54.2.3, 2003/03/05 23:48:31
|
Line 1
|
Line 1
|
/* Generic socket.h */ |
/* Generic socket.h */ |
/* $OpenLDAP: pkg/ldap/include/ac/socket.h,v 1.53 2001/12/28 05:12:17 hyc Exp $ */ |
/* $OpenLDAP: pkg/ldap/include/ac/socket.h,v 1.54.2.2 2003/02/09 17:02:17 kurt Exp $ */ |
/* |
/* |
* Copyright 1998-2002 The OpenLDAP Foundation, Redwood City, California, USA |
* Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA |
* All rights reserved. |
* All rights reserved. |
* |
* |
* Redistribution and use in source and binary forms, with or without |
* Redistribution and use in source and binary forms, with or without |
Line 81
|
Line 81
|
# define ioctl_t u_long |
# define ioctl_t u_long |
# define AC_SOCKET_INVALID ((unsigned int) ~0) |
# define AC_SOCKET_INVALID ((unsigned int) ~0) |
|
|
# if SD_BOTH |
# ifdef SD_BOTH |
# define tcp_close( s ) (shutdown( s, SD_BOTH ), closesocket( s )) |
# define tcp_close( s ) (shutdown( s, SD_BOTH ), closesocket( s )) |
# else |
# else |
# define tcp_close( s ) closesocket( s ) |
# define tcp_close( s ) closesocket( s ) |
Line 127 LBER_F( char * ) ber_pvt_wsa_err2string
|
Line 127 LBER_F( char * ) ber_pvt_wsa_err2string
|
# define tcp_read( s, buf, len) read( s, buf, len ) |
# define tcp_read( s, buf, len) read( s, buf, len ) |
# define tcp_write( s, buf, len) write( s, buf, len ) |
# define tcp_write( s, buf, len) write( s, buf, len ) |
|
|
# if SHUT_RDWR |
# ifdef SHUT_RDWR |
# define tcp_close( s ) (shutdown( s, SHUT_RDWR ), close( s )) |
# define tcp_close( s ) (shutdown( s, SHUT_RDWR ), close( s )) |
# else |
# else |
# define tcp_close( s ) close( s ) |
# define tcp_close( s ) close( s ) |
Line 197 LDAP_F (int) ldap_pvt_inet_aton LDAP_P((
|
Line 197 LDAP_F (int) ldap_pvt_inet_aton LDAP_P((
|
# define AC_GAI_STRERROR(x) (gai_strerror((x))) |
# define AC_GAI_STRERROR(x) (gai_strerror((x))) |
# else |
# else |
# define AC_GAI_STRERROR(x) (ldap_pvt_gai_strerror((x))) |
# define AC_GAI_STRERROR(x) (ldap_pvt_gai_strerror((x))) |
char * ldap_pvt_gai_strerror( int ); |
LDAP_F (char *) ldap_pvt_gai_strerror( int ); |
# endif |
# endif |
#endif |
#endif |
|
|
|
#ifndef HAVE_GETPEEREID |
|
LDAP_LUTIL_F( int ) getpeereid( int s, uid_t *, gid_t * ); |
|
#endif |
|
|
|
/* DNS RFC defines max host name as 255. New systems seem to use 1024 */ |
|
#ifndef NI_MAXHOST |
|
#define NI_MAXHOST 256 |
|
#endif |
|
|
#endif /* _AC_SOCKET_H_ */ |
#endif /* _AC_SOCKET_H_ */ |