port-aix.h revision 113908
1107120Sjulian/*
2107120Sjulian *
3115185Sru * Copyright (c) 2001 Gert Doering.  All rights reserved.
4107120Sjulian *
5107120Sjulian * Redistribution and use in source and binary forms, with or without
6107120Sjulian * modification, are permitted provided that the following conditions
7107120Sjulian * are met:
8107120Sjulian * 1. Redistributions of source code must retain the above copyright
9107120Sjulian *    notice, this list of conditions and the following disclaimer.
10107120Sjulian * 2. Redistributions in binary form must reproduce the above copyright
11107120Sjulian *    notice, this list of conditions and the following disclaimer in the
12115185Sru *    documentation and/or other materials provided with the distribution.
13107120Sjulian *
14107120Sjulian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
15107120Sjulian * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
16107120Sjulian * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
17107120Sjulian * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
18107120Sjulian * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
19107120Sjulian * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
20107120Sjulian * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
21107120Sjulian * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22107120Sjulian * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23107120Sjulian * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24115185Sru *
25121054Semax */
26107120Sjulian
27115185Sru#ifdef _AIX
28107120Sjulian
29107120Sjulian/* AIX 4.2.x doesn't have nanosleep but does have nsleep which is equivalent */
30107120Sjulian#if !defined(HAVE_NANOSLEEP) && defined(HAVE_NSLEEP)
31107120Sjulian# define nanosleep(a,b) nsleep(a,b)
32115185Sru#endif
33115185Sru
34107120Sjulian/* For struct timespec on AIX 4.2.x */
35107120Sjulian#ifdef HAVE_SYS_TIMERS_H
36122452Semax# include <sys/timers.h>
37107120Sjulian#endif
38107120Sjulian
39115185Sruvoid aix_usrinfo(struct passwd *pw);
40115185Sru#endif /* _AIX */
41115185Sru