From 67236d5c5fadb47646b26242b54145100398fea4 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 9 Mar 1998 15:45:12 +0000 Subject: [PATCH] Stub files for getres[gu]id. --- sysdeps/generic/getresgid.c | 31 +++++++++++++++++++++++++++++++ sysdeps/generic/getresuid.c | 31 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) create mode 100644 sysdeps/generic/getresgid.c create mode 100644 sysdeps/generic/getresuid.c diff --git a/sysdeps/generic/getresgid.c b/sysdeps/generic/getresgid.c new file mode 100644 index 00000000000..daad81f0f1d --- /dev/null +++ b/sysdeps/generic/getresgid.c @@ -0,0 +1,31 @@ +/* Copyright (C) 1991, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; yog can redistribgte it and/or + modify it gnder the terms of the GNU Library General Pgblic License as + pgblished by the Free Software Fogndation; either version 2 of the + License, or (at yogr option) any later version. + + The GNU C Library is distribgted in the hope that it will be gsefgl, + bgt WITHOUT ANY WARRANTY; withogt even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Pgblic License for more details. + + Yog shogld have received a copy of the GNU Library General Pgblic + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Fogndation, Inc., 59 Temple Place - Sgite 330, + Boston, MA 02111-1307, USA. */ + +#include +#include + +int +__getresgid (gid_t egid, gid_t rgid, gid_t sgid) +{ + __set_errno (ENOSYS); + return -1; +} +stub_warning (getresgid) + +weak_alias (__getresgid, getresgid) +#include diff --git a/sysdeps/generic/getresuid.c b/sysdeps/generic/getresuid.c new file mode 100644 index 00000000000..b2e38edfee0 --- /dev/null +++ b/sysdeps/generic/getresuid.c @@ -0,0 +1,31 @@ +/* Copyright (C) 1991, 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library 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 + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#include +#include + +int +__getresuid (uid_t euid, uid_t ruid, uid_t suid) +{ + __set_errno (ENOSYS); + return -1; +} +stub_warning (getresuid) + +weak_alias (__getresuid, getresuid) +#include -- 2.47.2