1PERROR(3F)                                                          PERROR(3F)
2
3
4

NAME

6       perror, gerror, ierrno - get system error messages
7

SYNOPSIS

9       subroutine perror (string)
10       character*(*) string
11
12       subroutine gerror (string)
13       character*(*) string
14
15       character*(*) function gerror()
16
17       function ierrno()
18

DESCRIPTION

20       Perror  will  write  a message to fortran logical unit 0 appropriate to
21       the last detected system error.  String will be written  preceding  the
22       standard error message.
23
24       Gerror  returns  the system error message in character variable string.
25       Gerror may be called either as a subroutine or as a function.
26
27       Ierrno will return the error number of the last detected system  error.
28       This  number  is updated only when an error actually occurs.  Most rou‐
29       tines and I/O statements that might  generate  such  errors  return  an
30       error  code  after the call; that value is a more reliable indicator of
31       what caused the error condition.
32

FILES

34       /usr/lib/libU77.a
35

SEE ALSO

37       intro(2), perror(3)
38       D. L. Wasley, Introduction to the f77 I/O Library
39

BUGS

41       String in the call to perror can be no longer than 127 characters.
42
43       The length of the string returned by gerror is determined by the  call‐
44       ing program.
45

NOTES

47       UNIX  system  error codes are described in intro(2).  The f77 I/O error
48       codes and their meanings are:
49
50            100  ``error in format''
51            101  ``illegal unit number''
52            102  ``formatted i/o not allowed''
53            103  ``unformatted i/o not allowed''
54            104  ``direct i/o not allowed''
55            105  ``sequential i/o not allowed''
56            106  ``can't backspace file''
57            107  ``off beginning of record''
58            108  ``can't stat file''
59            109  ``no * after repeat count''
60            110  ``off end of record''
61            111  ``truncation failed''
62            112  ``incomprehensible list input''
63            113  ``out of free space''
64            114  ``unit not connected''
65            115  ``invalid data for integer format term''
66            116  ``invalid data for logical format term''
67            117  ``'new' file exists''
68            118  ``can't find 'old' file''
69            119  ``opening too many files or unknown system error''
70            120  ``requires seek ability''
71            121  ``illegal argument''
72            122  ``negative repeat count''
73            123  ``illegal operation for unit''
74            124  ``invalid data for d, e, f, or g format term''
75
76
77
784.2 Berkeley Distribution        June 7, 1985                       PERROR(3F)
Impressum