Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
5647cfc9
Commit
5647cfc9
authored
Feb 17, 2003
by
deuce
Browse files
Hurd defines O_RDWR as (O_RDONLY|O_WRONLY) *sigh*
parent
f89cb9e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/sbbs3/nopen.c
src/sbbs3/nopen.c
+3
-3
No files found.
src/sbbs3/nopen.c
View file @
5647cfc9
...
...
@@ -77,17 +77,17 @@ FILE* fnopen(int *fd, char *str, int access)
*
fd
=
file
;
if
(
access
&
O_APPEND
)
{
if
(
access
&
O_RDWR
)
if
(
access
&
O_RDWR
==
O_RDWR
)
strcpy
(
mode
,
"a+"
);
else
strcpy
(
mode
,
"a"
);
}
else
if
(
access
&
(
O_TRUNC
|
O_WRONLY
))
{
if
(
access
&
O_RDWR
)
if
(
access
&
O_RDWR
==
O_RDWR
)
strcpy
(
mode
,
"w+"
);
else
strcpy
(
mode
,
"w"
);
}
else
{
if
(
access
&
O_RDWR
)
if
(
access
&
O_RDWR
==
O_RDWR
)
strcpy
(
mode
,
"r+"
);
else
strcpy
(
mode
,
"r"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment