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

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc1/] [newlib/] [libc/] [machine/] [spu/] [perror.c] - Diff between revs 207 and 345

Only display areas with differences | Details | Blame | View Log

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

powered by: WebSVN 2.1.0

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