Home
last modified time | relevance | path

Searched refs:OPENDEV_PART (Results 1 – 18 of 18) sorted by relevance

/openbsd/lib/libutil/
H A Dopendev.c74 if (dflags & OPENDEV_PART) in opendev()
87 if (dflags & OPENDEV_PART) { in opendev()
H A Dduid.c30 if (!((strlen(duid) == 16 && (dflags & OPENDEV_PART)) || in isduid()
H A Dutil.h51 #define OPENDEV_PART 0x01 /* Try to open the raw partition. */ macro
/openbsd/sbin/vnconfig/
H A Dvnconfig.c237 vd = opendev(vname, O_RDONLY, OPENDEV_PART, NULL); in getinfo()
296 if ((fd = opendev(dev, O_RDONLY, OPENDEV_PART, &rdev)) == -1) { in config()
340 if ((fd = opendev(vnd, O_RDONLY, OPENDEV_PART, &rdev)) == -1) in unconfig()
/openbsd/usr.sbin/installboot/
H A Dinstallboot.c89 if ((devfd = opendev(dev, (nowrite ? O_RDONLY : O_RDWR), OPENDEV_PART, in main()
H A Dsoftraid.c185 OPENDEV_PART, realdev)) == -1) in sr_open_chunk()
/openbsd/sbin/scan_ffs/
H A Dscan_ffs.c180 fd = opendev(argv[0], O_RDONLY, OPENDEV_PART, NULL); in main()
/openbsd/sbin/mount_vnd/
H A Dmount_vnd.c193 if ((fd = opendev(dev, O_RDONLY, OPENDEV_PART, &rdev)) == -1) { in config()
/openbsd/sys/arch/alpha/stand/
H A Dinstallboot.c149 if ((devfd = opendev(dev, O_RDONLY, OPENDEV_PART, &dev)) < 0) in main()
204 if ((devfd = opendev(dev, O_RDWR, OPENDEV_PART, &dev)) < 0) in main()
/openbsd/sys/arch/octeon/stand/rdboot/
H A Drdboot.c86 rootdev, isduid(rootdev, OPENDEV_PART) ? "." : ""); in main()
/openbsd/bin/mt/
H A Dmt.c220 if ((mtfd = _rmtopendev(tape, flags, OPENDEV_PART, &realtape)) == -1) { in main()
/openbsd/sbin/fdisk/
H A Ddisk.c53 disk.dk_fd = opendev(disk.dk_name, oflags, OPENDEV_PART, NULL); in DISK_open()
/openbsd/sbin/pdisk/
H A Dpdisk.c102 fd = opendev(*argv, oflags, OPENDEV_PART, NULL); in main()
/openbsd/usr.sbin/fdformat/
H A Dfdformat.c246 if ((fd = opendev(argv[optind], O_RDWR, OPENDEV_PART, &devname)) == -1) in main()
/openbsd/usr.bin/cdio/
H A Dcdio.c1610 fd = opendev(dev, O_RDWR, OPENDEV_PART, &realdev); in open_cd()
1612 fd = opendev(dev, O_RDONLY, OPENDEV_PART, &realdev); in open_cd()
/openbsd/sbin/disklabel/
H A Ddisklabel.c205 f = opendev(dkname, (op == READ ? O_RDONLY : O_RDWR), OPENDEV_PART, in main()
/openbsd/sbin/bioctl/
H A Dbioctl.c233 devh = opendev(devicename, O_RDWR, OPENDEV_PART, &realname); in main()
/openbsd/sbin/atactl/
H A Datactl.c394 if ((fd = opendev(argv[1], O_RDWR, OPENDEV_PART, NULL)) == -1) in main()