Lines Matching refs:open
692 msg(gettext("Cannot open dump device `%s': %s\n"),
738 * we can't open it, we'll silently fall back to the old method
749 mapfd = open(block, O_RDONLY, 0);
1305 if ((fd = open("/dev/zero", O_RDWR)) < 0) {
1307 msg(gettext("Cannot open `%s': %s\n"),
1389 * Safely open a file or device.
1413 * The initial open with the hard-coded flags is ok even if we
1414 * are intending to open only for reading. If it succeeds,
1417 * truncating it with the open.
1419 if ((fd = open(filename, O_WRONLY|O_CREAT|O_TRUNC|O_EXCL|O_LARGEFILE,
1432 if ((fd = open(filename, working_mode)) < 0) {
1459 * time is updated by open(2).
1525 * need to open it. If the permissions let us
1550 * Didn't exist, but couldn't open it.
1556 * If truncating open succeeded for a read-only open,
1562 msg("open(%s): %s\n",
1574 * Safely open a file.
1583 * Safely open a device.