URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 834 |
Rev 842 |
/* This file is used to test the 'catch syscall' feature on GDB.
|
/* This file is used to test the 'catch syscall' feature on GDB.
|
|
|
Please, if you are going to edit this file DO NOT change the syscalls
|
Please, if you are going to edit this file DO NOT change the syscalls
|
being called (nor the order of them). If you really must do this, then
|
being called (nor the order of them). If you really must do this, then
|
take a look at catch-syscall.exp and modify there too.
|
take a look at catch-syscall.exp and modify there too.
|
|
|
Written by Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
|
Written by Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
|
September, 2008 */
|
September, 2008 */
|
|
|
#include <unistd.h>
|
#include <unistd.h>
|
#include <fcntl.h>
|
#include <fcntl.h>
|
#include <sys/stat.h>
|
#include <sys/stat.h>
|
|
|
int
|
int
|
main (void)
|
main (void)
|
{
|
{
|
/* A close() with a wrong argument. We are only
|
/* A close() with a wrong argument. We are only
|
interested in the syscall. */
|
interested in the syscall. */
|
close (-1);
|
close (-1);
|
|
|
chroot (".");
|
chroot (".");
|
|
|
/* The last syscall. Do not change this. */
|
/* The last syscall. Do not change this. */
|
_exit (0);
|
_exit (0);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.