{get,set}hostid moves in from sys
[unix-history] / usr / src / lib / libc / compat-43 / setrgid.c
index 292fdd1..95748cc 100644 (file)
@@ -1,15 +1,23 @@
 /*
  * Copyright (c) 1983 Regents of the University of California.
 /*
  * Copyright (c) 1983 Regents of the University of California.
- * All rights reserved.  The Berkeley software License Agreement
- * specifies the terms and conditions for redistribution.
+ * All rights reserved.
+ *
+ * %sccs.include.redist.c%
  */
 
  */
 
-#ifndef lint
-static char sccsid[] = "@(#)setrgid.c  5.1 (Berkeley) %G%";
-#endif not lint
+#if defined(LIBC_SCCS) && !defined(lint)
+static char sccsid[] = "@(#)setrgid.c  5.5 (Berkeley) %G%";
+#endif /* LIBC_SCCS and not lint */
 
 
+#include <unistd.h>
+
+int
+#ifdef __STDC__
+setrgid(gid_t rgid)
+#else
 setrgid(rgid)
        int rgid;
 setrgid(rgid)
        int rgid;
+#endif
 {
 
        return (setregid(rgid, -1));
 {
 
        return (setregid(rgid, -1));