1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /*
3 * Copyright (c) 2021 FUJITSU LIMITED. All rights reserved.
4 * Author: Yang Xu <xuyang2018.jy@fujitsu.com>
5 */
6
7 #ifndef LTP_QUOTACTL_SYSCALL_VAR_H
8 #define LTP_QUOTACTL_SYSCALL_VAR_H
9
10 #include "lapi/quotactl.h"
11
12 #define QUOTACTL_SYSCALL_VARIANTS 2
13 #define MNTPOINT "mntpoint"
14
15 static int fd = -1;
16
do_quotactl(int fd,int cmd,const char * special,int id,caddr_t addr)17 static int do_quotactl(int fd, int cmd, const char *special, int id, caddr_t addr)
18 {
19 if (tst_variant == 0)
20 return quotactl(cmd, special, id, addr);
21 return quotactl_fd(fd, cmd, id, addr);
22 }
23
quotactl_info(void)24 static void quotactl_info(void)
25 {
26 if (tst_variant == 0)
27 tst_res(TINFO, "Test quotactl()");
28 else
29 tst_res(TINFO, "Test quotactl_fd()");
30 }
31
32 #endif /* LTP_QUOTACTL_SYSCALL_VAR_H */
33