repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git]
/
newlib
/
libc
/
machine
/
spu
/
perror.c
blob
ec073b2f368417031b3f6ce524cac3f1c42f3922
1
#include <stdio.h>
2
#include <errno.h>
3
4
#include
"c99ppe.h"
5
6
#ifndef _REENT_ONLY
7
8
typedef
struct
9
{
10
const char
*
str
;
11
unsigned int
pad0
[
3
];
12
int
arg_errno
;
13
unsigned int
pad1
[
3
];
14
}
c99_perror_t
;
15
16
void
17
perror
(
const char
*
s
)
18
19
{
20
c99_perror_t arg
;
21
22
arg
.
str
=
s
;
23
arg
.
arg_errno
=
errno
;
24
__send_to_ppe
(
SPE_C99_SIGNALCODE
,
SPE_C99_PERROR
, &
arg
);
25
26
return
;
27
}
28
#endif
/* ! _REENT_ONLY */