> > May I ask if there is a way to link error_t to the definition, should > > be in errno.h > > I don't quite understand what you are suggesting. Can you elaborate. Perhaps the patch below suffices to address what you meant(?). Thanks, Michael ==== commit 43891c16edf44b794b0ee794ff3add948a3fb22e (HEAD -> master) Author: Michael Kerrisk <mtk.manpages@xxxxxxxxx> Date: Mon Oct 26 17:13:33 2020 +0100 argz_add.3, envz_add.3: Point out that 'error_t' is an integer type Reported-by: Jonny Grant <jg@xxxxxxxx> Signed-off-by: Michael Kerrisk <mtk.manpages@xxxxxxxxx> diff --git a/man3/argz_add.3 b/man3/argz_add.3 index 40b6eaa5d..bf80e906b 100644 --- a/man3/argz_add.3 +++ b/man3/argz_add.3 @@ -191,7 +191,8 @@ all null bytes (\(aq\e0\(aq) except the last by .IR sep . .SH RETURN VALUE All argz functions that do memory allocation have a return type of -.IR error_t , +.IR error_t +(an integer type), and return 0 for success, and .B ENOMEM if an allocation error occurs. diff --git a/man3/envz_add.3 b/man3/envz_add.3 index c360c9604..d4ed0a8be 100644 --- a/man3/envz_add.3 +++ b/man3/envz_add.3 @@ -111,7 +111,8 @@ if there was one. removes all entries with value NULL. .SH RETURN VALUE All envz functions that do memory allocation have a return type of -.IR error_t , +.IR error_t +(an integer type), and return 0 for success, and .B ENOMEM if an allocation error occurs. -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/