Skip to contentSkip to conversation

setenv.3: wfix

PATCH In review Kir Kolyshkin 2 participants 2 messages May 11, 2020 Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 setenv.3: wfix

Both functions behave the same wrt return value, no need to describe them separately.

---
 man3/setenv.3 | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
man3/setenv.3 +2 -8
index cd4fbcd6a..82acb0ce9 100644
@@ -104,16 +104,10 @@ If
 does not exist in the environment,
 then the function succeeds, and the environment is unchanged.
 .SH RETURN VALUE
-The
 .BR setenv ()
-function returns zero on success,
-or \-1 on error, with
-.I errno
-set to indicate the cause of the error.
-.PP
-The
+and
 .BR unsetenv ()
-function returns zero on success,
+functions return zero on success,
 or \-1 on error, with
 .I errno
 set to indicate the cause of the error.
Signature · 1 line
2.26.2
#1 lore raw

Hello Kir,

Quoted 3 lines · Kir Kolyshkin

Both functions behave the same wrt return value, no need to describe them separately.

Indeed. Patch applied.

Thanks,

Michael

Quoted 31 lines
---
 man3/setenv.3 | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)
man3/setenv.3 +2 -9
index cd4fbcd6a..82acb0ce9 100644
@@ -104,16 +104,10 @@ If
 does not exist in the environment,
 then the function succeeds, and the environment is unchanged.
 .SH RETURN VALUE
-The
 .BR setenv ()
-function returns zero on success,
-or \-1 on error, with
-.I errno
-set to indicate the cause of the error.
-.PP
-The
+and
 .BR unsetenv ()
-function returns zero on success,
+functions return zero on success,
 or \-1 on error, with
 .I errno
 set to indicate the cause of the error.
--

2.26.2

Signature · 3 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/