Deleted Added
full compact
setrgid.c (1574) setrgid.c (92986)
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#if defined(LIBC_SCCS) && !defined(lint)
35static char sccsid[] = "@(#)setrgid.c 8.1 (Berkeley) 6/2/93";
36#endif /* LIBC_SCCS and not lint */
1/*
2 * Copyright (c) 1983, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 20 unchanged lines hidden (view full) ---

29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 */
33
34#if defined(LIBC_SCCS) && !defined(lint)
35static char sccsid[] = "@(#)setrgid.c 8.1 (Berkeley) 6/2/93";
36#endif /* LIBC_SCCS and not lint */
37#include <sys/cdefs.h>
38__FBSDID("$FreeBSD: head/lib/libc/compat-43/setrgid.c 92986 2002-03-22 21:53:29Z obrien $");
37
38#include <unistd.h>
39
40int
41#ifdef __STDC__
42setrgid(gid_t rgid)
43#else
44setrgid(rgid)
45 int rgid;
46#endif
47{
48
49 return (setregid(rgid, -1));
50}
39
40#include <unistd.h>
41
42int
43#ifdef __STDC__
44setrgid(gid_t rgid)
45#else
46setrgid(rgid)
47 int rgid;
48#endif
49{
50
51 return (setregid(rgid, -1));
52}