diff options
Diffstat (limited to 'newlib/libc/sys/linux/ctermid.c')
-rw-r--r-- | newlib/libc/sys/linux/ctermid.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/newlib/libc/sys/linux/ctermid.c b/newlib/libc/sys/linux/ctermid.c new file mode 100644 index 000000000..05914ffad --- /dev/null +++ b/newlib/libc/sys/linux/ctermid.c @@ -0,0 +1,16 @@ +/* ctermid */ + +#include <stdio.h> +#include <string.h> + +static char devname[] = "/dev/tty"; + +char * +_DEFUN (ctermid, (buf), + char *buf) +{ + if (buf == NULL) + return devname; + + return strcpy (buf, "/dev/tty"); +} |