Lines Matching refs:readonly
141 int fd, exists, open_err, readonly;
144 open_err = readonly = 0;
336 * message, let alone make the file readonly. At some future time,
347 readonly = 1;
356 * Historically, the readonly edit option was set per edit buffer in
360 * So, the persistant readonly state has to be stored in the screen
362 * the edit buffer. If the persistant readonly flag is set, set the
363 * readonly edit option.
365 * Otherwise, try and figure out if a file is readonly. This is a
369 * mounted readonly (access catches this one on a few systems), or
374 * Historic vi displayed the readonly message if none of the file
380 * Historic vi set the readonly bit if no write bits were set for
388 * distinguish between readonly bits set because of file permissions
391 * might be to turn off the readonly bit if the user forces a write
398 if (readonly || F_ISSET(sp, SC_READONLY) ||
1354 * Autowrite routine. If modified, autowrite is set and the readonly bit
1374 * readonly flag). System V changed this as some point, not attempting
1375 * autowrite if the file was readonly. This feels like a bug fix to
1376 * me (e.g. the principle of least surprise is violated if readonly is
1381 "266|File readonly, modifications not auto-written");
1498 * we return LOCK_SUCCESS, believing that the file is readonly