2011-04-27 23:42:16 +02:00
|
|
|
#include <x86/limits.h>
|
|
|
|
|
|
|
|
#define __POINTER_BIT 64
|
Add Socket Libraries.
Add Posix functions for porting compatibility.
Fix compliance issues with ISO/IEC 9899:199409
New Functions:
setenv(), fparseln(), GetFileNameFromPath(), rename(),
realpath(), setprogname(), getprogname(), strlcat(), strlcpy(),
strsep(), setitimer(), getitimer(), timegm(), getopt(), basename(),
mkstemp(), ffs(), vsnprintf(), snprintf(), getpass(), usleep(), select(),
writev(), strcasecmp(), getcwd(), chdir(), tcgetpgrp(), getpgrp(), gettimeofday(),
bcopy(),
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12061 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-30 02:30:44 +02:00
|
|
|
|
|
|
|
#if defined(__GNUC__)
|
2011-09-01 23:56:45 +02:00
|
|
|
#if __GNUC_PREREQ__(4,4)
|
|
|
|
#define __LONG_BIT 64
|
Add Socket Libraries.
Add Posix functions for porting compatibility.
Fix compliance issues with ISO/IEC 9899:199409
New Functions:
setenv(), fparseln(), GetFileNameFromPath(), rename(),
realpath(), setprogname(), getprogname(), strlcat(), strlcpy(),
strsep(), setitimer(), getitimer(), timegm(), getopt(), basename(),
mkstemp(), ffs(), vsnprintf(), snprintf(), getpass(), usleep(), select(),
writev(), strcasecmp(), getcwd(), chdir(), tcgetpgrp(), getpgrp(), gettimeofday(),
bcopy(),
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12061 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-30 02:30:44 +02:00
|
|
|
|
2011-09-01 23:56:45 +02:00
|
|
|
/** minimum value for an object of type long int **/
|
|
|
|
#define __LONG_MIN (-9223372036854775807LL - 1LL) // -(2^63 - 2)
|
Add Socket Libraries.
Add Posix functions for porting compatibility.
Fix compliance issues with ISO/IEC 9899:199409
New Functions:
setenv(), fparseln(), GetFileNameFromPath(), rename(),
realpath(), setprogname(), getprogname(), strlcat(), strlcpy(),
strsep(), setitimer(), getitimer(), timegm(), getopt(), basename(),
mkstemp(), ffs(), vsnprintf(), snprintf(), getpass(), usleep(), select(),
writev(), strcasecmp(), getcwd(), chdir(), tcgetpgrp(), getpgrp(), gettimeofday(),
bcopy(),
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12061 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-30 02:30:44 +02:00
|
|
|
|
2011-09-01 23:56:45 +02:00
|
|
|
/** maximum value for an object of type long int **/
|
|
|
|
#define __LONG_MAX (9223372036854775807LL) // 2^63 - 1
|
|
|
|
|
|
|
|
/** maximum value for an object of type unsigned long int **/
|
|
|
|
#define __ULONG_MAX 0xFFFFFFFFFFFFFFFFULL // 2^64 - 1
|
Add Socket Libraries.
Add Posix functions for porting compatibility.
Fix compliance issues with ISO/IEC 9899:199409
New Functions:
setenv(), fparseln(), GetFileNameFromPath(), rename(),
realpath(), setprogname(), getprogname(), strlcat(), strlcpy(),
strsep(), setitimer(), getitimer(), timegm(), getopt(), basename(),
mkstemp(), ffs(), vsnprintf(), snprintf(), getpass(), usleep(), select(),
writev(), strcasecmp(), getcwd(), chdir(), tcgetpgrp(), getpgrp(), gettimeofday(),
bcopy(),
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12061 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-30 02:30:44 +02:00
|
|
|
#else
|
2011-09-01 23:56:45 +02:00
|
|
|
#define __LONG_BIT 32
|
|
|
|
/** minimum value for an object of type long int **/
|
|
|
|
#define __LONG_MIN (-2147483647L - 1L) // -(2^31 - 1)
|
|
|
|
|
|
|
|
/** maximum value for an object of type long int **/
|
|
|
|
#define __LONG_MAX 2147483647L // 2^31 - 1
|
|
|
|
|
|
|
|
/** maximum value for an object of type unsigned long int **/
|
|
|
|
#define __ULONG_MAX 0xffffffff // 2^32 - 1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#else /* NOT defined(__GNUC__) */
|
Add Socket Libraries.
Add Posix functions for porting compatibility.
Fix compliance issues with ISO/IEC 9899:199409
New Functions:
setenv(), fparseln(), GetFileNameFromPath(), rename(),
realpath(), setprogname(), getprogname(), strlcat(), strlcpy(),
strsep(), setitimer(), getitimer(), timegm(), getopt(), basename(),
mkstemp(), ffs(), vsnprintf(), snprintf(), getpass(), usleep(), select(),
writev(), strcasecmp(), getcwd(), chdir(), tcgetpgrp(), getpgrp(), gettimeofday(),
bcopy(),
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12061 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-30 02:30:44 +02:00
|
|
|
#define __LONG_BIT 32
|
|
|
|
/** minimum value for an object of type long int **/
|
|
|
|
#define __LONG_MIN (-2147483647L - 1L) // -(2^31 - 1)
|
|
|
|
|
|
|
|
/** maximum value for an object of type long int **/
|
2011-09-01 23:56:45 +02:00
|
|
|
#define __LONG_MAX 2147483647L // 2^31 - 1
|
Add Socket Libraries.
Add Posix functions for porting compatibility.
Fix compliance issues with ISO/IEC 9899:199409
New Functions:
setenv(), fparseln(), GetFileNameFromPath(), rename(),
realpath(), setprogname(), getprogname(), strlcat(), strlcpy(),
strsep(), setitimer(), getitimer(), timegm(), getopt(), basename(),
mkstemp(), ffs(), vsnprintf(), snprintf(), getpass(), usleep(), select(),
writev(), strcasecmp(), getcwd(), chdir(), tcgetpgrp(), getpgrp(), gettimeofday(),
bcopy(),
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12061 6f19259b-4bc3-4df7-8a09-765794883524
2011-07-30 02:30:44 +02:00
|
|
|
|
|
|
|
/** maximum value for an object of type unsigned long int **/
|
|
|
|
#define __ULONG_MAX 0xffffffff // 2^32 - 1
|
|
|
|
#endif
|