summaryrefslogtreecommitdiffhomepage
path: root/test/syscalls/linux/shm.cc
diff options
context:
space:
mode:
authorAdin Scannell <ascannell@google.com>2020-01-21 16:16:51 -0800
committergVisor bot <gvisor-bot@google.com>2020-01-21 17:28:57 -0800
commit2296b4734462b6eeef383ea58e2b1b0b1a214d76 (patch)
treed43601b814bef410fa660bad27acda667fa16d75 /test/syscalls/linux/shm.cc
parent0693fb05d15dff29cba51988f19a8d5cea784162 (diff)
Change to standard types.
PiperOrigin-RevId: 290846481
Diffstat (limited to 'test/syscalls/linux/shm.cc')
-rw-r--r--test/syscalls/linux/shm.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/syscalls/linux/shm.cc b/test/syscalls/linux/shm.cc
index 80700615f..7ba752599 100644
--- a/test/syscalls/linux/shm.cc
+++ b/test/syscalls/linux/shm.cc
@@ -30,7 +30,7 @@ namespace {
using ::testing::_;
-const uint64 kAllocSize = kPageSize * 128ULL;
+const uint64_t kAllocSize = kPageSize * 128ULL;
PosixErrorOr<char*> Shmat(int shmid, const void* shmaddr, int shmflg) {
const intptr_t addr =
@@ -320,11 +320,11 @@ TEST(ShmTest, RemovedSegmentsAreDestroyed) {
Shmget(IPC_PRIVATE, kAllocSize, IPC_CREAT | 0777));
const char* addr = ASSERT_NO_ERRNO_AND_VALUE(Shmat(shm.id(), nullptr, 0));
- const uint64 alloc_pages = kAllocSize / kPageSize;
+ const uint64_t alloc_pages = kAllocSize / kPageSize;
struct shm_info info;
ASSERT_NO_ERRNO(Shmctl(0 /*ignored*/, SHM_INFO, &info));
- const uint64 before = info.shm_tot;
+ const uint64_t before = info.shm_tot;
ASSERT_NO_ERRNO(shm.Rmid());
ASSERT_NO_ERRNO(Shmdt(addr));
@@ -400,7 +400,7 @@ TEST(ShmDeathTest, SegmentNotAccessibleAfterDetach) {
TEST(ShmTest, RequestingSegmentSmallerThanSHMMINFails) {
struct shminfo info;
ASSERT_NO_ERRNO(Shmctl(0, IPC_INFO, &info));
- const uint64 size = info.shmmin - 1;
+ const uint64_t size = info.shmmin - 1;
EXPECT_THAT(Shmget(IPC_PRIVATE, size, IPC_CREAT | 0777),
PosixErrorIs(EINVAL, _));
}
@@ -408,7 +408,7 @@ TEST(ShmTest, RequestingSegmentSmallerThanSHMMINFails) {
TEST(ShmTest, RequestingSegmentLargerThanSHMMAXFails) {
struct shminfo info;
ASSERT_NO_ERRNO(Shmctl(0, IPC_INFO, &info));
- const uint64 size = info.shmmax + kPageSize;
+ const uint64_t size = info.shmmax + kPageSize;
EXPECT_THAT(Shmget(IPC_PRIVATE, size, IPC_CREAT | 0777),
PosixErrorIs(EINVAL, _));
}