URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 24 |
Rev 157 |
/* Check that we get the expected message for unsupported fcntl calls.
|
/* Check that we get the expected message for unsupported fcntl calls.
|
#notarget: cris*-*-elf
|
#notarget: cris*-*-elf
|
#xerror:
|
#xerror:
|
#output: Unimplemented fcntl*
|
#output: Unimplemented fcntl*
|
#output: program stopped with signal 4.\n
|
#output: program stopped with signal 4.\n
|
*/
|
*/
|
#include <fcntl.h>
|
#include <fcntl.h>
|
#include <stdio.h>
|
#include <stdio.h>
|
#include <stdlib.h>
|
#include <stdlib.h>
|
#include <errno.h>
|
#include <errno.h>
|
|
|
int main (void)
|
int main (void)
|
{
|
{
|
int err = fcntl (1, 42);
|
int err = fcntl (1, 42);
|
if (err == -1 && errno == ENOSYS)
|
if (err == -1 && errno == ENOSYS)
|
printf ("ENOSYS\n");
|
printf ("ENOSYS\n");
|
printf ("xyzzy\n");
|
printf ("xyzzy\n");
|
exit (0);
|
exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.