Merge "Add _SC_UIO_MAXIOV as a synonym for _SC_IOV_MAX."

am: d3aa44f7e9

Change-Id: Iefc3d62d42f838a7cdb37edf258b78e7b8b2d05e
This commit is contained in:
Elliott Hughes 2018-10-10 10:01:12 -07:00 committed by android-build-merger
commit af32e53777
2 changed files with 3 additions and 0 deletions

View file

@ -73,6 +73,7 @@
#define _SC_XOPEN_LEGACY 0x0024
#define _SC_ATEXIT_MAX 0x0025
#define _SC_IOV_MAX 0x0026
#define _SC_UIO_MAXIOV _SC_IOV_MAX
#define _SC_PAGESIZE 0x0027
#define _SC_PAGE_SIZE 0x0028
#define _SC_XOPEN_UNIX 0x0029

View file

@ -886,6 +886,8 @@ TEST(UNISTD_TEST, sysconf) {
VerifySysconf(_SC_XOPEN_VERSION, "_SC_XOPEN_VERSION", [](long v){return v == _XOPEN_VERSION && errno == 0;});
VERIFY_SYSCONF_POSITIVE(_SC_ATEXIT_MAX);
VERIFY_SYSCONF_POSITIVE(_SC_IOV_MAX);
VERIFY_SYSCONF_POSITIVE(_SC_UIO_MAXIOV);
EXPECT_EQ(sysconf(_SC_IOV_MAX), sysconf(_SC_UIO_MAXIOV));
VERIFY_SYSCONF_POSITIVE(_SC_PAGESIZE);
VERIFY_SYSCONF_POSITIVE(_SC_PAGE_SIZE);
VerifySysconf(_SC_PAGE_SIZE, "_SC_PAGE_SIZE",