URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 33 |
/* Check corner error case: specifying unimplemented resource.
|
/* Check corner error case: specifying unimplemented resource.
|
#notarget: cris*-*-elf
|
#notarget: cris*-*-elf
|
*/
|
*/
|
#include <sys/time.h>
|
#include <sys/time.h>
|
#include <sys/resource.h>
|
#include <sys/resource.h>
|
#include <unistd.h>
|
#include <unistd.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <errno.h>
|
#include <errno.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <string.h>
|
#include <string.h>
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
struct rlimit lim;
|
struct rlimit lim;
|
memset (&lim, 0, sizeof lim);
|
memset (&lim, 0, sizeof lim);
|
|
|
if (setrlimit (RLIMIT_NPROC, &lim) != -1
|
if (setrlimit (RLIMIT_NPROC, &lim) != -1
|
|| errno != EINVAL)
|
|| errno != EINVAL)
|
abort ();
|
abort ();
|
printf ("pass\n");
|
printf ("pass\n");
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.