Welcome to mirror list, hosted at ThFree Co, Russian Federation.

perror.c « spu « machine « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 028f44a371470ef23bcd0d708cf42a9c034df2dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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 */