OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [newlib-1.17.0/] [newlib/] [libc/] [machine/] [spu/] [perror.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 148 jeremybenn
#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
_DEFUN (perror, (s),
18
        _CONST char *s)
19
 
20
{
21
  c99_perror_t arg;
22
 
23
  CHECK_STD_INIT(_REENT);
24
 
25
  arg.str = s;
26
  arg.arg_errno = errno;
27
  __send_to_ppe(SPE_C99_SIGNALCODE, SPE_C99_PERROR, &arg);
28
 
29
  return;
30
}
31
#endif /* ! _REENT_ONLY */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.