summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2001-03-19 05:56:02 +0000
committerrwatson <rwatson@FreeBSD.org>2001-03-19 05:56:02 +0000
commitf9cefd40abb5c0593754599639e4d354d8ad64ca (patch)
treec1e53f2a24a5754a8839da2e91b996fec1da5539 /usr.sbin
parent5a276e4bc827efb47171751990d8dc312365e76e (diff)
downloadFreeBSD-src-f9cefd40abb5c0593754599639e4d354d8ad64ca.zip
FreeBSD-src-f9cefd40abb5c0593754599639e4d354d8ad64ca.tar.gz
o Rename "namespace" argument to "attrnamespace" as namespace is a C++
reserved word. Submitted by: jkh Obtained from: TrustedBSD Project
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/getextattr/getextattr.84
-rw-r--r--usr.sbin/getextattr/getextattr.c10
-rw-r--r--usr.sbin/setextattr/setextattr.84
-rw-r--r--usr.sbin/setextattr/setextattr.c8
4 files changed, 13 insertions, 13 deletions
diff --git a/usr.sbin/getextattr/getextattr.8 b/usr.sbin/getextattr/getextattr.8
index 306c23c..704cf16 100644
--- a/usr.sbin/getextattr/getextattr.8
+++ b/usr.sbin/getextattr/getextattr.8
@@ -34,7 +34,7 @@
.Sh SYNOPSIS
.Nm
.Op Fl ls
-.Ar namespace
+.Ar attrnamespace
.Ar attrname
.Ar filename ...
.Sh DESCRIPTION
@@ -42,7 +42,7 @@
is a user tool to retrieve a named extended attribute on a file or
directory.
The
-.Ar namespace
+.Ar attrnamespace
argument should be the namespace of the attribute to retrieve: legal
values are "user" and "system".
The
diff --git a/usr.sbin/getextattr/getextattr.c b/usr.sbin/getextattr/getextattr.c
index db55b31..3acbfc1 100644
--- a/usr.sbin/getextattr/getextattr.c
+++ b/usr.sbin/getextattr/getextattr.c
@@ -41,7 +41,7 @@ void
usage(void)
{
- fprintf(stderr, "getextattr [-s] [namespace] [attrname] "
+ fprintf(stderr, "getextattr [-s] [attrnamespace] [attrname] "
"[filename ...]\n");
exit(-1);
}
@@ -58,7 +58,7 @@ main(int argc, char *argv[])
char *attrname;
char buf[BUFSIZE];
char visbuf[BUFSIZE*4];
- int error, i, arg_counter, namespace;
+ int error, i, arg_counter, attrnamespace;
int ch;
int flag_as_string = 0;
@@ -83,7 +83,7 @@ main(int argc, char *argv[])
if (argc < 3)
usage();
- error = extattr_string_to_namespace(argv[0], &namespace);
+ error = extattr_string_to_namespace(argv[0], &attrnamespace);
if (error) {
perror(argv[0]);
return (-1);
@@ -97,8 +97,8 @@ main(int argc, char *argv[])
iov_buf.iov_len = BUFSIZE;
for (arg_counter = 1; arg_counter < argc; arg_counter++) {
- error = extattr_get_file(argv[arg_counter], namespace, attrname,
- &iov_buf, 1);
+ error = extattr_get_file(argv[arg_counter], attrnamespace,
+ attrname, &iov_buf, 1);
if (error == -1)
perror(argv[arg_counter]);
diff --git a/usr.sbin/setextattr/setextattr.8 b/usr.sbin/setextattr/setextattr.8
index 5d08982..5197355 100644
--- a/usr.sbin/setextattr/setextattr.8
+++ b/usr.sbin/setextattr/setextattr.8
@@ -33,7 +33,7 @@
.Nd set a named extended attribute
.Sh SYNOPSIS
.Nm
-.Ar namespace
+.Ar attrnamespace
.Ar attrname
.Ar filename
.Ar attrvalue
@@ -42,7 +42,7 @@
is a user tool to set a named extended attribute on a file or directory to
the provided string.
The
-.Ar namespace
+.Ar attrnamespace
argument should be the namespace of the attribute to retrieve: legal
values are "user" and "system".
The
diff --git a/usr.sbin/setextattr/setextattr.c b/usr.sbin/setextattr/setextattr.c
index 92e31f2..202daa9 100644
--- a/usr.sbin/setextattr/setextattr.c
+++ b/usr.sbin/setextattr/setextattr.c
@@ -40,7 +40,7 @@ void
usage(void)
{
- fprintf(stderr, "setextattr [namespace] [attrname] [filename] "
+ fprintf(stderr, "setextattr [attrnamespace] [attrname] [filename] "
"[attrvalue]\n");
exit(-1);
}
@@ -49,12 +49,12 @@ int
main(int argc, char *argv[])
{
struct iovec iov_buf;
- int error, namespace;
+ int error, attrnamespace;
if (argc != 5)
usage();
- error = extattr_string_to_namespace(argv[1], &namespace);
+ error = extattr_string_to_namespace(argv[1], &attrnamespace);
if (error) {
perror(argv[1]);
return (-1);
@@ -63,7 +63,7 @@ main(int argc, char *argv[])
iov_buf.iov_base = argv[4];
iov_buf.iov_len = strlen(argv[4]);
- error = extattr_set_file(argv[3], namespace, argv[2], &iov_buf, 1);
+ error = extattr_set_file(argv[3], attrnamespace, argv[2], &iov_buf, 1);
if (error == -1) {
perror(argv[3]);
return (-1);
OpenPOWER on IntegriCloud