Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151334958
D962.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D962.diff
View Options
Index: getenv.9
===================================================================
--- getenv.9
+++ getenv.9
@@ -32,7 +32,7 @@
.Os
.Sh NAME
.Nm freeenv ,
-.Nm getenv ,
+.Nm kern_getenv ,
.Nm getenv_int ,
.Nm getenv_long ,
.Nm getenv_string ,
@@ -39,7 +39,7 @@
.Nm getenv_quad ,
.Nm getenv_uint ,
.Nm getenv_ulong ,
-.Nm setenv ,
+.Nm kern_setenv ,
.Nm testenv ,
.Nm unsetenv
.Nd kernel environment variable functions
@@ -49,7 +49,7 @@
.Ft void
.Fn freeenv "char *env"
.Ft char *
-.Fn getenv "const char *name"
+.Fn kern_getenv "const char *name"
.Ft int
.Fn getenv_int "const char *name" "int *data"
.Ft int
@@ -63,7 +63,7 @@
.Ft int
.Fn getenv_ulong "const char *name" "unsigned long *data"
.Ft int
-.Fn setenv "const char *name" "const char *value"
+.Fn kern_setenv "const char *name" "const char *value"
.Ft int
.Fn testenv "const char *name"
.Ft int
@@ -73,7 +73,7 @@
environment.
.Pp
The
-.Fn getenv
+.Fn kern_getenv
function obtains the current value of the kernel environment variable
.Fa name
and returns a pointer to the string value.
@@ -80,13 +80,13 @@
The caller should not modify the string pointed to by the return value.
.Pp
The
-.Fn getenv
+.Fn kern_getenv
function may allocate temporary storage,
so the
.Fn freeenv
function must be called to release any allocated resources when the value
returned by
-.Fn getenv
+.Fn kern_getenv
is no longer needed.
The
.Fa env
@@ -93,10 +93,10 @@
argument passed to
.Fn freeenv
is the pointer returned by the earlier call to
-.Fn getenv .
+.Fn kern_getenv .
.Pp
The
-.Fn setenv
+.Fn kern_setenv
function inserts or resets the kernel environment variable
.Fa name
to
@@ -184,13 +184,13 @@
followed by a null character and a non-zero value is returned.
.Sh RETURN VALUES
The
-.Fn getenv
+.Fn kern_getenv
function returns a pointer to an environment variable's value on success or
.Dv NULL
if the variable does not exist.
.Pp
The
-.Fn setenv
+.Fn kern_setenv
and
.Fn unsetenv
functions return zero on success and -1 on failure.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 4:38 PM (10 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31108034
Default Alt Text
D962.diff (1 KB)
Attached To
Mode
D962: Update getenv(9) manpage to reflect the new world order
Attached
Detach File
Event Timeline
Log In to Comment