safe_macros: turn function with rlim_t into static inline
This is followup to patch:
commit 9120d8a221ec2cc623752b8a9eec4cd16f7b082a
Author: Jan Stancek <jstancek@redhat.com>
Date: Thu Aug 21 11:51:34 2014 +0200
safe_macros: turn functions with off_t parameter into static inline
The rlim_t behaves exactly same as off_t so SAFE_GETRLIMIT() and
SAFE_SETRLIMIT() must be static inline too.
This fixes truncate03_64 failures on 32 bit x86 which started to fail with:
truncate03 1 TBROK : safe_macros.c:518: truncate03.c:166: setrlimit(1,0xbfc49bf8) failed: errno=EINVAL(22): Invalid argument
truncate03 2 TBROK : safe_macros.c:518: Remaining cases broken
After this patch made use of SAFE_SETRLIMIT():
commit 1b7edcd3156cb84f4def16a4d9b52cff7a6c8c4f
Author: Jan Stancek <jstancek@redhat.com>
Date: Wed Aug 20 11:28:59 2014 +0200
truncate03: impose max file size limit for EFBIG test
Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
2 files changed