plateform
stringclasses
1 value
repo_name
stringclasses
2 values
name
stringlengths
1
78
ext
stringclasses
2 values
path
stringlengths
15
1.11k
size
int64
1
8.55M
source_encoding
stringclasses
11 values
md5
stringlengths
32
32
text
stringlengths
0
8.49M
google
android
pause01
.c
platform/external/ltp/testcases/kernel/syscalls/pause/pause01.c
1,060
utf_8
c2451ab2747f3f6970f5ffcf117ed56a
*/ #include <errno.h> #include <signal.h> #include <stdlib.h> #include "tst_test.h" static void sig_handler(int sig LTP_ATTRIBUTE_UNUSED) { } static void do_child(void) { SAFE_SIGNAL(SIGINT, sig_handler); TST_CHECKPOINT_WAKE(0); TEST(pause()); if (TST_RET != -1) tst_res(TFAIL, "pause() succeeded unexpectedly"); ...
google
android
setegid02
.c
platform/external/ltp/testcases/kernel/syscalls/setegid/setegid02.c
837
utf_8
ead81960d8ec97d07a912164c4cb7536
*/ /*\ * [Description] * * Verify that setegid() fails with EPERM when the calling process is not * privileged and egid does not match the current real group ID, * current effective group ID, or current saved set-group-ID. */ #include <pwd.h> #include "tst_test.h" static struct passwd *ltpuser; static void setup...
google
android
setegid01
.c
platform/external/ltp/testcases/kernel/syscalls/setegid/setegid01.c
1,343
utf_8
44cc6d467f645158d611b32955850d8d
*/ /*\ * [Description] * * Verify that setegid() sets the effective UID of the calling process * correctly, and does not modify the saved GID and real GID. */ #include <pwd.h> #include "tst_test.h" static gid_t nobody_gid; static void setup(void) { struct passwd *nobody; nobody = SAFE_GETPWNAM("nobody"); nobod...
google
android
fsetxattr02
.c
platform/external/ltp/testcases/kernel/syscalls/fsetxattr/fsetxattr02.c
6,386
utf_8
fa3a2a1c9f0f2551fd095799eb0f8888
*/ /* * In the user.* namespace, only regular files and directories can * have extended attributes. Otherwise fsetxattr(2) will return -1 * and set errno to EPERM. * * There are 7 test cases: * 1. Set attribute to a regular file, fsetxattr(2) should succeed * 2. Set attribute to a directory, fsetxattr(2) should...
google
android
fsetxattr01
.c
platform/external/ltp/testcases/kernel/syscalls/fsetxattr/fsetxattr01.c
5,665
utf_8
3a76a2726529b2481a6f5e6ea808831c
*/ /* * Basic tests for fsetxattr(2) and make sure fsetxattr(2) handles error * conditions correctly. * * There are 9 test cases: * 1. Any other flags being set except XATTR_CREATE and XATTR_REPLACE, * fsetxattr(2) should return -1 and set errno to EINVAL * 2. With XATTR_REPLACE flag set but the attribute do...
google
android
send01
.c
platform/external/ltp/testcases/kernel/syscalls/send/send01.c
7,285
utf_8
bd86daf7eb90acab56d241edd2982eae
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Test Name: send01 * * Test Description: * Verify that send() returns the proper errno for various failure cases * * HISTORY * 07/2001 Ported by Wayne Boyer * */ #include <stdio.h> #include <unistd.h> #include <err...
google
android
send02
.c
platform/external/ltp/testcases/kernel/syscalls/send/send02.c
4,019
utf_8
54abe5237dcbda940dba8ac365b477e2
*/ /* * Check that the kernel correctly handles send()/sendto()/sendmsg() calls * with MSG_MORE flag */ #define _GNU_SOURCE #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <sys/ioctl.h> #include <net/if.h> #include <sched.h> #include "tst_test.h" #include "tst_net.h" #define SENDSIZE...
google
android
truncate02
.c
platform/external/ltp/testcases/kernel/syscalls/truncate/truncate02.c
2,437
utf_8
05bf8d13f4451c0ff4bf57682de1d575
* 07/2001 John George */ /*\ * [Description] * * Verify that: * * - truncate(2) truncates a file to a specified length successfully. * - If the file is larger than the specified length, the extra data is lost. * - If the file is shorter than the specified length, the extra data is filled by '0'. * - truncate(...
google
android
truncate03
.c
platform/external/ltp/testcases/kernel/syscalls/truncate/truncate03.c
3,398
utf_8
c8c279e7a37f07541dae228a66ab4f83
* 07/2001 John George */ /*\ * [Description] * * Verify that: * * - truncate(2) returns -1 and sets errno to EACCES if search/write * permission denied for the process on the component of the path prefix * or named file. * - truncate(2) returns -1 and sets errno to ENOTDIR if the component of * the pat...
google
android
readv01
.c
platform/external/ltp/testcases/kernel/syscalls/readv/readv01.c
3,073
utf_8
3fb8ec664615368642d433b48ec82191
*/ /* * DESCRIPTION * Testcase to check the basic functionality of the readv(2) system call. * * ALGORITHM * Create a IO vector, and attempt to readv() various components of it. */ #include <stdlib.h> #include <sys/types.h> #include <sys/uio.h> #include <fcntl.h> #include <memory.h> #include "tst_test.h" /* Note...
google
android
readv02
.c
platform/external/ltp/testcases/kernel/syscalls/readv/readv02.c
2,153
utf_8
d4307d84440723bfed16b58635f704aa
* 07/2001 Ported by Wayne Boyer * 05/2002 Ported by Jacky Malcles */ /*\ * [Description] * * Tests readv() failures: * * - EINVAL the sum of the iov_len values overflows an ssize_t value * - EFAULT buffer is outside the accessible address space * - EINVAL the vector count iovcnt is less than zero * - EISDIR ...
google
android
dup01
.c
platform/external/ltp/testcases/kernel/syscalls/dup/dup01.c
814
utf_8
6e01a78904be7b0568711dc752a8487a
* * 03/30/1992 AUTHOR: William Roske CO-PILOT: Dave Fenner * */ #include "tst_test.h" static int fd; static void verify_dup(void) { TEST(dup(fd)); if (TST_RET < -1) { tst_res(TFAIL, "Invalid dup() return value %ld", TST_RET); } else if (TST_RET == -1) { tst_res(TFAIL | TTERRNO, "dup(%d) Failed", fd); } else...
google
android
dup05
.c
platform/external/ltp/testcases/kernel/syscalls/dup/dup05.c
924
utf_8
62fbc3e796a530e0d510a5102551f348
* * 06/1994 AUTHOR: Richard Logan CO-PILOT: William Roske */ /*\ * [DESCRIPTION] * * Basic test for dup(2) of a named pipe descriptor */ #include <stdio.h> #include "tst_test.h" char Fname[255]; int fd; static void run(void) { TEST(dup(fd)); if (TST_RET == -1) { tst_res(TFAIL | TTERRNO, "dup failed"); } els...
google
android
dup06
.c
platform/external/ltp/testcases/kernel/syscalls/dup/dup06.c
2,631
utf_8
369a4c59502ea1138de2ee88ac43b15d
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* WHAT: Does dup return -1 on the 21st file? HOW: Create up to _NFILE (20) files and check for -1 return on the next attempt Should check NOFILE as well as _NFILE. 19-Jun-84 Dale. */ #include <stdio.h> #i...
google
android
dup03
.c
platform/external/ltp/testcases/kernel/syscalls/dup/dup03.c
1,384
utf_8
e42c261315ea33416d04952b0e25cc7f
* */ /*\ * [Description] * Negative test for dup(2) (too many fds). * * [Algorithm] * Open the maximum allowed number of file descriptors and then try to call * dup() once more and verify it fails with EMFILE. */ #include <stdlib.h> #include "tst_test.h" int *fd; int nfds; static void run(void) { TEST(dup(fd[...
google
android
dup07
.c
platform/external/ltp/testcases/kernel/syscalls/dup/dup07.c
3,453
utf_8
b757b6821f28aac539267fb7090a6ee6
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* WHAT: Is the access mode the same for both file descriptors? 0: read only? 1: write only? 2: read/write? HOW: Creat a file with each access mode; dup each file descriptor; stat ea...
google
android
dup02
.c
platform/external/ltp/testcases/kernel/syscalls/dup/dup02.c
1,107
utf_8
721888a94084af1905e37c0dda072c40
* * 03/30/1992 AUTHOR: Richard Logan CO-PILOT: William Roske * */ /*\ * [Description] * Negative test for dup(2) with bad fds. * * [Algorithm] * Call dup(2) with invalid argument and make sure it returns -1 with errno set * to EBADF. */ #include "tst_test.h" static struct tcase { int fd; int expected_errno...
google
android
dup04
.c
platform/external/ltp/testcases/kernel/syscalls/dup/dup04.c
997
utf_8
9825ca671a1fe27a851ddcd84d404b33
* * 06/1994 AUTHOR: Richard Logan CO-PILOT: William Roske */ /*\ * [DESCRIPTION] * * Basic test for dup(2) of a system pipe descriptor. */ #ifndef _GNU_SOURCE #define _GNU_SOURCE #endif #include "tst_test.h" int fd[2]; static void run(void) { TEST(dup(fd[0])); if (TST_RET == -1) tst_res(TFAIL | TTERRNO, ...
google
android
setxattr03
.c
platform/external/ltp/testcases/kernel/syscalls/setxattr/setxattr03.c
3,960
utf_8
583c77573ad30c69e003db7dde2fdb00
*/ /* * setxattr(2) to immutable and append-only files should get EPERM * * There are 2 test cases: * 1. Set attribute to a immutable file, setxattr(2) should return -1 * and set errno to EPERM * 2. Set attribute to a append-only file, setxattr(2) should return * -1 and set errno to EPERM */ #define _GNU...
google
android
setxattr01
.c
platform/external/ltp/testcases/kernel/syscalls/setxattr/setxattr01.c
5,431
utf_8
41ddf474a3aa126d837b0c90ab7911b2
*/ /* * Basic tests for setxattr(2) and make sure setxattr(2) handles error * conditions correctly. * * There are 7 test cases: * 1. Any other flags being set except XATTR_CREATE and XATTR_REPLACE, * setxattr(2) should return -1 and set errno to EINVAL * 2. With XATTR_REPLACE flag set but the attribute does ...
google
android
setxattr02
.c
platform/external/ltp/testcases/kernel/syscalls/setxattr/setxattr02.c
5,054
utf_8
cf4b225c8d716c31a4991b2953604c0c
*/ /* * In the user.* namespace, only regular files and directories can * have extended attributes. Otherwise setxattr(2) will return -1 * and set errno to EPERM. * * There are 7 test cases: * 1. Set attribute to a regular file, setxattr(2) should succeed * 2. Set attribute to a directory, setxattr(2) should su...
google
android
munlock01
.c
platform/external/ltp/testcases/kernel/syscalls/munlock/munlock01.c
3,821
utf_8
27ed0e5e910281286af246f7da9a5961
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ /************************************************************************** * * TEST IDENTIFIER : munlock01 * * EXECUTED BY : root / superuser * * TEST TITLE : Basic test for munlock(2) * * TEST CASE TOTAL : 4 * * * SIGNA...
google
android
munlock02
.c
platform/external/ltp/testcases/kernel/syscalls/munlock/munlock02.c
4,709
utf_8
dd57818ba1692790ffcc7af51aca1622
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ /************************************************************************** * * TEST IDENTIFIER : munlock02 * * EXECUTED BY : root / superuser * * TEST TITLE : Test for checking basic error conditions for * munlock(2) * *...
google
android
execle01
.c
platform/external/ltp/testcases/kernel/syscalls/execle/execle01.c
1,040
utf_8
eb263be96fda4c56d1bee31eddc85d1d
* AUTHOR : William Roske * CO-PILOT : Dave Fenner */ #include <sys/types.h> #include <sys/wait.h> #include <errno.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include "tst_test.h" static void verify_execle(void) { pid_t pid; char path[512]; char ipc_env_var[1024]; sprintf(ipc_env_var, I...
google
android
execle01_child
.c
platform/external/ltp/testcases/kernel/syscalls/execle/execle01_child.c
751
utf_8
9ed8a12267b2e53c90345b455eaa06ed
*/ #define TST_NO_DEFAULT_MAIN #include <stdlib.h> #include "tst_test.h" int main(int argc, char *argv[]) { char *env; tst_reinit(); if (argc != 2) tst_brk(TFAIL, "argc is %d, expected 2", argc); if (strcmp(argv[1], "canary")) tst_brk(TFAIL, "argv[1] is %s, expected 'canary'", argv[1]); env = getenv("LTP_TEST...
google
android
abort01
.c
platform/external/ltp/testcases/kernel/syscalls/abort/abort01.c
1,966
utf_8
4abb22adfdfcc9a4aa1e1218b6253b44
*/ /*\ * [Description] * * Checks that process which called abort() gets killed by SIGIOT and dumps core. * * [Algorithm] * - Fork child. * - Child calls abort. * - Parent checks return status. */ #include <sys/types.h> #include <sys/wait.h> #include <errno.h> #include <signal.h> #include <stdio.h> #includ...
google
android
clock_nanosleep04
.c
platform/external/ltp/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep04.c
1,892
utf_8
817badb1817cc6424e8a15adb446df4f
*/ #include <stdio.h> #include <time.h> #include <unistd.h> #include "time64_variants.h" #include "tst_safe_clocks.h" #include "tst_timer.h" static clockid_t tcase[] = { CLOCK_MONOTONIC, CLOCK_REALTIME, }; static struct time64_variants variants[] = { { .clock_gettime = libc_clock_gettime, .clock_nanosleep = libc_cl...
google
android
clock_nanosleep01
.c
platform/external/ltp/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep01.c
5,431
utf_8
57161d00ee9423cbf85e99145a3489e1
*/ /* * test status of errors on man page * EINTR v (function was interrupted by a signal) * EINVAL v (invalid tv_nsec, etc.) * ENOTSUP v (sleep not supported against the specified clock_id) * EFAULT v (Invalid request pointer) * EFAULT V (Invalid remain pointer when int...
google
android
clock_nanosleep03
.c
platform/external/ltp/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep03.c
3,119
utf_8
f3f1c004ff13500e04e95128f8600a2a
*/ /*\ * [Description] * * Test that clock_nanosleep() adds correctly an offset with absolute timeout * and CLOCK_MONOTONIC inside of a timer namespace. * * After a call to unshare(CLONE_NEWTIME) a new timer namespace is created, the * process that has called the unshare() can adjust offsets for CLOCK_MONOTONIC...
google
android
clock_nanosleep02
.c
platform/external/ltp/testcases/kernel/syscalls/clock_nanosleep/clock_nanosleep02.c
727
utf_8
526d3466f02b4651f8340d6a77b39444
*/ /* * Test Description: * clock_nanosleep() should return with value 0 and the process should be * suspended for time specified by timespec structure. */ #include <errno.h> #include "tst_timer_test.h" int sample_fn(int clk_id, long long usec) { struct timespec t = tst_timespec_from_us(usec); tst_timer_start(...
google
android
futimesat01
.c
platform/external/ltp/testcases/kernel/syscalls/futimesat/futimesat01.c
3,122
utf_8
93571a4cb3c450213b33dd898d0392f5
/* */ #define _GNU_SOURCE #include <sys/types.h> #include <sys/stat.h> #include <sys/time.h> #include <fcntl.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include <signal.h> #include "test.h" #include "safe_macros.h" #include "lapi/syscalls.h" #define TEST_CASES 5 #ifndef AT_FDCWD #define AT_FDCWD -10...
google
android
preadv03
.c
platform/external/ltp/testcases/kernel/syscalls/preadv/preadv03.c
2,938
utf_8
7f29b7e70a274a6d4cb5ffe3f6f0b6ab
*/ /* * Description: * Check the basic functionality of the preadv(2) for the file * opened with O_DIRECT in all filesystem. * preadv(2) should succeed to read the expected content of data * and after reading the file, the file offset is not changed. */ #define _GNU_SOURCE #include <stdlib.h> #include <string.h>...
google
android
preadv01
.c
platform/external/ltp/testcases/kernel/syscalls/preadv/preadv01.c
2,147
utf_8
8e455cb1d4a06bbcc32c1b462508466b
*/ /* * Test Name: preadv01 * * Test Description: * Testcase to check the basic functionality of the preadv(2). * Preadv(2) should succeed to read the expected content of data * and after reading the file, the file offset is not changed. */ #define _GNU_SOURCE #include <string.h> #include <sys/uio.h> #include "tst_test...
google
android
preadv02
.c
platform/external/ltp/testcases/kernel/syscalls/preadv/preadv02.c
2,915
utf_8
f726c8f15a1d9f0637ce1deb9e684188
*/ /* * Test Name: preadv02 * * Description: * 1) preadv(2) fails if iov_len is invalid. * 2) preadv(2) fails if the vector count iovcnt is less than zero. * 3) preadv(2) fails if offset is negative. * 4) preadv(2) fails when attempts to read into a invalid address. * 5) preadv(2) fails if file descriptor is invalid. *...
google
android
endian_switch01
.c
platform/external/ltp/testcases/kernel/syscalls/switch/endian_switch01.c
2,647
utf_8
0e7ad10a7c073e7c8e3e21cb9d8179b2
*/ /* * Test little-endian mode switch system call. Requires a 64-bit * processor that supports little-endian mode,such as POWER6. */ #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <elf.h> #include <sys/types.h> #include <sys/wait.h> #include "tst_test.h" #if defined(__powerp...
google
android
fchownat01
.c
platform/external/ltp/testcases/kernel/syscalls/fchownat/fchownat01.c
3,084
utf_8
05d2aa1f9783ad300e57071692907c1d
/* * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * DESCRIPTION * This test case will verify basic function of fchownat * added by kernel 2.6.16 or up. */ #define _GNU_SOURCE #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> #includ...
google
android
fchownat02
.c
platform/external/ltp/testcases/kernel/syscalls/fchownat/fchownat02.c
3,083
utf_8
d3f41ebcb1219462357a24e5a04642f3
/* * with this program. */ /* * Test Description: * Verify that, * The flag of fchownat() is AT_SYMLINK_NOFOLLOW and the pathname would * not be dereferenced if the pathname is a symbolic link. */ #define _GNU_SOURCE #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <stdlib.h> #incl...
google
android
nanosleep02
.c
platform/external/ltp/testcases/kernel/syscalls/nanosleep/nanosleep02.c
2,694
utf_8
3c78f7417bddd1843ef66e8f699b1516
*/ /* * Test Description: * Verify that nanosleep() will be successful to suspend the execution * of a process, returns after the receipt of a signal and writes the * remaining sleep time into the structure. * * This test also verifies that if the call is interrupted by a signal * handler, nanosleep() retu...
google
android
nanosleep01
.c
platform/external/ltp/testcases/kernel/syscalls/nanosleep/nanosleep01.c
799
utf_8
4f8828d711f15602c7563bde4b3205f2
*/ /* * Test Description: * nanosleep() should return with value 0 and the process should be * suspended for time specified by timespec structure. */ #include <errno.h> #include "tst_timer_test.h" int sample_fn(int clk_id, long long usec) { struct timespec t = tst_timespec_from_us(usec); tst_timer_start(clk_id...
google
android
nanosleep04
.c
platform/external/ltp/testcases/kernel/syscalls/nanosleep/nanosleep04.c
1,137
utf_8
b25d31e3aaa526d9af956ce99f9ff7fd
*/ /* * Test Description: * Verify that nanosleep() will fail to suspend the execution * of a process if the specified pause time is invalid. * * Expected Result: * nanosleep() should return with -1 value and sets errno to EINVAL. */ #include <errno.h> #include <time.h> #include "tst_test.h" static struct ti...
google
android
get_mempolicy02
.c
platform/external/ltp/testcases/kernel/syscalls/get_mempolicy/get_mempolicy02.c
1,944
utf_8
74fe5c777ba899f2caa961fe44982855
*/ /*\ * [Description] * * Verify that get_mempolicy() returns a proper return errno for failure cases. */ #include "config.h" #include "tst_test.h" #ifdef HAVE_NUMA_V2 #include <numa.h> #include <numaif.h> #include <errno.h> #include "tst_numa.h" #define PAGES_ALLOCATED 16u #define POLICY_DESC_TEXT(x, y) .policy ...
google
android
get_mempolicy01
.c
platform/external/ltp/testcases/kernel/syscalls/get_mempolicy/get_mempolicy01.c
5,458
utf_8
30d681451c0064bb6314a6ca85106df6
*/ /*\ * [Description] * * Verify that get_mempolicy() returns a proper return value and errno for various cases. */ #include "config.h" #include "tst_test.h" #ifdef HAVE_NUMA_V2 #include <numa.h> #include <numaif.h> #include <errno.h> #include "tst_numa.h" #define MEM_LENGTH (4 * 1024 * 1024) #define PAGES_ALLOCA...
google
android
set_tid_address01
.c
platform/external/ltp/testcases/kernel/syscalls/set_tid_address/set_tid_address01.c
6,856
utf_8
66d57f8593c268d2066899e06b667922
/* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /******************************************************************************/ /***********************************************************************...
google
android
fdatasync01
.c
platform/external/ltp/testcases/kernel/syscalls/fdatasync/fdatasync01.c
4,115
utf_8
acf4506dca62e61c484de9128ca704dc
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ /********************************************************** * * TEST IDENTIFIER : fdatasync01 * * EXECUTED BY : Any user * * TEST TITLE : Basic test for fdatasync(2) * * TEST CASE TOTAL : 1 * * * SIGNALS ...
google
android
fdatasync02
.c
platform/external/ltp/testcases/kernel/syscalls/fdatasync/fdatasync02.c
4,904
utf_8
7867937d63f8619b54c77d1b60045544
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * */ /********************************************************** * * TEST IDENTIFIER : fdatasync02 * * EXECUTED BY : Any user * * TEST TITLE : Checking error conditions for fdatasync(2) * * TEST CASE TOTAL : 2 * *...
google
android
fdatasync03
.c
platform/external/ltp/testcases/kernel/syscalls/fdatasync/fdatasync03.c
1,377
utf_8
ea902a25ae18f000f62674a3ff3226a4
*/ /* * fdatasync03 * * It basically tests fdatasync() to sync test file data having large dirty * file pages to block device. Also, it tests all supported filesystems on a * test block device. */ #define _GNU_SOURCE #include <errno.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include "tst_t...
google
android
times03
.c
platform/external/ltp/testcases/kernel/syscalls/times/times03.c
4,377
utf_8
9517255ecdb9d0c494ad3a14e247c6e7
*/ /* * DESCRIPTION * Testcase to check the basic functionality of the times() system call. * * ALGORITHM * This testcase checks the values that times(2) system call returns. * Start a process, and spend some CPU time by performing a spin in * a for-loop. Then use the times() system call, to determine the * cp...
google
android
times01
.c
platform/external/ltp/testcases/kernel/syscalls/times/times01.c
612
utf_8
ef99d6fe516064628eddfc212045e3e3
*/ /*\ * [Description] * * This is a Phase I test for the times(2) system call. It is intended to * provide a limited exposure of the system call. */ #include <sys/times.h> #include <errno.h> #include "tst_test.h" static void verify_times(void) { struct tms mytimes; TEST(times(&mytimes)); if (TST_RET == -1) ...
google
android
umount2_01
.c
platform/external/ltp/testcases/kernel/syscalls/umount2/umount2_01.c
3,408
utf_8
d7d3c5e9e0b56801b778b88b151b7b13
/* * alone with this program. */ /* * DESCRIPTION * Test for feature MNT_DETACH of umount2(). * "Perform a lazy unmount: make the mount point unavailable for * new accesses, and actually perform the unmount when the mount * point ceases to be busy." */ #include <errno.h> #include "test.h" #include "safe_m...
google
android
umount2_02
.c
platform/external/ltp/testcases/kernel/syscalls/umount2/umount2_02.c
2,917
utf_8
a79e5cc14dc10818bb1e3e5981dc6a33
*/ /*\ * [Description] * * Test for feature MNT_EXPIRE of umount2(): * * - EINVAL when flag is specified with either MNT_FORCE or MNT_DETACH * - EAGAIN when initial call to umount2(2) with MNT_EXPIRE * - EAGAIN when umount2(2) with MNT_EXPIRE after access(2) * - succeed when second call to umount2(2) with MNT_...
google
android
sync_file_range02
.c
platform/external/ltp/testcases/kernel/syscalls/sync_file_range/sync_file_range02.c
2,863
utf_8
26b85fce0bc8c1fbcb724b658cb45e5f
*/ /*\ * [Description] * * Tests if sync_file_range() does sync a test file range with a many dirty pages * to a block device. Also, it tests all supported filesystems on a test block * device. */ #define _GNU_SOURCE #include <errno.h> #include <stdlib.h> #include <stdio.h> #include <sys/types.h> #include "tst_t...
google
android
sync_file_range01
.c
platform/external/ltp/testcases/kernel/syscalls/sync_file_range/sync_file_range01.c
2,052
utf_8
88ceede8addbef3e711cadc1258f9509
*/ /*\ * [Description] * * Basic error conditions test for sync_file_range() system call, tests for: * * - EBADFD Wrong filedescriptor * - ESPIPE Unsupported file descriptor * - EINVAL Wrong offset * - EINVAL Wrong nbytes * - EINVAL Wrong flags */ #define _GNU_SOURCE #include <sys/types.h> #include <sys/stat...
google
android
open06
.c
platform/external/ltp/testcases/kernel/syscalls/open/open06.c
659
utf_8
5208d3c9eb0a7178a07886298f37b9ba
*/ /*\ * [Description] * * Verify that open(2) fails with ENXIO when * O_NONBLOCK | O_WRONLY is set, the named file is a FIFO, * and no process has the FIFO open for reading. */ #include "tst_test.h" #define TEMP_FIFO "tmpfile" static void setup(void) { SAFE_MKFIFO(TEMP_FIFO, 0644); } static void run(void) { T...
google
android
open12
.c
platform/external/ltp/testcases/kernel/syscalls/open/open12.c
5,440
utf_8
4fb8e04d24a14ef255ae44c015c78258
/* * with this program. */ /* * DESCRIPTION * This test case will verify basic function of open(2) with the flags * O_APPEND, O_NOATIME, O_CLOEXEC and O_LARGEFILE. */ #define _GNU_SOURCE #include <stdio.h> #include <sys/types.h> #include <sys/wait.h> #include <unistd.h> #include <mntent.h> #include <errno.h> #inc...
google
android
open07
.c
platform/external/ltp/testcases/kernel/syscalls/open/open07.c
5,891
utf_8
47fbca961e475b24b099389c2cba61ea
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * open07.c * * DESCRIPTION * Test the open(2) system call to ensure that it sets ELOOP correctly. * * CALLS * open() * * ALGORITHM * 1. Create a symbolic link to a file, and call open(O_NOFOLLOW). Check * ...
google
android
open04
.c
platform/external/ltp/testcases/kernel/syscalls/open/open04.c
1,362
utf_8
b3ba070fac1101e9653075a23759a7f7
*/ /*\ * [Description] * * Verify that open(2) fails with EMFILE when per-process limit on the number * of open file descriptors has been reached. */ #include <stdio.h> #include <stdlib.h> #include "tst_test.h" #define FNAME "open04" static int fds_limit, first, i; static int *fds; static char fname[20]; static v...
google
android
open12_child
.c
platform/external/ltp/testcases/kernel/syscalls/open/open12_child.c
915
utf_8
aeb9bab78036e96ced6a009b67036865
/* * with this program. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <errno.h> #include <unistd.h> int main(int argc, char **argv) { int ret; int fd; if (argc != 2) { fprintf(stderr, "Only two arguments: %s <fd>\n", argv[0]); exit(1); } fd = atoi(argv[1]); ret = write(fd, argv[1], ...
google
android
open02
.c
platform/external/ltp/testcases/kernel/syscalls/open/open02.c
1,327
utf_8
657d634b60fc8e759ba61be24f9eab50
*/ /*\ * [Description] * * 1. open a new file without O_CREAT, ENOENT should be returned. * 2. open a file with O_RDONLY | O_NOATIME and the caller was not * privileged, EPERM should be returned. */ #define _GNU_SOURCE #include <pwd.h> #include "tst_test.h" #define TEST_FILE "test_file" #define TEST_FILE2 "test_...
google
android
open09
.c
platform/external/ltp/testcases/kernel/syscalls/open/open09.c
2,419
utf_8
eb3fbb62b8553dbfc70a77a2a4275fe8
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Description: * 1. open an O_WRONLY file, test if read failed. * 2. open an O_RDONLY file, test if write failed. */ #include <sys/types.h> #include <sys/stat.h> #include <stdio.h> #include <fcntl.h> #include "test.h" char *...
google
android
open13
.c
platform/external/ltp/testcases/kernel/syscalls/open/open13.c
3,291
utf_8
b1bf1b693a89ee3822d4ce84bd881a81
/* * with this program. */ /* * DESCRIPTION * Basic test for O_PATH flag of open(2). * "Obtain a file descriptor that can be used to perform operations * that act purely at the file descriptor level, the file itself is * not opened, the operations read(2), write(2), fchmod(2), fchown(2) * and fgetxattr(...
google
android
open10
.c
platform/external/ltp/testcases/kernel/syscalls/open/open10.c
3,519
utf_8
37d9fc3f382f8a2c61bb379354931397
*/ /*\ * [Description] * * Verify that the group ID and setgid bit are set correctly when a new file * is created. */ #include <stdlib.h> #include <sys/types.h> #include <pwd.h> #include "tst_test.h" #include "tst_uid.h" #define MODE_RWX 0777 #define MODE_SGID (S_ISGID|0777) #define DIR_A "dir_a" #d...
google
android
open14
.c
platform/external/ltp/testcases/kernel/syscalls/open/open14.c
5,680
utf_8
831fb095798a30dad33aa31596efc87e
/* * */ #define _GNU_SOURCE #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <errno.h> #include "test.h" #include "safe_macros.h" #include "lapi/fcntl.h" char *TCID = "open14"; int TST_TOTAL = 3; static ssize_t size; static char buf[1024]; static const ssize_t blocks_num = 4; static struct st...
google
android
open11
.c
platform/external/ltp/testcases/kernel/syscalls/open/open11.c
8,391
utf_8
a8e0c90e2285245eb466e2646487597f
* * Basic tests for open(2) and make sure open(2) works and handles error * conditions correctly. * * There are 28 test cases: * 1. Open regular file O_RDONLY * 2. Open regular file O_WRONLY * 3. Open regular file O_RDWR * 4. Open regular file O_RDWR | O_SYNC * 5. Open regular file O_RDWR | O_TRUNC * 6. Open...
google
android
open08
.c
platform/external/ltp/testcases/kernel/syscalls/open/open08.c
2,351
utf_8
252fb71c29f3ed3c6622762c9884859f
*/ /*\ * [Description] * * Verify that open() fails with: * * - EEXIST when pathname already exists and O_CREAT and O_EXCL were used * - EISDIR when pathname refers to a directory and the access requested * involved writing * - ENOTDIR when O_DIRECTORY was specified and pathname was not a directory * - ENAMET...
google
android
open01
.c
platform/external/ltp/testcases/kernel/syscalls/open/open01.c
1,828
utf_8
a5e42cc6c501410740a724fe7ffef7ee
*/ /* * DESCRIPTION * Open a file with oflag = O_CREAT set, does it set the sticky bit off? * Open a dir with O_DIRECTORY, does it set the S_IFDIR bit on? * * ALGORITHM * 1. open a new file with O_CREAT, fstat.st_mode should not have the * 01000 bit on. In Linux, the save text bit is *NOT* cleared. * 2. ope...
google
android
open03
.c
platform/external/ltp/testcases/kernel/syscalls/open/open03.c
519
utf_8
bd5c4da3e27b7bbeb0224676627a0696
*/ /*\ * [Description] * * Testcase to check open() with O_RDWR | O_CREAT. */ #include "tst_test.h" #define TEST_FILE "testfile" static void verify_open(void) { TST_EXP_FD(open(TEST_FILE, O_RDWR | O_CREAT, 0700)); SAFE_CLOSE(TST_RET); SAFE_UNLINK(TEST_FILE); } static struct tst_test test = { .needs_tmpdir = 1,...
google
android
io_destroy01
.c
platform/external/ltp/testcases/kernel/syscalls/io_destroy/io_destroy01.c
1,199
utf_8
5e291d15cfb96e4b15f1048e0fae3145
*/ /*\ * [Description] * * Test io_destroy invoked via libaio with invalid ctx and expects it to * return -EINVAL. */ #include <errno.h> #include <string.h> #include "config.h" #include "tst_test.h" #ifdef HAVE_LIBAIO #include <libaio.h> static void verify_io_destroy(void) { io_context_t ctx; memset(&ctx, 0xff,...
google
android
io_destroy02
.c
platform/external/ltp/testcases/kernel/syscalls/io_destroy/io_destroy02.c
863
utf_8
c73c65bfe64813bd5c6e471feb1c459e
*/ /*\ * [Description] * * Test io_destroy invoked via syscall(2) with an invalid ctx and expects * it to return EINVAL. */ #include <linux/aio_abi.h> #include "config.h" #include "tst_test.h" #include "lapi/syscalls.h" static void run(void) { aio_context_t ctx; memset(&ctx, 0xff, sizeof(ctx)); TST_EXP_FAIL(ts...
google
android
fork01
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork01.c
1,482
utf_8
627ce497297c6d6d697ccbdd5857661a
* Author: Kathy Olmsted * Co-Pilot: Steve Shaw */ /*\ *[Description] * * - fork returns without error * - fork returns the pid of the child */ #include <errno.h> #include <string.h> #include <stdlib.h> #include <sys/types.h> #include <sys/wait.h> #include "tst_test.h" #define KIDEXIT 42 #define FILENAME "childp...
google
android
fork14
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork14.c
3,738
utf_8
ed3191f9ee7aa1c468c981a1b40bdef8
/********************************************************************* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA * 02110-1301, USA. * * This test is a reporducer for this patch: * https://lkml.org/lkml/2012/4/24/328 * Since vma length in dup_mmap is calculated and stored in a un...
google
android
fork09
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork09.c
4,040
utf_8
fb9ad325ad02ee4565afad1431dea44f
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * NAME * fork09.c * * DESCRIPTION * Check that child has access to a full set of files. * * ALGORITHM * Parent opens a maximum number of files * Child closes one and attempts to open another, it should be * available * *...
google
android
fork13
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork13.c
3,103
utf_8
773680cb2f4cc17cd3f3add9a264a6be
*/ /*\ * [Description] * * A race in pid generation that causes pids to be reused immediately * * From the mainline commit 5fdee8c4a5e1800489ce61963208f8cc55e42ea1: * * A program that repeatedly forks and waits is susceptible to having * the same pid repeated, especially when it competes with another * instan...
google
android
fork05
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork05.c
6,191
utf_8
9a200b6c8c9c8d0e016187d4ed3adf16
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, * Mountain View, CA 94043, or: * * http://www.sgi.com$ * * For further information regarding this notice, see:$ * * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ * *...
google
android
fork07
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork07.c
1,433
utf_8
31dc1faa8b47d7c7f0cc851a04a27346
*/ /*\ * [Description] * * Check that all children inherit parent's file descriptor. * * Parent opens a file and forks children. Each child reads a byte and checks * that the value is correct. Parent checks that correct number of bytes was * consumed from the file. */ #include <stdlib.h> #include "tst_test.h" ...
google
android
fork06
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork06.c
2,266
utf_8
7f889e7caf96e4722f44749ff43440a7
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * NAME * fork06.c * * DESCRIPTION * Test that a process can fork children a large number of * times in succession * * ALGORITHM * Attempt to fork a child that exits immediately * Repeat it many times(1000), counting the nu...
google
android
fork11
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork11.c
1,973
utf_8
d43208b580dedd83d176f8e530bb5ef6
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * * NAME * fork11.c * * DESCRIPTION * Test that parent gets a pid from each child when doing wait * * ALGORITHM * Fork NUMFORKS children that do nothing. * * USAGE * fork11 * * HISTORY * 07/2001 Ported by Wayne Boyer ...
google
android
fork08
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork08.c
1,205
utf_8
875753208849711fad6f5064185ef132
*/ /*\ * [Description] * * Check that the parent's file descriptors will not be affected by being * closed in the child. */ #include <stdlib.h> #include "tst_test.h" #define TESTFILE "testfile_fork08" static int fd; static char buf; static void run(void) { int ret; fd = SAFE_OPEN(TESTFILE, O_RDONLY); if (!SAFE...
google
android
fork10
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork10.c
3,408
utf_8
f081879384db6bce9eb3365b7a634687
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * * NAME * fork10.c * * DESCRIPTION * Check inheritance of file descriptor by children, they * should all be refering to the same file. * * ALGORITHM * Child reads several chars and exits. * Parent forks another child, ha...
google
android
fork12
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork12.c
3,298
utf_8
2e61887e4ab26e35b046f85378a4d2cf
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * * NAME * fork12.c * * DESCRIPTION * Check that all children inherit parent's file descriptor * * ALGORITHM * Parent forks processes until -1 is returned.$ * * USAGE * fork12 * ** CAUTION ** Can hang your machine, esp ...
google
android
fork03
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork03.c
2,469
utf_8
78063a962da0a486e85f42f97f9f293d
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * fork03.c * * DESCRIPTION * Check that child can use a large text space and do a large * number of operations. * * ALGORITHM * Fork one process, check for pid == 0 in child. * Check for pid > 0 in parent aft...
google
android
fork04
.c
platform/external/ltp/testcases/kernel/syscalls/fork/fork04.c
8,101
utf_8
33ebc868225165f04432bc25a85768f0
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, * Mountain View, CA 94043, or: * * http://www.sgi.com * * For further information regarding this notice, see: * * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ * * ...
google
android
getpid02
.c
platform/external/ltp/testcases/kernel/syscalls/getpid/getpid02.c
1,322
utf_8
fac7b513aaa382c452045f29f6730602
*/ /*\ * [Description] * * Check that: * - fork() in parent returns the same pid as getpid() in child * - getppid() in child returns the same pid as getpid() in parent */ #include <errno.h> #include "tst_test.h" static pid_t *child_pid; static void verify_getpid(void) { pid_t proc_id; pid_t pid; pid_t pproc_i...
google
android
getpid01
.c
platform/external/ltp/testcases/kernel/syscalls/getpid/getpid01.c
826
utf_8
d5b2568d7c1d36569a21a98f10feb70b
*/ /*\ * [Description] * * Verify that getpid() system call returns process ID in range 2 ... PID_MAX */ #include <stdlib.h> #include "tst_test.h" static void verify_getpid(void) { pid_t pid_max, pid; int i; SAFE_FILE_SCANF("/proc/sys/kernel/pid_max", "%d\n", &pid_max); for (i = 0; i < 100; i++) { pid = SAFE...
google
android
tkill02
.c
platform/external/ltp/testcases/kernel/syscalls/tkill/tkill02.c
1,048
utf_8
c0a6698f945cf7f2877bf8b84479ed2d
*/ /*\ * [Description] * * Basic tests for the tkill() errors. * * [Algorithm] * * - EINVAL on an invalid thread ID * - ESRCH when no process with the specified thread ID exists */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <unistd.h> #include <signal.h> #include "tst_test.h" #include ...
google
android
tkill01
.c
platform/external/ltp/testcases/kernel/syscalls/tkill/tkill01.c
1,034
utf_8
4c1be376d79fcbce1e33bd759effde89
*/ /*\ * [Description] * * Basic tests for the tkill syscall. * * [Algorithm] * * Calls tkill and capture signal to verify success. */ #include <signal.h> #include "tst_test.h" #include "lapi/syscalls.h" static volatile sig_atomic_t sig_flag; static void sighandler(int sig) { if (sig == SIGUSR1) sig_flag = ...
google
android
ioprio_set02
.c
platform/external/ltp/testcases/kernel/syscalls/ioprio/ioprio_set02.c
1,716
utf_8
b938eb00dec2ceff96d781fb4fb575c4
* * Description: * Extended ioprio_set() test. * Tests to set all 8 priority levels for best effort priority, then * switches to test all 8 priority levels for idle priority. */ #include <sys/types.h> #include <sys/syscall.h> #include "tst_test.h" #include "lapi/syscalls.h" #include "ioprio.h" static void run(voi...
google
android
ioprio_set03
.c
platform/external/ltp/testcases/kernel/syscalls/ioprio/ioprio_set03.c
1,666
utf_8
25697f9c9161a1b353c28816758b0e86
* * Description: * Negative ioprio_set() test. Test some non-working priorities to make * sure they don't work. */ #include <sys/types.h> #include <sys/syscall.h> #include "tst_test.h" #include "lapi/syscalls.h" #include "ioprio.h" static void run(void) { int class; class = IOPRIO_CLASS_BE; /* * Test to fail ...
google
android
ioprio_set01
.c
platform/external/ltp/testcases/kernel/syscalls/ioprio/ioprio_set01.c
1,753
utf_8
d3811449c209a0697a4db85af7bfbc4d
* * Description: * Basic ioprio_set() test. Gets the current process I/O priority and * bumps it up one notch, then down two notches and checks that the * new priority is reported back correctly. */ #include <sys/types.h> #include <sys/syscall.h> #include "tst_test.h" #include "lapi/syscalls.h" #include "ioprio.h...
google
android
ioprio_get01
.c
platform/external/ltp/testcases/kernel/syscalls/ioprio/ioprio_get01.c
997
utf_8
498dbc80c76a38d0e7c382bdaa915d6d
* * Description: * Basic ioprio_get() test. Gets the current process I/O priority and * checks that the values are sane. */ #include <sys/types.h> #include <sys/syscall.h> #include "tst_test.h" #include "lapi/syscalls.h" #include "ioprio.h" static void run(void) { int prio, class; /* Get the I/O priority for the...
google
android
mknod06
.c
platform/external/ltp/testcases/kernel/syscalls/mknod/mknod06.c
7,857
utf_8
8263e9731df4a2fa23e05f0376824db3
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Test Name: mknod06 * * Test Description: * Verify that, * 1) mknod(2) returns -1 and sets errno to EEXIST if specified path * already exists. * 2) mknod(2) returns -1 and sets errno to EFAULT if pathname points ...
google
android
mknod08
.c
platform/external/ltp/testcases/kernel/syscalls/mknod/mknod08.c
7,973
utf_8
ace0a7a995d65f279755a1a226103bee
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Test Name: mknod08 * * Test Description: * Verify that mknod(2) succeeds when used to create a filesystem * node on a directory without set group-ID bit set. The node created * should not have set group-ID bit set ...
google
android
mknod03
.c
platform/external/ltp/testcases/kernel/syscalls/mknod/mknod03.c
8,382
utf_8
2b5ead18d4b457c0185ed7863db59cf0
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Test Name: mknod03 * * Test Description: * Verify that mknod(2) succeeds when used to create a filesystem * node with set group-ID bit set on a directory with set group-ID bit set. * The node created should have se...
google
android
mknod01
.c
platform/external/ltp/testcases/kernel/syscalls/mknod/mknod01.c
3,152
utf_8
307f37c8e3fe928062873d0b45aec515
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, * Mountain View, CA 94043, or: * * http://www.sgi.com * * For further information regarding this notice, see: * * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ * */ ...
google
android
mknod07
.c
platform/external/ltp/testcases/kernel/syscalls/mknod/mknod07.c
4,786
utf_8
b5fd94cf49090923f9d560b2f48ed4bb
/* * * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * * Test Description: * Verify that, * 1) mknod(2) returns -1 and sets errno to EPERM if the process id of * the caller is not super-user. * 2) mknod(2) returns -1 and sets errno to EACCES if parent directory * does not allow ...
google
android
mknod04
.c
platform/external/ltp/testcases/kernel/syscalls/mknod/mknod04.c
8,374
utf_8
8ebf90c85368759339f5ecda37c94816
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Test Name: mknod04 * * Test Description: * Verify that mknod(2) succeeds when used to create a filesystem * node on a directory with set group-ID bit set. * The node created should not have group-ID bit set and its...
google
android
mknod05
.c
platform/external/ltp/testcases/kernel/syscalls/mknod/mknod05.c
7,633
utf_8
2c3c17af169cba8b6882aba6ac6d31b7
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Test Name: mknod05 * * Test Description: * Verify that mknod(2) succeeds when used by root to create a filesystem * node with set group-ID bit set on a directory with set group-ID bit set. * The node created should...
google
android
mknod02
.c
platform/external/ltp/testcases/kernel/syscalls/mknod/mknod02.c
8,322
utf_8
8133648a2642fefb9d78087e4c8f3d16
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Test Name: mknod02 * * Test Description: * Verify that mknod(2) succeeds when used to create a filesystem * node with set group-ID bit set on a directory without set group-ID bit set. * The node created should have...
google
android
getegid01
.c
platform/external/ltp/testcases/kernel/syscalls/getegid/getegid01.c
2,114
utf_8
f26795515da76059261fd972ab533f59
/* * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, * Mountain View, CA 94043, or: * * http://www.sgi.com * * For further information regarding this notice, see: * * http://oss.sgi.com/projects/GenInfo/NoticeExplan/ * */ ...
google
android
getegid02
.c
platform/external/ltp/testcases/kernel/syscalls/getegid/getegid02.c
2,050
utf_8
ca314a4b29ea953b28ea7a313a54a170
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Testcase to check the basic functionality of getegid(). * * For functionality test the return value from getegid() is compared to passwd * entry. */ #include <pwd.h> #include <errno.h> #include "test.h" #include "compat_16....
google
android
listen01
.c
platform/external/ltp/testcases/kernel/syscalls/listen/listen01.c
3,697
utf_8
e01c405bc3ca8db5323cf7bd83461d58
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * Test Name: listen01 * * Test Description: * Verify that listen() returns the proper errno for various failure cases * * Usage: <for command-line> * listen01 [-c n] [-e] [-i n] [-I x] [-P x] [-t] * -e ...