diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:44:07 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-27 09:44:07 +0000 |
commit | 39ce00b8d520cbecbd6af87257e8fb11df0ec273 (patch) | |
tree | 4c21a2674c19e5c44be3b3550b476b9e63d8ae3d /OS/unsupported/os.h-cygwin | |
parent | Initial commit. (diff) | |
download | exim4-39ce00b8d520cbecbd6af87257e8fb11df0ec273.tar.xz exim4-39ce00b8d520cbecbd6af87257e8fb11df0ec273.zip |
Adding upstream version 4.94.2.upstream/4.94.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'OS/unsupported/os.h-cygwin')
-rw-r--r-- | OS/unsupported/os.h-cygwin | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/OS/unsupported/os.h-cygwin b/OS/unsupported/os.h-cygwin new file mode 100644 index 0000000..6ef59e0 --- /dev/null +++ b/OS/unsupported/os.h-cygwin @@ -0,0 +1,41 @@ +/* Exim: OS-specific C header file for Cygwin */ + +/* This code was supplied by Pierre A. Humblet <Pierre.Humblet@ieee.org> + December 2002. Updated Jan 2015. */ + +/* Redefine the set*id calls to run when faking root */ +#include <unistd.h> /* Do not redefine in unitsd.h */ +int cygwin_setuid(uid_t uid ); +int cygwin_setgid(gid_t gid ); +#define setuid cygwin_setuid +#define setgid cygwin_setgid + +#define os_strsignal strsignal +#define OS_STRSIGNAL +#define BASE_62 36 /* Windows aliases lower and upper cases in filenames. + Consider reducing MAX_LOCALHOST_NUMBER */ +#define CRYPT_H +#define HAVE_MMAP +#define HAVE_SYS_VFS_H +#define NO_IP_VAR_H +#define NO_IP_OPTIONS +/* Defining LOAD_AVG_NEEDS_ROOT causes an initial + call to os_getloadavg. In our case this is beneficial + because it initializes the counts */ +#define LOAD_AVG_NEEDS_ROOT + +typedef struct flock flock_t; + +/* Macro to define variable length SID structures */ +#define SID(n, name, sid...) \ +struct { \ + BYTE Revision; \ + BYTE SubAuthorityCount; \ + SID_IDENTIFIER_AUTHORITY IdentifierAuthority; \ + DWORD SubAuthority[n]; \ +} name = { SID_REVISION, n, {SECURITY_NT_AUTHORITY}, {sid}} + +/* default is non-const */ +#define ICONV_ARG2_TYPE const char ** + +/* End */ |