home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / os / vms / 14133 < prev    next >
Encoding:
Text File  |  1992-08-26  |  986 b   |  25 lines

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