Lines Matching defs:readonly
123 int fd, exists, open_err, readonly;
126 open_err = readonly = 0;
337 * message, let alone make the file readonly. At some future time,
347 readonly = 1;
358 * Historically, the readonly edit option was set per edit buffer in
362 * So, the persistent readonly state has to be stored in the screen
364 * the edit buffer. If the persistent readonly flag is set, set the
365 * readonly edit option.
367 * Otherwise, try and figure out if a file is readonly. This is a
371 * mounted readonly (access catches this one on a few systems), or
376 * Historic vi displayed the readonly message if none of the file
382 * Historic vi set the readonly bit if no write bits were set for
390 * distinguish between readonly bits set because of file permissions
393 * might be to turn off the readonly bit if the user forces a write
400 if (readonly || F_ISSET(sp, SC_READONLY) ||
1402 * Autowrite routine. If modified, autowrite is set and the readonly bit
1420 * readonly flag). System V changed this as some point, not attempting
1421 * autowrite if the file was readonly. This feels like a bug fix to
1422 * me (e.g. the principle of least surprise is violated if readonly is
1427 "266|File readonly, modifications not auto-written");