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] - Rev 822

Go to most recent revision | Compare with Previous | Blame | View Log

#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 */
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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