Annotation of coherent/g/usr/lib/uucp/tay104/unix/strerr.c, revision 1.1.1.1

1.1       root        1: /* strerr.c
                      2:    Return a string for a Unix errno value.  */
                      3: 
                      4: #include "uucp.h"
                      5: 
                      6: #include <errno.h>
                      7: 
                      8: #ifndef sys_nerr
                      9: extern int sys_nerr;
                     10: #endif
                     11: #ifndef sys_errlist
                     12: extern char *sys_errlist[];
                     13: #endif
                     14: 
                     15: char *
                     16: strerror (ierr)
                     17:      int ierr;
                     18: {
                     19:   if (ierr >= 0 && ierr < sys_nerr)
                     20:     return sys_errlist[ierr];
                     21:   return (char *) "unknown error";
                     22: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.