From: Subrata <sub...@us...> - 2008-09-10 08:59:43
|
Update of /cvsroot/ltp/ltp/testcases/kernel/syscalls/utils In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25758/ltp/testcases/kernel/syscalls/utils Added Files: compat_gid.h Log Message: I worked on 2 test cases for foogid16 system calls; and I will do 5 more. All these test cases have the same macro. So I'd like to introduce compat_gid.h; and put the macro to the file. Could you add compat_gid.h to testcases/kernel/syscalls/utils/ and apply patches for existing test cases? Here after I'd like to use the compat_gid.h in newly ported test cases. Signed-off-by: Masatake YAMATO <ya...@re...>, --- NEW FILE: compat_gid.h --- /* * * Copyright (c) Red Hat Inc., 2008 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See * the GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ /* Author: Masatake YAMATO <ya...@re...> */ #ifndef __COMPAT_GID_16_H__ #define __COMPAT_GID_16_H__ #include <asm/posix_types.h> #ifdef TST_USE_COMPAT16_SYSCALL typedef __kernel_old_gid_t GID_T; int GID_SIZE_CHECK(gid_t gid) { /* See high2lowgid in linux/highuid.h Return 0 if gid is too large to store it to __kernel_old_gid_t. */ return ((gid) & ~0xFFFF)? 0: 1; } #else typedef gid_t GID_T; int GID_SIZE_CHECK(gid_t gid) { return 1; } #endif #endif /* __SETGID_COMPAT_16_H__ */ |