1 // SPDX-License-Identifier: GPL-2.0-only 2 /* 3 * Copyright (c) Wipro Technologies Ltd, 2002. All Rights Reserved. 4 */ 5 6 /*\ 7 * [Description] 8 * 9 * This test is run for option 2 for sysfs(2). 10 * Translate the filesystem type index fs_index into a null-terminated filesystem 11 * identifier string. This string will be written to the buffer pointed to by buf. 12 * Make sure that buf has enough space to accept the string. 13 */ 14 15 #include <errno.h> 16 #include <unistd.h> 17 #include <sys/syscall.h> 18 #include "tst_test.h" 19 #include "lapi/syscalls.h" 20 verify_sysfs02(void)21static void verify_sysfs02(void) 22 { 23 char buf[40]; 24 25 TST_EXP_PASS(tst_syscall(__NR_sysfs, 2, 0, buf), "sysfs(2,0,buf)"); 26 } 27 28 static struct tst_test test = { 29 .test_all = verify_sysfs02, 30 }; 31