blob: a28289be98af5c263d709b86a9802d36975565b0 [file] [log] [blame]
subrata_modak4f41ee32008-09-22 06:52:57 +00001/*
2 *
3 * Copyright (c) Red Hat Inc., 2008
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
13 * the GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
Wanlong Gao4548c6c2012-10-19 18:03:36 +080017 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
subrata_modak4f41ee32008-09-22 06:52:57 +000018 */
19
20/* Author: Masatake YAMATO <yamato@redhat.com> */
21
22#ifndef __GETEGID_COMPAT_16_H__
23#define __GETEGID_COMPAT_16_H__
24
25
26#include "linux_syscall_numbers.h"
27#include "compat_gid.h"
28
29
30#ifdef TST_USE_COMPAT16_SYSCALL
31
32GID_T
33GETEGID(void)
34{
Jan Stancek359980f2013-02-15 10:16:05 +010035 return ltp_syscall(__NR_getegid);
subrata_modak4f41ee32008-09-22 06:52:57 +000036}
37
38#else
39
40GID_T
41GETEGID(void)
42{
43 return getegid();
44}
45
46#endif
47
48#endif /* __GETEGID_COMPAT_16_H__ */