aboutsummaryrefslogtreecommitdiffstats
path: root/posix
diff options
context:
space:
mode:
Diffstat (limited to 'posix')
-rw-r--r--posix/ChangeLog9
-rw-r--r--posix/gawkmisc.c25
2 files changed, 12 insertions, 22 deletions
diff --git a/posix/ChangeLog b/posix/ChangeLog
index c5ce0340..ec37e1fb 100644
--- a/posix/ChangeLog
+++ b/posix/ChangeLog
@@ -1,3 +1,12 @@
+2017-02-20 Corinna Vinschen <vinschen@redhat.com>
+
+ * gawkmisc.c (cygwin_premain0, cygwin_premain2): Remove.
+ No longer needed.
+
+2016-10-23 Arnold D. Robbins <arnold@skeeve.com>
+
+ * General: Remove trailing whitespace from all relevant files.
+
2016-08-25 Arnold D. Robbins <arnold@skeeve.com>
* 4.1.4: Release tar ball made.
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