Last change
on this file since 444 was
444,
checked in by satin@…, 6 years ago
|
add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc
|
File size:
421 bytes
|
Line | |
---|
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 | CHECK_STD_INIT(_REENT); |
---|
23 | |
---|
24 | arg.str = s; |
---|
25 | arg.arg_errno = errno; |
---|
26 | __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &arg); |
---|
27 | |
---|
28 | return; |
---|
29 | } |
---|
30 | #endif /* ! _REENT_ONLY */ |
---|
Note: See
TracBrowser
for help on using the repository browser.