summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/mmixware/open.c
diff options
context:
space:
mode:
authorHans-Peter Nilsson <hp@axis.com>2001-11-13 02:49:12 +0000
committerHans-Peter Nilsson <hp@axis.com>2001-11-13 02:49:12 +0000
commit4cede8c4ce75127a528ab2dfb33fa5bf925a2d05 (patch)
treeb97549d3e0575500385db31e6e32fd279786b956 /newlib/libc/sys/mmixware/open.c
parentf513298e1801560b0b2af19be879356874d60aa7 (diff)
downloadcygnal-4cede8c4ce75127a528ab2dfb33fa5bf925a2d05.tar.gz
cygnal-4cede8c4ce75127a528ab2dfb33fa5bf925a2d05.tar.bz2
cygnal-4cede8c4ce75127a528ab2dfb33fa5bf925a2d05.zip
* libc/sys/mmixware/*: Correct spacing in all source files.
* libc/sys/mmixware/syscall.h: Move misplaced file... * libc/sys/mmixware/sys/syscall.h: ...here.
Diffstat (limited to 'newlib/libc/sys/mmixware/open.c')
-rw-r--r--newlib/libc/sys/mmixware/open.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/newlib/libc/sys/mmixware/open.c b/newlib/libc/sys/mmixware/open.c
index ec0d222d5..6a6475d4e 100644
--- a/newlib/libc/sys/mmixware/open.c
+++ b/newlib/libc/sys/mmixware/open.c
@@ -1,7 +1,6 @@
/* open for MMIXware.
Copyright (C) 2001 Hans-Peter Nilsson.
-
Permission to use, copy, modify, and distribute this software is freely
granted, provided that this notice is preserved with no changes.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
@@ -40,13 +39,13 @@ _open (const char *path,
for (fileno = 0;
fileno < (sizeof (_MMIX_allocated_filehandle) /
- sizeof (_MMIX_allocated_filehandle[0]));
+ sizeof (_MMIX_allocated_filehandle[0]));
fileno++)
if (_MMIX_allocated_filehandle[fileno] == 0)
break;
if (fileno == (sizeof (_MMIX_allocated_filehandle) /
- sizeof (_MMIX_allocated_filehandle[0])))
+ sizeof (_MMIX_allocated_filehandle[0])))
{
errno = EMFILE;
return -1;
@@ -74,7 +73,7 @@ _open (const char *path,
fffile = 1;
}
else if ((flags & (O_WRONLY | O_CREAT)) == (O_WRONLY | O_CREAT)
- || (flags & (O_WRONLY | O_TRUNC)) == (O_WRONLY | O_TRUNC))
+ || (flags & (O_WRONLY | O_TRUNC)) == (O_WRONLY | O_TRUNC))
mode = BinaryWrite;
else if ((flags & (O_RDWR | O_CREAT)) == (O_RDWR | O_CREAT))
mode = BinaryReadWrite;
@@ -90,7 +89,7 @@ _open (const char *path,
if (ret < 0)
{
/* It's totally unknown what the error was. We'll just take our
- chances and assume ENOENT. */
+ chances and assume ENOENT. */
errno = ENOENT;
return -1;
}