diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-11-26 14:40:30 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-11-26 14:40:30 -0500 |
commit | 4ac3710629d15b0fda9db16bda3d75c7d4619e57 (patch) | |
tree | ce9c486811e6bd3481cdf274876266dbe4d3d7d0 /gcc/config/winnt | |
parent | 4bd5b0b281aa362e060e37040033f18939929229 (diff) | |
download | gcc-4ac3710629d15b0fda9db16bda3d75c7d4619e57.zip gcc-4ac3710629d15b0fda9db16bda3d75c7d4619e57.tar.gz gcc-4ac3710629d15b0fda9db16bda3d75c7d4619e57.tar.bz2 |
Reformat and add some new functions for gnat1.
From-SVN: r10603
Diffstat (limited to 'gcc/config/winnt')
-rw-r--r-- | gcc/config/winnt/oldnames.c | 43 |
1 files 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); } |