aboutsummaryrefslogtreecommitdiffstats
path: root/posix/gawkmisc.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/gawkmisc.c')
-rw-r--r--posix/gawkmisc.c25
1 files changed, 3 insertions, 22 deletions
diff --git a/posix/gawkmisc.c b/posix/gawkmisc.c
index d422bd0f..ecf5aff9 100644
--- a/posix/gawkmisc.c
+++ b/posix/gawkmisc.c
@@ -1,5 +1,5 @@
/* gawkmisc.c --- miscellaneous gawk routines that are OS specific.
-
+
Copyright (C) 1986, 1988, 1989, 1991 - 1998, 2001 - 2004, 2011
the Free Software Foundation, Inc.
@@ -40,7 +40,7 @@ char *
gawk_name(const char *filespec)
{
char *p;
-
+
/* "path/name" -> "name" */
p = strrchr(filespec, '/');
return (p == NULL ? (char *) filespec : p + 1);
@@ -272,7 +272,7 @@ os_isatty(int fd)
{
return isatty(fd);
}
-
+
/* files_are_same --- return true if files are identical */
int
@@ -289,22 +289,3 @@ void
init_sockets(void)
{
}
-
-#ifdef __CYGWIN__
-void
-cygwin_premain0(int argc, char **argv, struct per_process *myself)
-{
- static struct __cygwin_perfile pf[] = {
- { "", O_RDONLY | O_TEXT },
- /*{ "", O_WRONLY | O_BINARY },*/
- { NULL, 0 }
- };
- cygwin_internal(CW_PERFILE, pf);
-}
-
-void
-cygwin_premain2(int argc, char **argv, struct per_process *myself)
-{
- setmode(fileno (stdin), O_TEXT);
-}
-#endif