Cygwin: access: Fix X_OK behaviour for backup operators and admins
[newlib-cygwin.git] / newlib / libc / sys / h8300hms / misc.c
blob1599393919ad72685c0eb1df3e4ac74483a27a85
1 /* Misc. operating system stubs. */
3 #include <_ansi.h>
4 #include <sys/types.h>
5 #include <sys/stat.h>
7 /* _raise(), getpid(), and kill() are required by abort().
8 getpid/kill are prefixed with '_' because of MISSING_SYSCALL_NAMES. */
10 int _raise (int sig)
12 return 0;
15 int _getpid (void)
17 return 0;
20 int _kill (int pid,
21 int sig)
23 if (pid == 0)
25 /* Narrow SIG down to a short, in case we're compiled with -mint32. */
26 short sig2 = sig;
27 /* This causes the simulator to indicate abort() was called.
28 The format of r0 is defined by devo/include/wait.h. */
29 asm ("mov.w %0,r0\n\tsleep" : : "r" (sig2) : "r0");
31 return 0;