OSDN Git Service

Don't call mode optional in the man page any more.
authorPeter Jones <pjones@redhat.com>
Mon, 6 Feb 2017 21:00:54 +0000 (16:00 -0500)
committerPeter Jones <pjones@redhat.com>
Mon, 6 Feb 2017 21:43:33 +0000 (16:43 -0500)
Since it's such a pain to keep optional mode working and we've taken out
the API declaration that makes it possible to use in new code, take it
out of the docs as well.

This fixes github issue #73

Signed-off-by: Peter Jones <pjones@redhat.com>
docs/efi_get_variable.3

index d37fcb9..db268b0 100644 (file)
@@ -26,10 +26,6 @@ manipulate UEFI variables
 
 \fBint efi_set_variable(efi_guid_t \fR\fIguid\fR\fB, const char *\fR\fIname\fR\fB,
                                 void *\fR\fIdata\fR\fB, size_t \fR\fIdata_size\fR\fB,
-                                uint32_t \fR\fIattributes\fR\fB);\fR
-
-\fBint efi_set_variable(efi_guid_t \fR\fIguid\fR\fB, const char *\fR\fIname\fR\fB,
-                                void *\fR\fIdata\fR\fB, size_t \fR\fIdata_size\fR\fB,
                                 uint32_t \fR\fIattributes\fR\fB, mode_t \fR\fImode\fR\fB);\fR
 
 \fBint efi_get_next_variable_name(efi_guid_t **\fR\fIguid\fR\fB, char **\fR\fIname\fR\fB);\fR
@@ -69,7 +65,7 @@ gets the size of the data for the variable specified by \fIguid\fR and \fIname\f
 appends \fIdata\fR of size \fIsize\fR to the variable specified by \fIguid\fR and \fIname\fR.
 .PP
 .BR efi_set_variable ()
-sets the variable specified by \fIguid\fR and \fIname\fR.  If the optional \fImode\fR parameter is given, it will use those permissions to create the file, subject to umask.
+sets the variable specified by \fIguid\fR and \fIname\fR, and sets the file mode to \fImode\fR, subject to umask.  Note that the mode will not persist across a reboot, and that the permissions only apply if on systems using efivarfs.
 .PP
 .BR efi_get_next_variable_name ()
 iterates across the currently extant variables, passing back a guid and name.