Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libc / machine / spu / perror.c
blobec073b2f368417031b3f6ce524cac3f1c42f3922
1 #include <stdio.h>
2 #include <errno.h>
4 #include "c99ppe.h"
6 #ifndef _REENT_ONLY
8 typedef struct
10 const char* str;
11 unsigned int pad0[ 3 ];
12 int arg_errno;
13 unsigned int pad1[ 3 ];
14 } c99_perror_t;
16 void
17 perror (const char *s)
20 c99_perror_t arg;
22 arg.str = s;
23 arg.arg_errno = errno;
24 __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &arg);
26 return;
28 #endif /* ! _REENT_ONLY */