xref: /aosp_15_r20/external/ltp/testcases/kernel/syscalls/sysfs/sysfs03.c (revision 49cdfc7efb34551c7342be41a7384b9c40d7cab7)
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 3 for sysfs(2).
10  * Return the total number of filesystem types currently present in the kernel.
11  */
12 
13 #include <errno.h>
14 #include <unistd.h>
15 #include <sys/syscall.h>
16 #include "tst_test.h"
17 #include "lapi/syscalls.h"
18 
verify_sysfs03(void)19 static void verify_sysfs03(void)
20 {
21 	TST_EXP_POSITIVE(tst_syscall(__NR_sysfs, 3), "sysfs(3)");
22 }
23 
24 static struct tst_test test = {
25 	.test_all = verify_sysfs03,
26 };
27