summaryrefslogtreecommitdiff
path: root/libarchive/archive_entry_perms.3
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2010-02-21 20:55:42 -0500
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2010-02-21 20:55:42 -0500
commit3a44b6b2f684f448d3a2a731e12b4a93ea298d4a (patch)
tree30fcdd522bacfebea875e2270b9a9433b28d2538 /libarchive/archive_entry_perms.3
parent365123bf0f890214e851d37b2527837980a4dee0 (diff)
downloadlibarchive-3a44b6b2f684f448d3a2a731e12b4a93ea298d4a.tar.gz
Add archive_entry_strmode. Spaces around em-dash.
SVN-Revision: 1953
Diffstat (limited to 'libarchive/archive_entry_perms.3')
-rw-r--r--libarchive/archive_entry_perms.311
1 files changed, 9 insertions, 2 deletions
diff --git a/libarchive/archive_entry_perms.3 b/libarchive/archive_entry_perms.3
index 2d05bf79..31f52681 100644
--- a/libarchive/archive_entry_perms.3
+++ b/libarchive/archive_entry_perms.3
@@ -33,6 +33,7 @@
.Nm archive_entry_set_uid ,
.Nm archive_entry_mode ,
.Nm archive_entry_set_mode ,
+.Nm archive_entry_strmode ,
.Nm archive_entry_uname
.Nm archive_entry_uname_w
.Nm archive_entry_set_uname ,
@@ -66,6 +67,8 @@
.Ft void
.Fn archive_entry_set_mode "struct archive_entry *a" "mode_t mode"
.Ft const char *
+.Fn archive_entry_strmode "struct archive_entry *a"
+.Ft const char *
.Fn archive_entry_gname "struct archive_entry *a"
.Ft const wchar_t *
.Fn archive_entry_gname_w "struct archive_entry *a"
@@ -121,6 +124,10 @@ The corresponding functions
and
.Fn archive_entry_set_mode
store the given user id, group id and mode in the entry.
+.Pp
+.Fn archive_entry_strmode
+returns a string representation of the mode as used by the long mode of
+.Xr ls 1 .
.Ss User and group name
User and group names can be provided in one of three different ways:
.Bl -tag -width "wchar_t *"
@@ -187,8 +194,8 @@ This is a platform-specific operation; names that are not meaningful
on the current platform will be ignored.
The function returns a pointer to the start of the first name that was not
recognized, or NULL if every name was recognized.
-Note that every name\(emincluding names that follow an unrecognized
-name\(emwill be evaluated, and the bitmaps will be set to reflect
+Note that every name \(em including names that follow an unrecognized
+name \(em will be evaluated, and the bitmaps will be set to reflect
every name that is recognized.
(In particular, this differs from
.Xr strtofflags 3 ,