1 /*
2 * Copyright (C) 2006 KPIT Cummins
3 * Copyright (C) 2009 Conny Marco Menebröcker
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms is permitted
7 * provided that the above copyright notice and following paragraph are
8 * duplicated in all such forms.
9 *
10 * This file is distributed WITHOUT ANY WARRANTY; without even the implied
11 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
12 */
13 #include <sys/types.h>
14 #include <sys/stat.h>
15 #include <sys/syscall.h>
16 #include <_ansi.h>
17 #include <errno.h>
18 #include <fcntl.h>
19 #include <stdarg.h>
20 #include <reent.h>
21
22
23
_exit(int n)24 void _exit(int n)
25 {
26 asm volatile("trap #0");
27 }
28
isatty(file)29 int isatty(file)
30 int file;
31 {
32 return 1;
33 }
34