repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
* loop.c (libcall_other_regs): Make extern.
[official-gcc.git]
/
libio
/
ioperror.c
blob
7ca72b0bb60b18fd053583d49f63806ba63cd532
1
#include
"libioP.h"
2
#include <errno.h>
3
#include <string.h>
4
#ifndef errno
5
extern
int
errno
;
6
#endif
7
8
#ifndef _IO_strerror
9
extern
char
*
_IO_strerror
__P
((
int
));
10
#endif
11
12
void
13
_IO_perror
(
s
)
14
const char
*
s
;
15
{
16
char
*
error
=
_IO_strerror
(
errno
);
17
18
if
(
s
!=
NULL
&& *
s
!=
'\0'
)
19
_IO_fprintf
(
_IO_stderr
,
"%s:"
,
s
);
20
21
_IO_fprintf
(
_IO_stderr
,
"%s
\n
"
,
error
?
error
:
""
);
22
}