From 4ac3710629d15b0fda9db16bda3d75c7d4619e57 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Sun, 26 Nov 1995 14:40:30 -0500 Subject: [PATCH] Reformat and add some new functions for gnat1. From-SVN: r10603 --- gcc/config/winnt/oldnames.c | 43 +++++++++++++++++++++++++++++++++---------- 1 file changed, 33 insertions(+), 10 deletions(-) diff --git a/gcc/config/winnt/oldnames.c b/gcc/config/winnt/oldnames.c index ca0d9fc..b7a1779 100644 --- a/gcc/config/winnt/oldnames.c +++ b/gcc/config/winnt/oldnames.c @@ -1,24 +1,47 @@ -int open (const char *filename, int oflag, int pmode) +int +access (const char *path, int mode) { - return _open (filename, oflag, pmode); -} + return _access (path, mode); +} -int read (int handle, void *buffer, unsigned int count) +int +chmod (const char *filename, int pmode) { - return _read (handle, buffer, count); + return _chmod (filename, pmode); } -int close (int handle) +int +close (int handle) { return _close (handle); } -int access (const char *path, int mode) +char * +mktemp (char *template) { - return _access (path, mode); + return (char *) _mktemp (template); } -char *mktemp (char *template) +int +open (const char *filename, int oflag, int pmode) { - return (char *) _mktemp (template); + return _open (filename, oflag, pmode); +} + +int +read (int handle, void *buffer, unsigned int count) +{ + return _read (handle, buffer, count); +} + +int +unlink (const char *path) +{ + return _unlink (path); +} + +int +write (int handle, void *buffer, unsigned int count) +{ + return _write (handle, buffer, count); } -- 2.7.4