4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-22 15:07:43 +08:00
Yaakov Selkowitz 0bda30e1ff ansification: remove _CONST
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
2018-01-17 11:47:08 -06:00

32 lines
435 B
C

#include <stdio.h>
#include <errno.h>
#include "c99ppe.h"
#ifndef _REENT_ONLY
typedef struct
{
const char* str;
unsigned int pad0[ 3 ];
int arg_errno;
unsigned int pad1[ 3 ];
} c99_perror_t;
void
_DEFUN (perror, (s),
const char *s)
{
c99_perror_t arg;
CHECK_STD_INIT(_REENT);
arg.str = s;
arg.arg_errno = errno;
__send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &arg);
return;
}
#endif /* ! _REENT_ONLY */