summaryrefslogtreecommitdiff
path: root/openbsd-compat/port-aix.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/port-aix.h')
-rw-r--r--openbsd-compat/port-aix.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/openbsd-compat/port-aix.h b/openbsd-compat/port-aix.h
index 4abe00316..09e7f9e97 100644
--- a/openbsd-compat/port-aix.h
+++ b/openbsd-compat/port-aix.h
@@ -1,3 +1,5 @@
1/* $Id: port-aix.h,v 1.14 2003/08/29 16:59:52 mouring Exp $ */
2
1/* 3/*
2 * 4 *
3 * Copyright (c) 2001 Gert Doering. All rights reserved. 5 * Copyright (c) 2001 Gert Doering. All rights reserved.
@@ -21,11 +23,24 @@
21 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 *
25 */ 26 */
26 27
27#ifdef _AIX 28#ifdef _AIX
28 29
30#ifdef WITH_AIXAUTHENTICATE
31# include <login.h>
32# include <userpw.h>
33# include <usersec.h>
34# ifdef HAVE_SYS_AUDIT_H
35# include <sys/audit.h>
36# endif
37#endif
38
39/* Some versions define r_type in the above headers, which causes a conflict */
40#ifdef r_type
41# undef r_type
42#endif
43
29/* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */ 44/* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */
30#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP) 45#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP)
31# define nanosleep(a,b) nsleep(a,b) 46# define nanosleep(a,b) nsleep(a,b)
@@ -36,5 +51,12 @@
36# include <sys/timers.h> 51# include <sys/timers.h>
37#endif 52#endif
38 53
39void aix_usrinfo(struct passwd *pw); 54#ifdef WITH_AIXAUTHENTICATE
55# define CUSTOM_FAILED_LOGIN 1
56void record_failed_login(const char *, const char *);
57void aix_setauthdb(const char *);
58#endif
59
60void aix_usrinfo(struct passwd *);
61void aix_remove_embedded_newlines(char *);
40#endif /* _AIX */ 62#endif /* _AIX */