/* LSB flags overrides Some interfaces are in LSB but do not have certain options, i.e. some flags are missing. This doesn't cause errors in dynamic linking, but can cause 1) Absence of flag in interface's implementation as LSB doesn't require it That's unlikely to happen, because hardly anyone would re-compile glibc or something else like in gentoo with its use-flags. 2) Not enough quality for interface - the flag is not tested. OpenJDK's code is very vulnerable and workarounds are always added in these cases. But if a flag requires non-lsb workaround, then this flag is better be added and tested. So, this file provides the flags and other compile-time stuff that is declared in headers, that are included to LSB, but is itself absent from LSB. */ #ifndef _LSB_FLAGS_H #define _LSB_FLAGS_H #ifndef __LSB_PROVIDES_MAP_NORESERVE // from #define MAP_NORESERVE 0x04000 #endif // For register flags #include "static/lsb_ucontext.h" // To use NAME_MAX in some places #ifndef __LSB_PROVIDES_NAME_MAX // It's 256, but we'll give it more--just in case #define NAME_MAX_FORBIDDEN 1024 #else #define NAME_MAX_FORBIDDEN NAME_MAX #endif // SO_PEERCRED. Unix domain socket to allow inter-process (or inter-thread) // communication with authorization with uids and gids. #ifndef __LSB_PROVIDES_SO_PEERCRED // from 2.6.30 kernel sources #if (defined __powerpc__) || (defined __powerpc64__) #define SO_PEERCRED 21 #else #define SO_PEERCRED 17 #endif //now we also need structure to store cred_info. That's simple. struct ucred { pid_t pid; /* PID of sending process. */ uid_t uid; /* UID of sending process. */ gid_t gid; /* GID of sending process. */ }; #endif #include "static/lsb_dlfcn.h" #ifndef __LSB_PROVIDES_IFHWADDRLEN // defined in net/if.h #define IFHWADDRLEN 6 #endif #ifndef __LSB_PROVIDES_IPV6_CHECKSUM #define IPV6_CHECKSUM 7 #endif #ifndef __LSB_PROVIDES_MSG_FIN //taken from glibc sources. #define MSG_FIN 0x200 #endif // for alsa missing interfaces #include "static/alsa/lsb_seq_event.h" #ifndef __LSB_PROVIDES_FT_StreamRec //that's just an omission in freetype #include "ft2build.h" #include FT_SYSTEM_H typedef struct FT_StreamRec_ FT_StreamRec; #endif #endif //include sentry