summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2000-02-22 08:13:07 +0000
committerru <ru@FreeBSD.org>2000-02-22 08:13:07 +0000
commit90e3f24f25eb19d265bae93b2eda74807ade7678 (patch)
tree4898cba703b0dd5fd743fcb3134646be0f3dbbec /lib
parentc99b4c1afc11b82ebcb8e8ad2a9285d44791b92f (diff)
downloadFreeBSD-src-90e3f24f25eb19d265bae93b2eda74807ade7678.zip
FreeBSD-src-90e3f24f25eb19d265bae93b2eda74807ade7678.tar.gz
Restore `[no]{s|u}unlnk' and `[no]opaque' support.
Broken in src/bin/ls/stat_flags.c,v 1.12. PR: 16885 Approved by: jkh
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/setflags.c9
-rw-r--r--lib/libc/gen/setflagsbyname.c9
-rw-r--r--lib/libc/gen/strtofflags.c9
3 files changed, 21 insertions, 6 deletions
diff --git a/lib/libc/gen/setflags.c b/lib/libc/gen/setflags.c
index 7ad25c2..c1fe6c5 100644
--- a/lib/libc/gen/setflags.c
+++ b/lib/libc/gen/setflags.c
@@ -57,14 +57,19 @@ static struct {
{ "noarch", SF_ARCHIVED, 0 },
{ "noarchived", SF_ARCHIVED, 0 },
{ "noschg", SF_IMMUTABLE, 0 },
- { "nosimmutable", SF_IMMUTABLE, 0 },
{ "noschange", SF_IMMUTABLE, 0 },
+ { "nosimmutable", SF_IMMUTABLE, 0 },
+ { "nosunlnk", SF_NOUNLINK, 0 },
+ { "nosunlink", SF_NOUNLINK, 0 },
{ "nouappnd", UF_APPEND, 0 },
{ "nouappend", UF_APPEND, 0 },
{ "nouchg", UF_IMMUTABLE, 0 },
{ "nouchange", UF_IMMUTABLE, 0 },
{ "nouimmutable", UF_IMMUTABLE, 0 },
- { "nodump", UF_NODUMP, 1 }
+ { "nodump", UF_NODUMP, 1 },
+ { "noopaque", UF_OPAQUE, 0 },
+ { "nouunlnk", UF_NOUNLINK, 0 },
+ { "nouunlink", UF_NOUNLINK, 0 }
};
#define nmappings (sizeof(mapping) / sizeof(mapping[0]))
diff --git a/lib/libc/gen/setflagsbyname.c b/lib/libc/gen/setflagsbyname.c
index 7ad25c2..c1fe6c5 100644
--- a/lib/libc/gen/setflagsbyname.c
+++ b/lib/libc/gen/setflagsbyname.c
@@ -57,14 +57,19 @@ static struct {
{ "noarch", SF_ARCHIVED, 0 },
{ "noarchived", SF_ARCHIVED, 0 },
{ "noschg", SF_IMMUTABLE, 0 },
- { "nosimmutable", SF_IMMUTABLE, 0 },
{ "noschange", SF_IMMUTABLE, 0 },
+ { "nosimmutable", SF_IMMUTABLE, 0 },
+ { "nosunlnk", SF_NOUNLINK, 0 },
+ { "nosunlink", SF_NOUNLINK, 0 },
{ "nouappnd", UF_APPEND, 0 },
{ "nouappend", UF_APPEND, 0 },
{ "nouchg", UF_IMMUTABLE, 0 },
{ "nouchange", UF_IMMUTABLE, 0 },
{ "nouimmutable", UF_IMMUTABLE, 0 },
- { "nodump", UF_NODUMP, 1 }
+ { "nodump", UF_NODUMP, 1 },
+ { "noopaque", UF_OPAQUE, 0 },
+ { "nouunlnk", UF_NOUNLINK, 0 },
+ { "nouunlink", UF_NOUNLINK, 0 }
};
#define nmappings (sizeof(mapping) / sizeof(mapping[0]))
diff --git a/lib/libc/gen/strtofflags.c b/lib/libc/gen/strtofflags.c
index 7ad25c2..c1fe6c5 100644
--- a/lib/libc/gen/strtofflags.c
+++ b/lib/libc/gen/strtofflags.c
@@ -57,14 +57,19 @@ static struct {
{ "noarch", SF_ARCHIVED, 0 },
{ "noarchived", SF_ARCHIVED, 0 },
{ "noschg", SF_IMMUTABLE, 0 },
- { "nosimmutable", SF_IMMUTABLE, 0 },
{ "noschange", SF_IMMUTABLE, 0 },
+ { "nosimmutable", SF_IMMUTABLE, 0 },
+ { "nosunlnk", SF_NOUNLINK, 0 },
+ { "nosunlink", SF_NOUNLINK, 0 },
{ "nouappnd", UF_APPEND, 0 },
{ "nouappend", UF_APPEND, 0 },
{ "nouchg", UF_IMMUTABLE, 0 },
{ "nouchange", UF_IMMUTABLE, 0 },
{ "nouimmutable", UF_IMMUTABLE, 0 },
- { "nodump", UF_NODUMP, 1 }
+ { "nodump", UF_NODUMP, 1 },
+ { "noopaque", UF_OPAQUE, 0 },
+ { "nouunlnk", UF_NOUNLINK, 0 },
+ { "nouunlink", UF_NOUNLINK, 0 }
};
#define nmappings (sizeof(mapping) / sizeof(mapping[0]))
OpenPOWER on IntegriCloud