diff options
Diffstat (limited to 'usr/src/cmd/prctl')
| -rw-r--r-- | usr/src/cmd/prctl/prctl.c | 7 | ||||
| -rw-r--r-- | usr/src/cmd/prctl/utils.c | 8 | ||||
| -rw-r--r-- | usr/src/cmd/prctl/utils.h | 8 |
3 files changed, 9 insertions, 14 deletions
diff --git a/usr/src/cmd/prctl/prctl.c b/usr/src/cmd/prctl/prctl.c index 006ca6aee5..3b405d2aa7 100644 --- a/usr/src/cmd/prctl/prctl.c +++ b/usr/src/cmd/prctl/prctl.c @@ -18,12 +18,11 @@ * * CDDL HEADER END */ + /* - * Copyright 2009 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. */ - #include <unistd.h> #include <rctl.h> #include <libproc.h> @@ -223,7 +222,7 @@ main(int argc, char **argv) (void) setlocale(LC_ALL, ""); (void) textdomain(TEXT_DOMAIN); - (void) setprogname(argv[0]); + (void) setpname(argv[0]); while ((opt = getopt(argc, argv, "sPp:Fd:e:i:n:rt:v:x")) != EOF) { diff --git a/usr/src/cmd/prctl/utils.c b/usr/src/cmd/prctl/utils.c index fc2f29d7f9..20b84befd0 100644 --- a/usr/src/cmd/prctl/utils.c +++ b/usr/src/cmd/prctl/utils.c @@ -18,13 +18,11 @@ * * CDDL HEADER END */ + /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include <sys/param.h> #include <libintl.h> #include <string.h> @@ -44,7 +42,7 @@ static char EOL_FMT[] = "\n"; static char *pname; char * -setprogname(char *arg0) +setpname(char *arg0) { char *p = strrchr(arg0, '/'); diff --git a/usr/src/cmd/prctl/utils.h b/usr/src/cmd/prctl/utils.h index 1afa19fe90..2cc1452dd3 100644 --- a/usr/src/cmd/prctl/utils.h +++ b/usr/src/cmd/prctl/utils.h @@ -18,16 +18,14 @@ * * CDDL HEADER END */ + /* - * Copyright 2007 Sun Microsystems, Inc. All rights reserved. - * Use is subject to license terms. + * Copyright (c) 2001, 2010, Oracle and/or its affiliates. All rights reserved. */ #ifndef _UTILS_H #define _UTILS_H -#pragma ident "%Z%%M% %I% %E% SMI" - #ifdef __cplusplus extern "C" { #endif @@ -35,7 +33,7 @@ extern "C" { #include <sys/types.h> extern void warn(const char *, ...); -extern char *setprogname(char *); +extern char *setpname(char *); /* * scale_t |
