Add rlim64_t to libc/include/sys/resource
crosvm is using rlim64_t. Adding for portability. Bug: 255594691 Test: m libc && m bionic Change-Id: I752bfdaa23d900278fe7224306d785b0c9f67d3f
This commit is contained in:
parent
c40ea825e7
commit
056549795c
2 changed files with 2 additions and 0 deletions
|
@ -41,6 +41,7 @@ __BEGIN_DECLS
|
|||
#define RLIM_SAVED_MAX RLIM_INFINITY
|
||||
|
||||
typedef unsigned long rlim_t;
|
||||
typedef unsigned long long rlim64_t;
|
||||
|
||||
int getrlimit(int __resource, struct rlimit* __limit);
|
||||
int setrlimit(int __resource, const struct rlimit* __limit);
|
||||
|
|
|
@ -26,6 +26,7 @@ TEST(sys_resource, rlimit_struct_size) {
|
|||
ASSERT_NE(sizeof(rlimit), sizeof(rlimit64));
|
||||
ASSERT_EQ(4U, sizeof(rlim_t));
|
||||
#endif
|
||||
ASSERT_EQ(8U, sizeof(rlim64_t));
|
||||
}
|
||||
|
||||
class SysResourceTest : public ::testing::Test {
|
||||
|
|
Loading…
Reference in a new issue