hi guys, is that what we talking about (see patch below)? If anybody is concerned about performance, I would be happy to rewrite lookup to use some sort of hashing
I also tried to use koders.com to search for exec* and EACCES. It doesn't look like any code indexed by koders is fishing specifically for EACCES after call to exec* to do some magic recovery. --pawel Index: newlib/libc/include/sys/errno.h =================================================================== RCS file: /cvs/src/src/newlib/libc/include/sys/errno.h,v retrieving revision 1.18 diff -u -r1.18 errno.h --- newlib/libc/include/sys/errno.h 26 Dec 2010 21:11:38 -0000 1.18 +++ newlib/libc/include/sys/errno.h 13 Aug 2012 17:48:33 -0000 @@ -116,7 +116,9 @@ #define EBADFD 81 /* f.d. invalid for this operation */ #define EREMCHG 82 /* Remote address changed */ #define ELIBACC 83 /* Can't access a needed shared lib */ +#endif #define ELIBBAD 84 /* Accessing a corrupted shared lib */ +#ifdef __LINUX_ERRNO_EXTENSIONS__ #define ELIBSCN 85 /* .lib section in a.out corrupted */ #define ELIBMAX 86 /* Attempting to link in too many libs */ #define ELIBEXEC 87 /* Attempting to exec a shared library */ Index: winsup/cygwin/errno.cc =================================================================== RCS file: /cvs/src/src/winsup/cygwin/errno.cc,v retrieving revision 1.87 diff -u -r1.87 errno.cc --- winsup/cygwin/errno.cc 3 Dec 2011 21:43:25 -0000 1.87 +++ winsup/cygwin/errno.cc 13 Aug 2012 17:48:44 -0000 @@ -157,6 +157,7 @@ X (WORKING_SET_QUOTA, EAGAIN), X (WRITE_PROTECT, EROFS), X (PRIVILEGE_NOT_HELD, EPERM), + X (SXS_CANT_GEN_ACTCTX, ELIBBAD), { 0, NULL, 0} }; -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple