Searched refs:readonly (Results 1 – 2 of 2) sorted by relevance
147 extern void open_archive (struct locarhandle *ah, bool readonly);
557 open_archive (struct locarhandle *ah, bool readonly) in open_archive() argument580 fd = open64 (archivefname, readonly ? O_RDONLY : O_RDWR); in open_archive()589 if (readonly) in open_archive()615 if (!readonly && lockf64 (fd, F_LOCK, sizeof (struct locarhead)) == -1) in open_archive()675 ah->addr = mmap64 (p, st.st_size, PROT_READ | (readonly ? 0 : PROT_WRITE), in open_archive()
Completed in 8 milliseconds