home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.vms
- Path: sparky!uunet!think.com!unixland!lobsang
- From: lobsang@unixland.natick.ma.us (Michael Levin)
- Subject: sys_errlist[] in vax C: how large?
- Message-ID: <1992Aug26.132648.16720@unixland.natick.ma.us>
- Organization: Unixland Public Access Unix & Think_Tank BBS
- Distribution: usa
- Date: Wed, 26 Aug 1992 13:26:48 GMT
- Lines: 14
-
-
- I have a program written in VAX C for VMS. I have a statement
- such as "extern char *sys_errlist[]" which allows me to get the string
- corresponding to various errno values. The problem is, errno values
- like 48 (which is a legal errno value, according to errno.h) when used
- as indeces into the sys_errlist array cause a segmentation fault. So,
- how big is the sys_errlist[], why isn't it big enough to include some
- of the valid errno values, and what is the proper way to get the
- string (I cannot use perror()) corresponding to the higher errno
- values? Please reply to mlevin@presto.cs.tufts.edu.
-
- Mike Levin
- --
- Maine Network Backup
-