You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cite open man page on Linux:
" The mode argument specifies the file mode bits be applied when a
new file is created. This argument must be supplied when
O_CREAT or O_TMPFILE is specified in flags;"
For the first open: please check if you really mean to open the file like that.
For all items and linux: specify a value of 0640
Keep in mind, that other os' need other values here.
---- the correct version for linux might be -------
lib6502.c:72: int handle = open(libname, O_RDONLY | O_CREAT, 0640);
lib6502.c:224: handle = open(obj->modname, O_WRONLY | O_CREAT | O_TRUNC, 0640);
main.c:105: objfile = open(objname, O_WRONLY | O_CREAT, 0640);
The text was updated successfully, but these errors were encountered:
Linux:
object files are created with mode = 0 at my site (my umask 0077)
In unix terms, the rights for the object files are just ----------)
as6502$ grep -n O_CREAT *.c
lib6502.c:72: int handle = open(libname, O_RDONLY | O_CREAT, 255);
lib6502.c:224: handle = open(obj->modname, O_WRONLY | O_CREAT | O_TRUNC, 255);
main.c:105: objfile = open(objname, O_WRONLY | O_CREAT);
Cite open man page on Linux:
" The mode argument specifies the file mode bits be applied when a
new file is created. This argument must be supplied when
O_CREAT or O_TMPFILE is specified in flags;"
For the first open: please check if you really mean to open the file like that.
For all items and linux: specify a value of 0640
Keep in mind, that other os' need other values here.
---- the correct version for linux might be -------
lib6502.c:72: int handle = open(libname, O_RDONLY | O_CREAT, 0640);
lib6502.c:224: handle = open(obj->modname, O_WRONLY | O_CREAT | O_TRUNC, 0640);
main.c:105: objfile = open(objname, O_WRONLY | O_CREAT, 0640);
The text was updated successfully, but these errors were encountered: