/openbsd/lib/libutil/ |
H A D | opendev.c | 74 if (dflags & OPENDEV_PART) in opendev() 87 if (dflags & OPENDEV_PART) { in opendev()
|
H A D | duid.c | 30 if (!((strlen(duid) == 16 && (dflags & OPENDEV_PART)) || in isduid()
|
H A D | util.h | 51 #define OPENDEV_PART 0x01 /* Try to open the raw partition. */ macro
|
/openbsd/sbin/vnconfig/ |
H A D | vnconfig.c | 237 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 D | installboot.c | 89 if ((devfd = opendev(dev, (nowrite ? O_RDONLY : O_RDWR), OPENDEV_PART, in main()
|
H A D | softraid.c | 185 OPENDEV_PART, realdev)) == -1) in sr_open_chunk()
|
/openbsd/sbin/scan_ffs/ |
H A D | scan_ffs.c | 180 fd = opendev(argv[0], O_RDONLY, OPENDEV_PART, NULL); in main()
|
/openbsd/sbin/mount_vnd/ |
H A D | mount_vnd.c | 193 if ((fd = opendev(dev, O_RDONLY, OPENDEV_PART, &rdev)) == -1) { in config()
|
/openbsd/sys/arch/alpha/stand/ |
H A D | installboot.c | 149 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 D | rdboot.c | 86 rootdev, isduid(rootdev, OPENDEV_PART) ? "." : ""); in main()
|
/openbsd/bin/mt/ |
H A D | mt.c | 220 if ((mtfd = _rmtopendev(tape, flags, OPENDEV_PART, &realtape)) == -1) { in main()
|
/openbsd/sbin/fdisk/ |
H A D | disk.c | 53 disk.dk_fd = opendev(disk.dk_name, oflags, OPENDEV_PART, NULL); in DISK_open()
|
/openbsd/sbin/pdisk/ |
H A D | pdisk.c | 102 fd = opendev(*argv, oflags, OPENDEV_PART, NULL); in main()
|
/openbsd/usr.sbin/fdformat/ |
H A D | fdformat.c | 246 if ((fd = opendev(argv[optind], O_RDWR, OPENDEV_PART, &devname)) == -1) in main()
|
/openbsd/usr.bin/cdio/ |
H A D | cdio.c | 1610 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 D | disklabel.c | 205 f = opendev(dkname, (op == READ ? O_RDONLY : O_RDWR), OPENDEV_PART, in main()
|
/openbsd/sbin/bioctl/ |
H A D | bioctl.c | 233 devh = opendev(devicename, O_RDWR, OPENDEV_PART, &realname); in main()
|
/openbsd/sbin/atactl/ |
H A D | atactl.c | 394 if ((fd = opendev(argv[1], O_RDWR, OPENDEV_PART, NULL)) == -1) in main()
|