Include <sys/file.h> and [USG5] <fcntl.h> to define O_* macros.
authorRoland McGrath <roland@gnu.org>
Thu, 16 Jun 1994 06:55:46 +0000 (06:55 +0000)
committerRoland McGrath <roland@gnu.org>
Thu, 16 Jun 1994 06:55:46 +0000 (06:55 +0000)
commit2d30a233cf3c6040e193079abd9a33913f067a9c
tree555bbdf32cb33aff14ccfd6ea3c341941f701601
parent4a73e687bafe15410b40709914ab62b887074c91
Include <sys/file.h> and [USG5] <fcntl.h> to define O_* macros.
(O_RDONLY, O_RDWR): Define if undefined.
[emacs] (report_error): Use report_file_error so the user can tell what the
errno code was.
(unexec): Use O_RDONLY instead of explicit 0.
(make_hdr): Don't undo A_TEXT_OFFSET adjustment #ifndef NO_REMAP, since it
was never adjusted earlier #ifndef NO_REMAP.
(adjust_lnnoptrs): Use O_RDWR instead of explicit 2.
src/unexec.c