This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 210c72a651 errno: Adjust help string for EALREADY and ESTALE
210c72a651 is described below

commit 210c72a65141b46bc4fa498059ea223a1b744095
Author: Zhe Weng <[email protected]>
AuthorDate: Fri Jun 30 16:23:31 2023 +0800

    errno: Adjust help string for EALREADY and ESTALE
    
    EALREADY:
    Both Linux(asm-generic/errno.h) and FreeBSD(sys/sys/errno.h) regard it as 
"Operation already in progress"
    
    ESTALE:
    Linux specifically removed the "NFS" description, and we may not only use 
it for NFS
    
https://github.com/torvalds/linux/commit/0ca43435188b9f911c8efcdf10731f726142dda1
    
    The ECANCELED and EOWNERDEAD also use different strings from Linux's 
header, but their meanings are same, and NuttX's description are more likely to 
obey POSIX 1003.1-2008, so not changing them.
    
    Signed-off-by: Zhe Weng <[email protected]>
---
 include/errno.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/errno.h b/include/errno.h
index c428ad5d62..7731ac7ae8 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -283,11 +283,11 @@
 #define EHOSTUNREACH        113
 #define EHOSTUNREACH_STR    "No route to host"
 #define EALREADY            114
-#define EALREADY_STR        "Socket already connected"
+#define EALREADY_STR        "Operation already in progress"
 #define EINPROGRESS         115
 #define EINPROGRESS_STR     "Operation now in progress"
 #define ESTALE              116
-#define ESTALE_STR          "Stale NFS file handle"
+#define ESTALE_STR          "Stale file handle"
 #define EUCLEAN             117
 #define EUCLEAN_STR         "Structure needs cleaning"
 #define ENOTNAM             118

Reply via email to