mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-01-14 17:59:28 +08:00
bc10065533
* libc/include/stdio.h: Move fcloseall prototype within #ifndef _REENT_ONLY section. * libc/sys/linux/Makefile.am: Add new files. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/sys/stdio.h: Add ctermid prototype. * libc/sys/linux/sys/unistd.h: Add ttyname_r prototype. * libc/sys/linux/sys/types.h: Add ino64_t type. * libc/sys/linux/ctermid.c: New file. * libc/sys/linux/ttyname_r.c: Ditto. * libc/sys/linux/readdir64.c: Ditto.
17 lines
218 B
C
17 lines
218 B
C
/* 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");
|
|
}
|