d044f17e25edcb535bea35d98e8a931a667959cd |
|
14-Sep-2017 |
Cyril Hrubis <chrubis@suse.cz> |
Smash size_t and off_t printf() formatting mistakes This fixes bunch of warnings when LTP is compiled for 32bit where size_t and ssize_t are 32bit but off_t is 64 bit. Here is a simple guide how to print size_t and off_t: * size_t -> %zu * ssize_t -> %zi or %zd * off_t -> %li + cast to (long) Common mistake is to print the st_size from struct stat with %zu but st_size is defined as off_t. Also don't forget that sizeof(foo) returns size_t. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/openat/openat03.c
|
adf409902aa5cbc35411d47807dd483f15e03966 |
|
05-Apr-2016 |
Cyril Hrubis <chrubis@suse.cz> |
syscalls/open14,openat03: Fix TBROK on Btrfs I'm getting ENOTSUP when I try to open() a file with O_TMPFILE on Btrfs. Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/openat/openat03.c
|
4a03b6d76680690b155784b9ef2f35c069a4f372 |
|
29-Dec-2015 |
Alexey Kodanev <alexey.kodanev@oracle.com> |
kernel/syscalls: add new test with 'open() + O_TMPFILE' Test does the following steps: * create an unnamed temporary file in TMP directory, * write data into it, * check that file not visible in the filesystem, * name the file and check that it becomes visible in FS, * create multiple directories and related temporary files, * create multiple directories and link files into them. Check that files permissions correspond to the ones specified with open()/openat(). 'openat() + O_TMPFILE' test repeats the same steps. Signed-off-by: Alexey Kodanev <alexey.kodanev@oracle.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>
/external/ltp/testcases/kernel/syscalls/openat/openat03.c
|