Lines Matching refs:readonly
134 int fd, exists, open_err, readonly;
137 open_err = readonly = 0;
332 * message, let alone make the file readonly. At some future time,
342 readonly = 1;
351 * Historically, the readonly edit option was set per edit buffer in
355 * So, the persistant readonly state has to be stored in the screen
357 * the edit buffer. If the persistant readonly flag is set, set the
358 * readonly edit option.
360 * Otherwise, try and figure out if a file is readonly. This is a
364 * mounted readonly (access catches this one on a few systems), or
369 * Historic vi displayed the readonly message if none of the file
375 * Historic vi set the readonly bit if no write bits were set for
383 * distinguish between readonly bits set because of file permissions
386 * might be to turn off the readonly bit if the user forces a write
393 if (readonly || F_ISSET(sp, SC_READONLY) ||
1410 * Autowrite routine. If modified, autowrite is set and the readonly bit
1430 * readonly flag). System V changed this as some point, not attempting
1431 * autowrite if the file was readonly. This feels like a bug fix to
1432 * me (e.g. the principle of least surprise is violated if readonly is
1437 "266|File readonly, modifications not auto-written");