diff options
Diffstat (limited to 'lib/libc/compat-43')
-rw-r--r-- | lib/libc/compat-43/setregid.c | 4 | ||||
-rw-r--r-- | lib/libc/compat-43/setreuid.c | 4 | ||||
-rw-r--r-- | lib/libc/compat-43/setrgid.c | 4 | ||||
-rw-r--r-- | lib/libc/compat-43/setruid.c | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/lib/libc/compat-43/setregid.c b/lib/libc/compat-43/setregid.c index 49e910e6ebf..66ffe347b1d 100644 --- a/lib/libc/compat-43/setregid.c +++ b/lib/libc/compat-43/setregid.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setregid.c,v 1.2 1996/08/19 08:19:31 tholo Exp $"; +static char *rcsid = "$OpenBSD: setregid.c,v 1.3 1997/01/19 22:32:14 graichen Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -40,7 +40,9 @@ static char *rcsid = "$OpenBSD: setregid.c,v 1.2 1996/08/19 08:19:31 tholo Exp $ extern int __setregid __P((gid_t, gid_t)); +#ifndef NO_WARN_REFERENCES __warn_references(setregid, "warning: this program uses setregid(), which is deprecated."); +#endif int setregid(rgid, egid) diff --git a/lib/libc/compat-43/setreuid.c b/lib/libc/compat-43/setreuid.c index 9e55abae806..03785e9e927 100644 --- a/lib/libc/compat-43/setreuid.c +++ b/lib/libc/compat-43/setreuid.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setreuid.c,v 1.2 1996/08/19 08:19:33 tholo Exp $"; +static char *rcsid = "$OpenBSD: setreuid.c,v 1.3 1997/01/19 22:32:14 graichen Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> @@ -40,7 +40,9 @@ static char *rcsid = "$OpenBSD: setreuid.c,v 1.2 1996/08/19 08:19:33 tholo Exp $ extern int __setreuid __P((uid_t, uid_t)); +#ifndef NO_WARN_REFERENCES __warn_references(setreuid, "warning: this program uses setreuid(), which is deprecated."); +#endif int setreuid(ruid, euid) diff --git a/lib/libc/compat-43/setrgid.c b/lib/libc/compat-43/setrgid.c index b26f65a8e01..57539b0034f 100644 --- a/lib/libc/compat-43/setrgid.c +++ b/lib/libc/compat-43/setrgid.c @@ -32,13 +32,15 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setrgid.c,v 1.4 1996/08/19 08:19:34 tholo Exp $"; +static char *rcsid = "$OpenBSD: setrgid.c,v 1.5 1997/01/19 22:32:15 graichen Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> #include <unistd.h> +#ifndef NO_WARN_REFERENCES __warn_references(setrgid, "warning: this program uses setrgid(), which is deprecated."); +#endif extern int __setregid __P((gid_t, gid_t)); diff --git a/lib/libc/compat-43/setruid.c b/lib/libc/compat-43/setruid.c index 6b35ad42931..6294e7ccc90 100644 --- a/lib/libc/compat-43/setruid.c +++ b/lib/libc/compat-43/setruid.c @@ -32,13 +32,15 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: setruid.c,v 1.4 1996/08/19 08:19:36 tholo Exp $"; +static char *rcsid = "$OpenBSD: setruid.c,v 1.5 1997/01/19 22:32:15 graichen Exp $"; #endif /* LIBC_SCCS and not lint */ #include <sys/types.h> #include <unistd.h> +#ifndef NO_WARN_REFERENCES __warn_references(setruid, "warning: this program uses setruid(), which is deprecated."); +#endif extern int __setreuid __P((uid_t, uid_t)); |