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
read_all
.c
platform/external/ltp/testcases/kernel/fs/read_all/read_all.c
14,960
utf_8
d2af1149ea075ffcf8ee9a311cf14031
*/ /* * Perform a small read on every file in a directory tree. * * Useful for testing file systems like proc, sysfs and debugfs or * anything which exposes a file like API. This test is not concerned * if a particular file in one of these file systems conforms exactly * to its specific documented behavior. Just...
google
android
ftest02
.c
platform/external/ltp/testcases/kernel/fs/ftest/ftest02.c
9,578
utf_8
d490b84594d421aec342099b74df6c20
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * ftest02.c -- test inode things (ported from SPIE section2, filesuite, by Airong Zhang) * * CALLS * open, close, read, write, lseek, * unlink, chdir * * * ALGORITHM * * * ftest02 [-f tmpdirname] nchild it...
google
android
ftest08
.c
platform/external/ltp/testcases/kernel/fs/ftest/ftest08.c
12,100
utf_8
2f7ae1b8b8267659912a25dabd011d9e
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * ftest08.c -- test single file io (tsfio.c by rbk) (ported from SPIE, * section2/filesuite/ftest10.c, by Airong Zhang) * * this is the same as ftest4, except that it uses lseek64 * * CALLS * fsync, sync...
google
android
libftest
.c
platform/external/ltp/testcases/kernel/fs/ftest/libftest.c
3,180
utf_8
75f7e14153ea67c27024fbd7ab7b1dc9
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #include <sys/uio.h> #include <inttypes.h> #include <limits.h> #include <assert.h> #include "test.h" #include "libftest.h" /* * Dump content of iov structure. */ void ft_dumpiov(struct iovec *iov) { char *buf, val; int idx, nou...
google
android
ftest03
.c
platform/external/ltp/testcases/kernel/fs/ftest/ftest03.c
14,790
utf_8
ae47f8590c7d9d22381cde992b4fd419
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * ftest03.c -- test file I/O with readv and writev (ported from SPIE section2/filesuite/ftest4.c, by Airong Zhang) * * CALLS * lseek, readv, writev, * truncate, ftruncate, fsync, sync, fstat * * ALGORITHM * A ...
google
android
ftest01
.c
platform/external/ltp/testcases/kernel/fs/ftest/ftest01.c
12,876
utf_8
48302b624224fe9dbdb0361fb41afb61
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * ftest01.c -- test file I/O (ported from SPIE section2, filesuite, by Airong Zhang) * * CALLS * lseek, read, write * truncate, ftruncate, fsync, sync, fstat * * ALGORITHM * A bitmap is used to map pieces of a...
google
android
ftest07
.c
platform/external/ltp/testcases/kernel/fs/ftest/ftest07.c
15,124
utf_8
3a19dd2ac5282163b81cc8a101804011
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * ftest07.c -- test file I/O with readv and writev (ported from SPIE, * section2/filesuite/ftest9.c * * this is the same as ftest3, except that it uses lseek64 * * CALLS * lseek64, readv, writev, * trunc...
google
android
ftest04
.c
platform/external/ltp/testcases/kernel/fs/ftest/ftest04.c
11,387
utf_8
5b0891c8612d73094639ded68c88f39c
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * ftest04.c -- test single file io (tsfio.c by rbk) (ported from SPIE, section2/filesuite/ftest5.c, by Airong Zhang) * * CALLS * fsync, sync, lseek, read, write * * * ALGORITHM * Several child processes doing ...
google
android
ftest05
.c
platform/external/ltp/testcases/kernel/fs/ftest/ftest05.c
13,028
utf_8
28d1f4fe5975b0fc4b99f6527c44fffc
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * ftest05.c -- test file I/O (ported from SPIE, section2/filesuite/ftest6.c, by Airong Zhang) * * this is the same as ftest1, except that it uses lseek64 * * CALLS * lseek64, read, write * truncate, ftruncate,...
google
android
ftest06
.c
platform/external/ltp/testcases/kernel/fs/ftest/ftest06.c
10,256
utf_8
e75f5b1d8cd028e7aa887aac934d23e3
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * ftest06.c -- test inode things (ported from SPIE section2/filesuite/ftest7.c, by Airong Zhang) * * this is the same as ftest2, except that it uses lseek64 * * CALLS * open, close, read, write, lseek64, * un...
google
android
squashfs01
.c
platform/external/ltp/testcases/kernel/fs/squashfs/squashfs01.c
2,857
utf_8
6769a281ce07fdca31c5f5c5b4bdbfd1
*/ /*\ * [Description] * * Kernel commits * * - f37aa4c7366 (squashfs: add more sanity checks in id lookup) * - eabac19e40c (squashfs: add more sanity checks in inode lookup) * - 506220d2ba2 (squashfs: add more sanity checks in xattr id lookup) * * added some sanity checks, that verify the size of * inode lo...
google
android
fs_perms
.c
platform/external/ltp/testcases/kernel/fs/fs_perms/fs_perms.c
5,761
utf_8
a885a81f94a453f41f22868183267c02
/* * HISTORY : * (04/12/01)v.99 First attempt at using C for fs-regression test. Only tests read and write bits. * (04/19/01)v1.0 Added test for execute bit. * (05/23/01)v1.1 Added command line parameter to specify test file. * (07/12/01)v1.2 Removed conf file and went to command line par...
google
android
create_datafile
.c
platform/external/ltp/testcases/kernel/fs/fs_di/create_datafile.c
1,996
utf_8
b367102fa3e26cb0d603601e7c5338ae
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * FILE : create_datafile.c * PURPOSE : Creates a file of specified size. * HISTORY : * 10/17/2003 Robbie Williamson * -Written */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys...
google
android
frag
.c
platform/external/ltp/testcases/kernel/fs/fs_di/frag.c
4,367
utf_8
092c0922351e110048b49328f6410651
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
fsstress
.c
platform/external/ltp/testcases/kernel/fs/fsstress/fsstress.c
56,526
utf_8
d2b3c33154cfe18d8006e083db44cc70
/* * 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: * */ #include "config.h" #include "global.h" #include <tst_co...
google
android
summ
.c
platform/external/ltp/testcases/kernel/fs/mongo/summ.c
395
utf_8
967e6eea8aea291e0a06ae05cd866b74
/* */ #include <stdio.h> #include <stdlib.h> char str[100]; int main(int argc, char **argv) { char c, *p; int sum = 0, n = 0; p = str; while ((c = getchar()) != EOF) { if (c != '\n') { *p++ = c; } else { *p = '\0'; n = atol(str); sum += n; printf("%i\n", sum); p = str; *p = '\0'; } } }
google
android
mongo_slinks
.c
platform/external/ltp/testcases/kernel/fs/mongo/mongo_slinks.c
2,135
utf_8
e3b5e0d2c3fef861403b2a25f1725800
// // A simple symlink test // #define _GNU_SOURCE #include <sys/stat.h> #include <unistd.h> #include <stdlib.h> #include <errno.h> #include <stdio.h> #include <string.h> // // Creates symlink [new-path] to [old-path], checks it, // returnes 0 - if everything looks fine and // 1 - otherwise. // mongo_slinks reads...
google
android
map5
.c
platform/external/ltp/testcases/kernel/fs/mongo/map5.c
1,622
utf_8
3acd8ae966e3e0414848ae977a381a9e
/* */ #include <stdio.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <linux/fs.h> #include <errno.h> int main(int argc, char **argv) { int fd; int block; int first_block; int last_block; int totals_block; int fragments; int i; int n; for (n = 1; n < argc; n++) { if (argc < 2) { ...
google
android
mongo_compare
.c
platform/external/ltp/testcases/kernel/fs/mongo/mongo_compare.c
4,603
utf_8
fc60b00ce74ca21f1f73edbeac8b2787
/* */ #include <stdio.h> #include <ctype.h> #include <string.h> char time_str1[50]; char time_str2[50]; char name_str1[50]; char tmp_str[20][100]; char out1[256]; char out2[256]; FILE *f1; FILE *f2; FILE *f3; FILE *f4; void write_html_head(FILE * fp); void write_html_end(FILE * fp); char head_str[] = "\n \ <!doctype h...
google
android
reiser_fract_tree
.c
platform/external/ltp/testcases/kernel/fs/mongo/reiser_fract_tree.c
16,194
utf_8
2769076f5cd2cc5c67ea32ba7b413b11
/* */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <math.h> #include <sys/types.h> #include <unistd.h> #include <sys/stat.h> #include <fcntl.h> #include <errno.h> char tdir[256]; char path[256]; long stats = 0; void print_usage() { printf(" This program creates files in a tree of random depth a...
google
android
mongo_read
.c
platform/external/ltp/testcases/kernel/fs/mongo/mongo_read.c
1,065
utf_8
4afff7332b12650bfeafbfffa01a7b9a
/* */ /* * MONGO READ - simple possible program to read a number of given files * suitable for benchmarking FS read performance */ #include <stdio.h> #include <errno.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <stdlib.h> #include <unistd.h> int main(int argc, char **ar...
google
android
stream01
.c
platform/external/ltp/testcases/kernel/fs/stream/stream01.c
3,582
utf_8
365e6f33e9b206c63ba8fd0dfa9b17ab
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* ported from SPIE section2/filesuite/stream1.c, by Airong Zhang */ /*====================================================================== =================== TESTPLAN SEGMENT =================== >KEYS: < freopen() >WHAT: ...
google
android
stream02
.c
platform/external/ltp/testcases/kernel/fs/stream/stream02.c
3,247
utf_8
49eb17b6ebc276887ebdac9347747101
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* ported from SPIE section2/filesuite/stream2.c, by Airong Zhang */ /*====================================================================== =================== TESTPLAN SEGMENT =================== >KEYS: < fseek() mknod() fo...
google
android
stream05
.c
platform/external/ltp/testcases/kernel/fs/stream/stream05.c
6,312
utf_8
a35d8d42512f9fcbd083289b601847ad
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* ported from SPIE, section2/filesuite/stream.c, by Airong Zhang */ /*====================================================================== =================== TESTPLAN SEGMENT =================== >KEYS: < ferror() feof() cl...
google
android
stream04
.c
platform/external/ltp/testcases/kernel/fs/stream/stream04.c
3,603
utf_8
09cfc037c053c89ac6d2d13758b3edf6
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* Ported from SPIE, section2/iosuite/stream4.c, by Airong Zhang */ /*====================================================================== =================== TESTPLAN SEGMENT =================== >KEYS: < fwrite() fread() >W...
google
android
stream03
.c
platform/external/ltp/testcases/kernel/fs/stream/stream03.c
7,133
utf_8
5dcc93c6aac2de0bcbdacd73071743a0
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* ported from SPIE, section2/filesuite/stream3.c, by Airong Zhang */ /*====================================================================== =================== TESTPLAN SEGMENT =================== >KEYS: < fseek() ftell() >...
google
android
fs_fill
.c
platform/external/ltp/testcases/kernel/fs/fs_fill/fs_fill.c
2,279
utf_8
ca5b23e055c73e2e48f3aa278175051b
*/ /* * Runs several threads that fills up the filesystem repeatedly. */ #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <fcntl.h> #include <pthread.h> #include "tst_safe_pthread.h" #include "tst_test.h" #define MNTPOINT "mntpoint" static volatile int run; static unsigned int n...
google
android
lftest
.c
platform/external/ltp/testcases/kernel/fs/lftest/lftest.c
1,909
utf_8
167dd4527c34aa263ca3ec12a8b55af3
* * The purpose of this test is to verify the file size limitations * of a filesystem. It writes one buffer at a time and lseeks from * the beginning of the file to the end of the last write position. * The intent is to test lseek64. */ #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/s...
google
android
openfile
.c
platform/external/ltp/testcases/kernel/fs/openfile/openfile.c
6,326
utf_8
ae1a52b02319976ad6fbe5a397a1098d
/* * * -Ported * - Modified. * added #inclide <unistd.h> * */ #include <pthread.h> #include <stdio.h> #include <stdlib.h> #include <stdint.h> #include <unistd.h> #include "test.h" char *TCID = "openfile01"; /* Test program identifier. */ int TST_TOTAL = 1; #define MAXFILES 32768 #define MAXTHRE...
google
android
uevent03
.c
platform/external/ltp/testcases/kernel/uevents/uevent03.c
5,087
utf_8
6802441209448d3c2f800f9b43f32d7c
*/ /* * Very simple uevent netlink socket test. * * We fork a child that listens for a kernel events while parents creates and * removes a virtual mouse which produces add and remove event for the device * itself and for two event handlers called eventX and mouseY. */ #include <stdio.h> #include <stdlib.h> #incl...
google
android
uevent02
.c
platform/external/ltp/testcases/kernel/uevents/uevent02.c
3,236
utf_8
ccbf97c95f3a5d6ad9929f89e3cb1893
*/ /* * Very simple uevent netlink socket test. * * We fork a child that listens for a kernel events while parents creates and * removes a tun network device which should produce two several add and remove * events. */ #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include <sys/socket.h> #include ...
google
android
uevent01
.c
platform/external/ltp/testcases/kernel/uevents/uevent01.c
2,053
utf_8
6e369920630f7d49fc67672120cbe5a6
*/ /* * Very simple uevent netlink socket test. * * We fork a child that listens for a kernel events while parents attaches and * detaches a loop device which should produce two change events. */ #include <stdio.h> #include <stdlib.h> #include <sys/wait.h> #include "tst_test.h" #include "uevent.h" static void gen...
google
android
aiodio_append
.c
platform/external/ltp/testcases/kernel/io/ltp-aiodio/aiodio_append.c
4,758
utf_8
1fbd711aeaf2b0fae9b974855a851a4c
*/ /*\ * [Description] * * Append zeroed data to a file using libaio while other processes are doing * buffered reads and check if the buffer reads always see zero. */ #define _GNU_SOURCE #include "tst_test.h" #ifdef HAVE_LIBAIO #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #include <libaio.h> #in...
google
android
aiodio_sparse
.c
platform/external/ltp/testcases/kernel/io/ltp-aiodio/aiodio_sparse.c
5,346
utf_8
a08c1b5f8c8753155e1886802f539402
*/ /*\ * [Description] * * Create a sparse file and write zeroes to it using libaio while other * processes are doing buffered reads and check if the buffer reads always see * zero. */ #define _GNU_SOURCE #include "tst_test.h" #ifdef HAVE_LIBAIO #include <stdlib.h> #include <sys/wait.h> #include <unistd.h> #incl...
google
android
dirty
.c
platform/external/ltp/testcases/kernel/io/ltp-aiodio/dirty.c
1,529
utf_8
d5ab36b6d36b916364a25822dbb72c89
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA * * Module: .c */ /* * Change History: * * */ #include <stdlib.h> #include <fcntl.h> #include <memory.h> #include <stdio.h> #include <unistd.h> #include <limits.h> int main(void) { int fd; int i; char buf[32 * 1024]; char fi...
google
android
dio_truncate
.c
platform/external/ltp/testcases/kernel/io/ltp-aiodio/dio_truncate.c
4,541
utf_8
a5f91ad28d1e5b41994ef584d79973a2
*/ /*\ * [Description] * * This test is mixing direct I/O and truncate operations checking if they can * be used together at the same time. Multiple children are spawned to read a * file that is written to using direct I/O and truncated in a loop. * * [Algorithm] * * - Spawn multiple children which start to r...
google
android
aio-stress
.c
platform/external/ltp/testcases/kernel/io/ltp-aiodio/aio-stress.c
33,717
utf_8
5f2921f98da7924113715ffaa0d2ba9b
*/ /*\ * [Description] * * Test creates a series of files and start AIO operations on them. * AIO is done in a rotating loop: first file1.bin gets 8 requests, then * file2.bin, then file3.bin etc. As each file finishes writing, test switches * to reads. IO buffers are aligned in case we want to do direct IO. */...
google
android
dio_append
.c
platform/external/ltp/testcases/kernel/io/ltp-aiodio/dio_append.c
2,487
utf_8
721a74305ac89b2e6b016834fe64a89d
*/ /*\ * [Description] * * Appends zeroed data to a file using O_DIRECT while a child processes are * doing buffered reads after seeking to the end of the file and checks if the * buffer reads always see zero. */ #define _GNU_SOURCE #include "tst_test.h" #include "common.h" static volatile int *run_child; static...
google
android
dio_sparse
.c
platform/external/ltp/testcases/kernel/io/ltp-aiodio/dio_sparse.c
3,275
utf_8
bd78cf863eab835081690d8057048e04
*/ /*\ * [Description] * * Create a sparse file using O_DIRECT while other processes are doing * buffered reads and check if the buffer reads always see zero. */ #define _GNU_SOURCE #include <stdlib.h> #include <unistd.h> #include <string.h> #include <sys/wait.h> #include "tst_test.h" #include "common.h" static v...
google
android
aiocp
.c
platform/external/ltp/testcases/kernel/io/ltp-aiodio/aiocp.c
7,750
utf_8
10ff2c1fcef9ee23cfe1bfcb943e802a
*/ /*\ * [Description] * * Copy file by using an async I/O state machine. * * - Start read request * - When read completes turn it into a write request * - When write completes decrement counter and free up resources */ #define _GNU_SOURCE #include "tst_test.h" #ifdef HAVE_LIBAIO #include <libaio.h> #include <...
google
android
dio_read
.c
platform/external/ltp/testcases/kernel/io/ltp-aiodio/dio_read.c
4,484
utf_8
2055f058bc70d225a892f3b16ad4cc46
*/ /*\ * [Description] * * Create a file using buffered writes while other processes are doing * O_DIRECT reads and check if the buffer reads always see zero. */ #define _GNU_SOURCE #include <unistd.h> #include <limits.h> #include <string.h> #include <fcntl.h> #include <sys/mman.h> #include "tst_test.h" #include ...
google
android
aio01
.c
platform/external/ltp/testcases/kernel/io/aio/aio01.c
10,569
utf_8
5ffb1c05ea29d95abae0b4c186207a73
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * aiotest1.c * * DESCRIPTION * Perform aio read, write operations for given number of requests. * Submit i/o for each request individually. * Repeat the test for each of the following cases a...
google
android
aio02
.c
platform/external/ltp/testcases/kernel/io/aio/aio02.c
4,920
utf_8
539b600fe7a074fcce44eb5431428c90
*/ #include "config.h" #include "tst_test.h" #ifdef HAVE_LIBAIO #include <errno.h> #include <stdlib.h> #include <libaio.h> #define AIO_MAXIO 32 #define AIO_BLKSIZE (64*1024) static int wait_count; #define DESC_FLAGS_OPR(x, y) .desc = (x == IO_CMD_PWRITE ? "WRITE: " #y: "READ : " #y), \ .flags = y, .operation = x stru...
google
android
writetest
.c
platform/external/ltp/testcases/kernel/io/writetest/writetest.c
6,024
utf_8
d1e8b0b89b03d1e35a9ceec1b989b1c9
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * FILE : writetest.c * DESCRIPTION : The purpose of this test is to verify that writes to * disk occur without corruption. It writes one 1MB * buffer at a time, where each byte in t...
google
android
diotest1
.c
platform/external/ltp/testcases/kernel/io/direct_io/diotest1.c
4,302
utf_8
69f29a87698a5e7235b4b72377fa89c4
/* * * DESCRIPTION * Copy the contents of the input file to output file using direct read * and direct write. The input file size is numblks*bufsize. * The read and write calls use bufsize to perform IO. Input and output * files can be specified through commandline and is useful for running * test with raw devic...
google
android
diotest6
.c
platform/external/ltp/testcases/kernel/io/direct_io/diotest6.c
9,979
utf_8
e58401151c4d1ac7ca965d8adab4ead5
/* * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * DESCRIPTION * Fork given number of children. Each child opens the same file, but * uses its own file descriptior. The child does writes and reads from * its segment in the file. The segment to which the child writes is * de...
google
android
diotest2
.c
platform/external/ltp/testcases/kernel/io/direct_io/diotest2.c
7,394
utf_8
0073e3afb1247665c6515950e5f2915d
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * diotest2.c * * DESCRIPTION * Program tests the combinations of direct and buffered read, write. * The bufsize should be in n*4k size for direct read, write. The offset * value marks the starting position ...
google
android
dma_thread_diotest
.c
platform/external/ltp/testcases/kernel/io/direct_io/dma_thread_diotest.c
15,148
utf_8
784315879beab1181cb8668faa02f767
/* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /******************************************************************************/ /****************************************************************************...
google
android
diotest_routines
.c
platform/external/ltp/testcases/kernel/io/direct_io/diotest_routines.c
5,336
utf_8
77fa749edcb9d6235a5692f4ed20c950
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * diotest_routines.c * * DESCRIPTION * Functions that are used in diotest programs. * fillbuf(), bufcmp(), filecmp() * forkchldrn(), waitchldrn(), killchldrn() * * History * 04/10/2002 Narasimha Sharoff ...
google
android
diotest5
.c
platform/external/ltp/testcases/kernel/io/direct_io/diotest5.c
8,532
utf_8
1b5c774fb9d414ae5f71adcce4ac7f4c
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * diotest5.c * * DESCRIPTION * The programs test buffered and direct IO with vector arrays using * readv() and writev() calls. * Test blocks * [1] Direct readv, Buffered writev * [2] Direct writev, Buffer...
google
android
diotest4
.c
platform/external/ltp/testcases/kernel/io/direct_io/diotest4.c
15,099
utf_8
1d68993a057351641085098642d2ed3a
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * diotest4.c * * DESCRIPTION * The program generates error conditions and verifies the error * code generated with the expected error value. The program also * tests some of the boundary condtions. The size...
google
android
diotest3
.c
platform/external/ltp/testcases/kernel/io/direct_io/diotest3.c
9,234
utf_8
07db052ae299674ef3056db5d0e3cb3b
/* * * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* * NAME * diotest3.c * * DESCRIPTION * Fork given number of children. Each child opens the same file, but * uses its own file descriptiors. The child does writes and reads from * its segment in the file. The segmen...
google
android
prot_hsymlinks
.c
platform/external/ltp/testcases/kernel/security/prot_hsymlinks/prot_hsymlinks.c
13,303
utf_8
bcfacbe459fcd226dceefc27a1cb2b7b
/* * * Test checks following preconditions: * * Symlinks * --------- * Users who own sticky world-writable directory can't follow symlinks * inside that directory if their don't own ones. All other users can follow. * * Hardlinks * --------- * Hard links restriction applies only to non-privileged users. Only...
google
android
check_pe
.c
platform/external/ltp/testcases/kernel/security/cap_bound/check_pe.c
2,931
utf_8
fb76d9494fa3317afee2f839a0a98cd5
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
cap_bounds_rw
.c
platform/external/ltp/testcases/kernel/security/cap_bound/cap_bounds_rw.c
4,656
utf_8
4515e73d0d901432aba85a64ecef4176
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
cap_bset_inh_bounds
.c
platform/external/ltp/testcases/kernel/security/cap_bound/cap_bset_inh_bounds.c
4,596
utf_8
62a022bcd11cc64f80e9333b603c1187
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
exec_with_inh
.c
platform/external/ltp/testcases/kernel/security/cap_bound/exec_with_inh.c
3,391
utf_8
2abb1fadc84ff34190aab00ee3599208
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
cap_bounds_r
.c
platform/external/ltp/testcases/kernel/security/cap_bound/cap_bounds_r.c
3,542
utf_8
ff8022da150ad3c777cc6672e9ed6649
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
exec_without_inh
.c
platform/external/ltp/testcases/kernel/security/cap_bound/exec_without_inh.c
3,326
utf_8
16b8073c428c6048716b4d7df27819b7
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
tomoyo_accept_test
.c
platform/external/ltp/testcases/kernel/security/tomoyo/tomoyo_accept_test.c
5,027
utf_8
5cf70cd288e720a467cf812a42a64f4b
*/ #include "include.h" static void set_level(const int i) { set_profile(i, "file::execute"); set_profile(i, "file::open"); set_profile(i, "file::create"); set_profile(i, "file::unlink"); set_profile(i, "file::mkdir"); set_profile(i, "file::rmdir"); set_profile(i, "file::mkfifo"); set_profile(i, "file::mksock"...
google
android
newns
.c
platform/external/ltp/testcases/kernel/security/tomoyo/newns.c
2,113
utf_8
d3d2a5226584b7c034389a5877e047eb
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
tomoyo_filesystem_test
.c
platform/external/ltp/testcases/kernel/security/tomoyo/tomoyo_filesystem_test.c
24,385
utf_8
1b884b44c75c15605141298488a6cd30
*/ #define _GNU_SOURCE #include "include.h" static void show_prompt(const char *str, const int should_fail) { printf("Testing %60s: (%s) ", str, should_fail ? "must fail" : "should success"); errno = 0; } #ifndef MS_MOVE #define MS_MOVE 8192 #endif static const char *pivot_root_dir = "/sys/kernel/sec...
google
android
tomoyo_policy_io_test
.c
platform/external/ltp/testcases/kernel/security/tomoyo/tomoyo_policy_io_test.c
7,436
utf_8
d5bb0de19472761df4422b9e7a7e71d9
*/ #include "include.h" static FILE *policy_fp = NULL; static const char *policy_file = ""; static void try_io(const char *policy, const char should_success) { FILE *fp = fopen(policy_file, "r"); char buffer[8192]; int policy_found = 0; memset(buffer, 0, sizeof(buffer)); printf("%s: ", policy); fprintf(policy_fp...
google
android
tomoyo_file_test
.c
platform/external/ltp/testcases/kernel/security/tomoyo/tomoyo_file_test.c
8,775
utf_8
cf28c503b6293d25aceb1fa5ee1b8ed6
*/ #include "include.h" static int should_fail = 0; static void show_prompt(const char *str) { printf("Testing %35s: (%s) ", str, should_fail ? "must fail" : "should success"); errno = 0; } static void show_result(int result) { if (should_fail) { if (result == EOF) { if (errno == EPERM) printf("OK:...
google
android
tomoyo_rewrite_test
.c
platform/external/ltp/testcases/kernel/security/tomoyo/tomoyo_rewrite_test.c
4,784
utf_8
250c7f0d4da10b298ba4f69d033e9495
*/ #include "include.h" static int should_fail = 0; static void show_prompt(const char *str) { printf("Testing %35s: (%s) ", str, should_fail ? "must fail" : "must success"); errno = 0; } static void show_result(int result) { if (should_fail) { if (result == EOF) { if (errno == EPERM) printf("OK: P...
google
android
tomoyo_new_file_test
.c
platform/external/ltp/testcases/kernel/security/tomoyo/tomoyo_new_file_test.c
18,276
utf_8
904fa6d87a8d72ce5ed11207ea6bf301
*/ #include "include.h" static const char *policy = ""; static void show_result(int result, char should_success) { int error = errno; printf("%s : ", policy); if (should_success) { if (result != EOF) printf("OK\n"); else printf("FAILED: %s\n", strerror(error)); } else { if (result == EOF) { if (erro...
google
android
tomoyo_policy_memory_test
.c
platform/external/ltp/testcases/kernel/security/tomoyo/tomoyo_policy_memory_test.c
11,170
utf_8
2fbc8de133d45fe6387372319d8cb362
*/ /* * Usage: Run this program using init= boot option. */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/mount.h> static void BUG(const char *msg) { printf("%s", msg); fflush(stdout); while (1) sleep(100); } static const char *policy_file = NULL; static const char...
google
android
tomoyo_new_test
.c
platform/external/ltp/testcases/kernel/security/tomoyo/tomoyo_new_test.c
22,295
utf_8
f51889f7c475a229f8787769d444033d
*/ #include "include.h" static int result; static int error; static void show_result(const char *test, int should_success) { error = errno; printf("%s : ", test); if (should_success) { if (error == 0) printf("OK (%d)\n", result); else printf("FAILED: %s\n", strerror(error)); } else { if (error == 0) ...
google
android
dirtyc0w_shmem
.c
platform/external/ltp/testcases/kernel/security/dirtyc0w_shmem/dirtyc0w_shmem.c
2,214
utf_8
b290ac942d950e17493de23958cf3488
*/ /*\ * [Description] * * This is a regression test for a write race that allowed unprivileged programs * to change readonly files located on tmpfs/shmem on the system using * userfaultfd "minor fault handling" (CVE-2022-2590). */ #include "config.h" #include <pthread.h> #include <unistd.h> #include <sys/stat.h...
google
android
dirtyc0w_shmem_child
.c
platform/external/ltp/testcases/kernel/security/dirtyc0w_shmem/dirtyc0w_shmem_child.c
5,893
utf_8
a589337c2b99584fbd6b9965728867f2
* Based on original reproducer: https://seclists.org/oss-sec/2022/q3/128 */ #include "config.h" #include <fcntl.h> #include <pthread.h> #include <unistd.h> #include <sys/stat.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <pwd.h> #include <poll.h> #include <unistd.h> #include <sys/mman.h> #i...
google
android
check_keepcaps
.c
platform/external/ltp/testcases/kernel/security/securebits/check_keepcaps.c
3,589
utf_8
af2a2c16ef8b22fd92b81193995991ae
#include <errno.h> #include "config.h" #if HAVE_SYS_CAPABILITY_H #include <linux/types.h> #include <sys/capability.h> #endif #include <sys/prctl.h> #include "test.h" #ifndef SECBIT_KEEP_CAPS #define SECBIT_KEEP_CAPS (1<<4) #endif /* Tests: 1. drop capabilities at setuid if KEEPCAPS is not set and new user is nonro...
google
android
dirtypipe
.c
platform/external/ltp/testcases/kernel/security/dirtypipe/dirtypipe.c
4,242
utf_8
150cf257fb8a77366b20abd576566881
*/ /*\ * [Description] * * Proof-of-concept exploit for the Dirty Pipe * vulnerability (CVE-2022-0847) caused by an uninitialized * "pipe_buffer.flags" variable. It demonstrates how to overwrite any * file contents in the page cache, even if the file is not permitted * to be written, immutable or on a read-onl...
google
android
dirtyc0w_child
.c
platform/external/ltp/testcases/kernel/security/dirtyc0w/dirtyc0w_child.c
2,490
utf_8
3d161e3498392d56b7dd7b08622dbf9a
* Based on: https://github.com/dirtycow/dirtycow.github.io */ #include <sys/mman.h> #include <fcntl.h> #include <pthread.h> #include <unistd.h> #include <sys/stat.h> #include <string.h> #include <stdlib.h> #include <stdint.h> #include <pwd.h> #include "tst_safe_pthread.h" #define TST_NO_DEFAULT_MAIN #include "tst_te...
google
android
dirtyc0w
.c
platform/external/ltp/testcases/kernel/security/dirtyc0w/dirtyc0w.c
2,173
utf_8
42da44dd48a69621ea2b00791c408387
* Date: Mon Aug 1 11:14:49 2005 -0700 * * Fix get_user_pages() race for write access * * Then it reappeared and was fixed again in: * * commit 19be0eaffa3ac7d8eb6784ad9bdbc7d67ed8e619 * Date: Thu Oct 13 20:07:36 2016 GMT * * mm: remove gup_flags FOLL_WRITE games from __get_user_pages() */ #incl...
google
android
check_simple_capset
.c
platform/external/ltp/testcases/kernel/security/filecaps/check_simple_capset.c
2,072
utf_8
f1e071a5b75903f290d93f2a0d4ce13f
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
verify_caps_exec
.c
platform/external/ltp/testcases/kernel/security/filecaps/verify_caps_exec.c
10,481
utf_8
26dd2385de7bd7e2b75bb0c35ac6733f
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
inh_capped
.c
platform/external/ltp/testcases/kernel/security/filecaps/inh_capped.c
3,770
utf_8
b1d1b9d816c1f19fb34ff37667926234
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
print_caps
.c
platform/external/ltp/testcases/kernel/security/filecaps/print_caps.c
2,423
utf_8
1f38916c255d42184b9fc229672f9d2a
/******************************************************************************/ /* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ /* */ /***********************************************************************...
google
android
ima_mmap
.c
platform/external/ltp/testcases/kernel/security/integrity/ima/src/ima_mmap.c
961
utf_8
a699aa592f879b685c80b5d86fbadb30
*/ #include "tst_test.h" #define SLEEP_AFTER_CLOSE 3 #define MMAPSIZE 1024 static char *filename; static void *file; static int fd; static void cleanup(void) { if (file) SAFE_MUNMAP(file, MMAPSIZE); if (fd > 0) SAFE_CLOSE(fd); } static void run(void) { if (!filename) tst_brk(TBROK, "missing filename (-f filen...
google
android
ima_boot_aggregate
.c
platform/external/ltp/testcases/kernel/security/integrity/ima/src/ima_boot_aggregate.c
3,156
utf_8
4fb27d24e5495691b83ae9df2bf9e1e5
* * Calculate a SHA1 boot aggregate value based on the TPM 1.2 * binary_bios_measurements. */ #include "config.h" #include <stdio.h> #include <stdlib.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <string.h> #include <unistd.h> #include <limits.h> #include "tst_test.h" #include "tst_saf...
google
android
smack_notroot
.c
platform/external/ltp/testcases/kernel/security/smack/smack_notroot.c
571
utf_8
93f101fe93b9449989882ed763fac595
/* */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int main(int argc, char *argv[]) { setuid(1); execv(argv[1], &argv[1]); perror(argv[0]); exit(1); }
google
android
smack_set_socket_labels
.c
platform/external/ltp/testcases/kernel/security/smack/smack_set_socket_labels.c
2,280
utf_8
cdf104a412faf3b7c9e898e1f892fcf7
/* */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netinet/ip.h> #include <netinet/udp.h> #ifdef HAVE_LINUX_NETLINK_H #include <linux/netlin...
google
android
umip_basic_test
.c
platform/external/ltp/testcases/kernel/security/umip/umip_basic_test.c
4,132
utf_8
d61a316115954ac2060df588037f7060
*/ /* * This test will check if Intel umip(User-Mode Execution Prevention) is * working. * * Intel CPU of ICE lake or newer is required for the test * kconfig requirement:CONFIG_X86_INTEL_UMIP=y */ #define _GNU_SOURCE #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/wa...
google
android
snd_seq01
.c
platform/external/ltp/testcases/kernel/sound/snd_seq01.c
2,896
utf_8
1025e84420d84cf4950aa230d21f4c82
* Date: Mon Feb 12 15:20:51 2018 +0100 * * ALSA: seq: Fix racy pool initializations */ #include <linux/types.h> #include <time.h> #include <sound/asound.h> #include <sound/asequencer.h> #include "tst_test.h" #include "tst_fuzzy_sync.h" static int fd = -1; static int client_id; static struct snd_seq_remove_event...
google
android
snd_timer01
.c
platform/external/ltp/testcases/kernel/sound/snd_timer01.c
3,489
utf_8
beebe4ce799956f1833ad3578341e312
* * Be careful! This test may crash your kernel! * * The test performs several ioctl() parallel with readv() on the same * file descriptor to /dev/snd/timer. A buggy kernel will leak memory * to the process, which may contain information from the the kernel or * any other process on the system. * * The issue w...
google
android
memtoy
.c
platform/external/ltp/testcases/kernel/hotplug/memory_hotplug/memtoy.c
9,134
utf_8
3df4d2fde0128ee1df55a141b62e726d
/* * memtoy.c -- toy/tool for investigating Linux [Numa] VM behavior */ /* * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <stdio.h> #include "config.h" #include "tst_res_flags.h" #ifdef HAVE_NUMA_V2 #include <sys/types.h> #include <sys/time.h> #include <sys/mman.h> #include ...
google
android
commands
.c
platform/external/ltp/testcases/kernel/hotplug/memory_hotplug/commands.c
30,845
utf_8
45b164672cbaa899a0d9977bf1d64187
/* * memtoy: commands.c - command line interface * * A brute force/ad hoc command interpreter: * + parse commands [interactive or batch] * + convert/validate arguments * + some general/administrative commands herein * + actual segment management routines in segment.c */ /* * Foundation, Inc., 59 Temple Place...
google
android
segment
.c
platform/external/ltp/testcases/kernel/hotplug/memory_hotplug/segment.c
21,293
utf_8
a629df89b8824ce47a45aa33b6096935
/* * memtoy: segment.c - manage memory segments * * create/destroy/map/unmap - anonymous, file and SysV shmem segments * touch [read or write] - ranges of segments * mbind - ranges of segments * show mappings or locations of segment pages */ /* * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111...
google
android
ksm_helper
.c
platform/external/ltp/testcases/kernel/lib/ksm_helper.c
1,105
utf_8
7db6876172fb49446371ff41fcfb4e1a
*/ #define TST_NO_DEFAULT_MAIN #include <unistd.h> #include "tst_test.h" #include "ksm_helper.h" void wait_ksmd_full_scan(void) { unsigned long full_scans, at_least_one_full_scan; int count = 0; SAFE_FILE_SCANF(PATH_KSM "full_scans", "%lu", &full_scans); /* * The current scan is already in progress so we can't g...
google
android
numa_helper
.c
platform/external/ltp/testcases/kernel/lib/numa_helper.c
7,266
utf_8
15ce35b2a27352e0feb5a188ffc4b9f8
/* * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include "config.h" #include <errno.h> #if HAVE_NUMA_H #include <numa.h> #endif #if HAVE_NUMAIF_H #include <numaif.h> #endif #include <stdarg.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <e...
google
android
pty07
.c
platform/external/ltp/testcases/kernel/pty/pty07.c
2,665
utf_8
c997ff82d283ea24a00c1ae211f3f31d
* Date: Mon Feb 10 11:07:21 2020 -0800 * * vt: vt_ioctl: fix race in VT_RESIZEX */ #define _GNU_SOURCE #include <stdlib.h> #include <stdio.h> #include <errno.h> #include <termios.h> #include <linux/vt.h> #include "lapi/ioctl.h" #include "tst_test.h" #include "tst_safe_stdio.h" #include "tst_fuzzy_sync.h" #def...
google
android
ptem01
.c
platform/external/ltp/testcases/kernel/pty/ptem01.c
9,570
utf_8
012965c6b807db92735af45bec2fd698
/* #define _GNU_SOURCE #include <errno.h> #include <stdio.h> #include <stdlib.h> #include <stdio.h> #include <termios.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/poll.h> #include <sys/types.h> #include "test.h" #include "safe_macros.h" #include "lapi/ioctl.h" char *TCID = "ptem01"; /* Test program identi...
google
android
pty01
.c
platform/external/ltp/testcases/kernel/pty/pty01.c
8,796
utf_8
77ffb24b46821a51569d5b95c83639c0
/* * #define _GNU_SOURCE #include <sys/types.h> #include <sys/stat.h> #include <sys/wait.h> #include <errno.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <termios.h> #include <unistd.h> #include "test.h" #include "safe_macros.h" #include "lapi/ioctl.h" char *TCID = "pty01"; ...
google
android
pty02
.c
platform/external/ltp/testcases/kernel/pty/pty02.c
1,776
utf_8
de9c34cc6fe361610c8e749773929dbe
*/ /* * Regression test for commit 966031f340185 ("n_tty: fix EXTPROC vs ICANON * interaction with TIOCINQ (aka FIONREAD)"). The test reproduces a hang * (infinite loop in the kernel) after a pseudoterminal is put in both canonical * (ICANON) and external processing (EXTPROC) mode, some data is written to the * ...
google
android
pty03
.c
platform/external/ltp/testcases/kernel/pty/pty03.c
3,727
utf_8
9f7637d17e24a1ffafea01c4670096a2
*/ /*\ * [Description] * * Test based on Syzkaller reproducer: * https://syzkaller.appspot.com/bug?id=680c24ff647dd7241998e19da52e8136d2fd3523 * * The SLIP and SLCAN disciplines can have a race between write_wakeup and * close/hangup. This at least allows the netdev private data (tty->disc_data) * to be set to...
google
android
hangup01
.c
platform/external/ltp/testcases/kernel/pty/hangup01.c
5,527
utf_8
1ee6efbbcf1584e73284e8d45a667442
/* * #define _GNU_SOURCE #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <signal.h> #include <fcntl.h> #include <sys/wait.h> #include <sys/poll.h> /** LTP Port **/ #include "test.h" #include "safe_macros.h" char *TCID = "hangup01"; /* Test program identifier. */ int TST_TOTAL ...
google
android
pty05
.c
platform/external/ltp/testcases/kernel/pty/pty05.c
2,246
utf_8
a7f3b16083ce952bfebb31314f641bd8
* Date: Tue Feb 28 19:54:40 2017 +0300 * * tty: n_hdlc: get rid of racy n_hdlc.tbuf */ #define _GNU_SOURCE #include <termios.h> #include "lapi/ioctl.h" #include "lapi/tty.h" #include "tst_test.h" #include "tst_fuzzy_sync.h" #define BUF_SIZE 1 static struct tst_fzsync_pair fzsync_pair; static volatile int ptmx =...
google
android
pty06
.c
platform/external/ltp/testcases/kernel/pty/pty06.c
2,498
utf_8
39411d2b9e2009b56511f8ccc3264d91
*/ /*\ * [Description] * * Test based on Syzkaller reproducer: * https://syzkaller.appspot.com/bug?extid=522643ab5729b0421998 * * The VT_DISALLOCATE ioctl can free a virtual console while tty_release() is * still running, causing a use-after-free in con_shutdown(). This occurs * because VT_DISALLOCATE only con...
google
android
pty04
.c
platform/external/ltp/testcases/kernel/pty/pty04.c
10,835
utf_8
e32cf786c6facbebae05f5ee3ebae333
* * Test transmitting data over a PTY/TTY line discipline and reading from the * virtual netdev created by the line discipline. Also hangup the PTY while * data is in flight to try to cause a race between the netdev being deleted * and the discipline receive function writing to the netdev. * * For SLCAN we check...
google
android
pt_test
.c
platform/external/ltp/testcases/kernel/tracing/pt_test/pt_test.c
5,625
utf_8
6b3cad5e47eb82af39003686548f2089
*/ /* * This test will check if Intel PT(Intel Processer Trace) is working. * * Intel CPU of 5th-generation Core (Broadwell) or newer is required for the test. * * kconfig requirement: CONFIG_PERF_EVENTS */ #include <sched.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include "tst_test.h" #inclu...