aboutsummaryrefslogtreecommitdiffstats
path: root/libselinux/man/man3
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2012-11-16 10:03:00 +0100
committerEric Paris <eparis@redhat.com>2013-02-05 20:14:43 -0500
commit8cc79bcd981abb616ad9cafebcb4302acf392311 (patch)
tree44d9f44ad204e7b232d4eb12b6ff66159f07c608 /libselinux/man/man3
parent7504bbd87302c61f39f8f7641df63213f5da6cd8 (diff)
downloadandroid_external_selinux-8cc79bcd981abb616ad9cafebcb4302acf392311.tar.gz
android_external_selinux-8cc79bcd981abb616ad9cafebcb4302acf392311.tar.bz2
android_external_selinux-8cc79bcd981abb616ad9cafebcb4302acf392311.zip
libselinux: man: Fix program synopsis and function prototypes in man pages
Fix typos, or wrong function prototypes. Signed-off-by: Guillem Jover <guillem@debian.org> Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libselinux/man/man3')
-rw-r--r--libselinux/man/man3/selabel_stats.32
-rw-r--r--libselinux/man/man3/selinux_binary_policy_path.330
-rw-r--r--libselinux/man/man3/selinux_boolean_sub.310
-rw-r--r--libselinux/man/man3/selinux_getpolicytype.32
-rw-r--r--libselinux/man/man3/selinux_policy_root.32
-rw-r--r--libselinux/man/man3/selinux_status_open.32
6 files changed, 24 insertions, 24 deletions
diff --git a/libselinux/man/man3/selabel_stats.3 b/libselinux/man/man3/selabel_stats.3
index 441f4224..d39accce 100644
--- a/libselinux/man/man3/selabel_stats.3
+++ b/libselinux/man/man3/selabel_stats.3
@@ -9,7 +9,7 @@ selabel_stats \- obtain SELinux labeling statistics.
.B #include <selinux/label.h>
.sp
-.BI "void selabel_lookup(struct selabel_handle *" hnd ");"
+.BI "void selabel_stats(struct selabel_handle *" hnd ");"
.SH "DESCRIPTION"
.B selabel_stats
diff --git a/libselinux/man/man3/selinux_binary_policy_path.3 b/libselinux/man/man3/selinux_binary_policy_path.3
index 8ead1a44..b4f6590f 100644
--- a/libselinux/man/man3/selinux_binary_policy_path.3
+++ b/libselinux/man/man3/selinux_binary_policy_path.3
@@ -11,35 +11,35 @@ directories and files.
.B #include <selinux/selinux.h>
.sp
-extern const char *selinux_path(void);
+const char *selinux_path(void);
-extern const char *selinux_policy_root(void);
+const char *selinux_policy_root(void);
-extern const char *selinux_binary_policy_path(void);
+const char *selinux_binary_policy_path(void);
-extern const char *selinux_failsafe_context_path(void);
+const char *selinux_failsafe_context_path(void);
-extern const char *selinux_removable_context_path(void);
+const char *selinux_removable_context_path(void);
-extern const char *selinux_default_context_path(void);
+const char *selinux_default_context_path(void);
-extern const char *selinux_user_contexts_path(void);
+const char *selinux_user_contexts_path(void);
-extern const char *selinux_usersconf_path(void);
+const char *selinux_usersconf_path(void);
-extern const char *selinux_x_context_path(void);
+const char *selinux_x_context_path(void);
-extern const char *selinux_sepgsql_context_path(void);
+const char *selinux_sepgsql_context_path(void);
-extern const char *selinux_file_context_path(void);
+const char *selinux_file_context_path(void);
-extern const char *selinux_media_context_path(void);
+const char *selinux_media_context_path(void);
-extern const char *selinux_securetty_types_path(void);
+const char *selinux_securetty_types_path(void);
-extern const char *selinux_contexts_path(void);
+const char *selinux_contexts_path(void);
-extern const char *selinux_booleans_path(void);
+const char *selinux_booleans_path(void);
.SH "DESCRIPTION"
diff --git a/libselinux/man/man3/selinux_boolean_sub.3 b/libselinux/man/man3/selinux_boolean_sub.3
index 8d54c882..8693d573 100644
--- a/libselinux/man/man3/selinux_boolean_sub.3
+++ b/libselinux/man/man3/selinux_boolean_sub.3
@@ -1,10 +1,10 @@
-.TH "selinux_boolean_subs" "3" "11 June 2012" "dwalsh@redhat.com" "SELinux API documentation"
+.TH "selinux_boolean_sub" "3" "11 June 2012" "dwalsh@redhat.com" "SELinux API documentation"
.SH "NAME"
-selinux_boolean_subs
+selinux_boolean_sub
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
-.BI "char *selinux_boolean_subs(const char * " boolean_name, ");"
+.BI "char *selinux_boolean_sub(const char * " boolean_name ");"
.sp
.SH "DESCRIPTION"
.B selinux_boolean_sub
@@ -14,12 +14,12 @@ for a maching boolean_name record. If the record exists the boolean substitutio
returns the original boolean_name.
.SH "RETURN VALUE"
-.BR selinux_boolean_subs
+.BR selinux_boolean_sub
returns the
.I boolean_name
or the substituted name on success. The returned value must be freed with
.BR free "(3)."
-.BR selinux_boolean_subs
+.BR selinux_boolean_sub
returns NULL on error.
.SH "SEE ALSO"
security_get_boolean_names.3
diff --git a/libselinux/man/man3/selinux_getpolicytype.3 b/libselinux/man/man3/selinux_getpolicytype.3
index 67f95181..b93e66e6 100644
--- a/libselinux/man/man3/selinux_getpolicytype.3
+++ b/libselinux/man/man3/selinux_getpolicytype.3
@@ -4,7 +4,7 @@ selinux_getpolicytype \- get the type of SELinux policy running on the system
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
-.B int selinux_getpolicytype();
+.BI "int selinux_getpolicytype(char **" policytype );
.SH "DESCRIPTION"
diff --git a/libselinux/man/man3/selinux_policy_root.3 b/libselinux/man/man3/selinux_policy_root.3
index 7499c750..c69e16ed 100644
--- a/libselinux/man/man3/selinux_policy_root.3
+++ b/libselinux/man/man3/selinux_policy_root.3
@@ -4,7 +4,7 @@ selinux_policy_root \- return the path of the SELinux policy files for this mach
.SH "SYNOPSIS"
.B #include <selinux/selinux.h>
.sp
-.B char *selinux_policy_root();
+.B const char *selinux_policy_root(void);
.SH "DESCRIPTION"
diff --git a/libselinux/man/man3/selinux_status_open.3 b/libselinux/man/man3/selinux_status_open.3
index e897939e..9cb9249b 100644
--- a/libselinux/man/man3/selinux_status_open.3
+++ b/libselinux/man/man3/selinux_status_open.3
@@ -7,7 +7,7 @@ without invocation of system calls.
.SH "SYNOPSIS"
.B #include <selinux/avc.h>
.sp
-.BI "int selinux_status_open(int " fallback, ");"
+.BI "int selinux_status_open(int " fallback ");"
.sp
.BI "void selinux_status_close(void);"
.sp