PostgreSQL Source Code git master
Loading...
Searching...
No Matches
aix.h
Go to the documentation of this file.
1/*
2 * src/include/port/aix.h
3 */
4#include <stddef.h> /* for size_t */
5#include <sys/types.h> /* for uid_t and gid_t */
6#include <wchar.h> /* for wchar_t and locale_t */
7
8/* AIX has getpeereid(), but fails to declare it as of 7.3 */
9extern int getpeereid(int socket, uid_t *euid, gid_t *egid);
10
11/* AIX has wcstombs_l(), but fails to declare it as of 7.3 */
12extern size_t wcstombs_l(char *dest, const wchar_t *src, size_t n,
13 locale_t loc);
14
15/*
16 * AIX doesn't seem to have ever modernized pam_appl.h to include
17 * "const" in the declaration of PAM conversation procs. We can avoid
18 * a compile error by setting _PAM_LEGACY_NONCONST; that doesn't do
19 * anything in AIX's system headers, but it makes us omit the "const"
20 * in our own code. (Compare solaris.h.)
21 */
22#define _PAM_LEGACY_NONCONST 1
int getpeereid(int socket, uid_t *euid, gid_t *egid)
Definition getpeereid.c:33
size_t wcstombs_l(char *dest, const wchar_t *src, size_t n, locale_t loc)
static int fb(int x)
#define locale_t
Definition win32_port.h:429
int gid_t
Definition win32_port.h:235
#define socket(af, type, protocol)
Definition win32_port.h:495
int uid_t
Definition win32_port.h:234