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 */
9
extern
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 */
12
extern
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
getpeereid
int getpeereid(int socket, uid_t *euid, gid_t *egid)
Definition
getpeereid.c:33
wcstombs_l
size_t wcstombs_l(char *dest, const wchar_t *src, size_t n, locale_t loc)
fb
static int fb(int x)
Definition
preproc-init.c:92
locale_t
#define locale_t
Definition
win32_port.h:429
gid_t
int gid_t
Definition
win32_port.h:235
socket
#define socket(af, type, protocol)
Definition
win32_port.h:495
uid_t
int uid_t
Definition
win32_port.h:234
src
include
port
aix.h
Generated on Sat Feb 28 2026 00:13:16 for PostgreSQL Source Code by
1.9.8