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
emacs
emacs
Commits
f7d279f0
Commit
f7d279f0
authored
Aug 23, 1994
by
Richard M. Stallman
Browse files
(O_RDONLY): Defined.
(openp): Use it.
parent
8917361f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
src/lread.c
src/lread.c
+5
-1
No files found.
src/lread.c
View file @
f7d279f0
...
...
@@ -60,6 +60,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <math.h>
#endif
/* LISP_FLOAT_TYPE */
#ifndef O_RDONLY
#define O_RDONLY 0
#endif
extern
int
errno
;
Lisp_Object
Qread_char
,
Qget_file_char
,
Qstandard_input
,
Qcurrent_load_list
;
...
...
@@ -577,7 +581,7 @@ openp (path, str, suffix, storeptr, exec_only)
if
(
exec_only
)
fd
=
(
access
(
fn
,
X_OK
)
==
0
)
?
1
:
-
1
;
else
fd
=
open
(
fn
,
0
,
0
);
fd
=
open
(
fn
,
O_RDONLY
,
0
);
if
(
fd
>=
0
)
{
...
...
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