Home
last modified time | relevance | path

Searched refs:st_rdev (Results 1 – 25 of 58) sorted by relevance

123

/openbsd/src/lib/libc/gen/
Dttyname.c93 bkey.dev = sb.st_rdev; in ttyname_r()
127 || !S_ISCHR(dsb.st_mode) || sb->st_rdev != dsb.st_rdev) in oldttyname()
Ddevname.c58 || sb.st_rdev != dev || (sb.st_mode & S_IFMT) != type) in devname_nodb()
/openbsd/src/bin/pax/
Dcpio.c294 arcn->sb.st_rdev = (dev_t)asc_ul(hd->c_rdev, sizeof(hd->c_rdev), OCT); in cpio_rd()
389 arcn->sb.st_rdev = 0; in cpio_wr()
432 ul_asc(arcn->sb.st_rdev, hd->c_rdev, sizeof(hd->c_rdev), OCT) || in cpio_wr()
578 arcn->sb.st_rdev = TODEV(devmajor, devminor); in vcpio_rd()
677 arcn->sb.st_rdev = 0; in vcpio_wr()
741 ul_asc(MAJOR(arcn->sb.st_rdev),hd->c_rmaj,sizeof(hd->c_maj), HEX) || in vcpio_wr()
742 ul_asc(MINOR(arcn->sb.st_rdev),hd->c_rmin,sizeof(hd->c_min), HEX) || in vcpio_wr()
851 arcn->sb.st_rdev = (dev_t)(RSHRT_EXT(hd->h_rdev)); in bcpio_rd()
866 arcn->sb.st_rdev = (dev_t)(SHRT_EXT(hd->h_rdev)); in bcpio_rd()
961 arcn->sb.st_rdev = 0; in bcpio_wr()
[all …]
Dgen_subs.c121 (unsigned long)MAJOR(sbp->st_rdev), in ls_list()
122 (unsigned long)MINOR(sbp->st_rdev)); in ls_list()
Dtar.c832 arcn->sb.st_rdev = (dev_t)0; in ustar_rd()
869 arcn->sb.st_rdev = TODEV(devmajor, devminor); in ustar_rd()
1209 if (ul_oct(MAJOR(arcn->sb.st_rdev), hd->devmajor, in wr_ustar_or_pax()
1211 ul_oct(MINOR(arcn->sb.st_rdev), hd->devminor, in wr_ustar_or_pax()
Dfile_subs.c401 res = mknod(nm, file_mode, arcn->sb.st_rdev); in node_creat()
405 res = mknod(nm, file_mode, arcn->sb.st_rdev); in node_creat()
/openbsd/src/gnu/usr.sbin/mkhybrid/src/
Drock.c299 set_733((char*)Rock + ipnt, major(lstatbuf->st_rdev ));
301 set_733((char*)Rock + ipnt, minor(lstatbuf->st_rdev));
312 set_733((char*)Rock + ipnt, (lstatbuf->st_rdev >> 8));
314 set_733((char*)Rock + ipnt, lstatbuf->st_rdev & 0xff);
318 set_733((char*)Rock + ipnt, (lstatbuf->st_rdev >> 8) >> 8);
320 set_733((char*)Rock + ipnt, lstatbuf->st_rdev & 0xffff);
324 set_733((char*)Rock + ipnt, (lstatbuf->st_rdev >> 16) >> 16);
326 set_733((char*)Rock + ipnt, lstatbuf->st_rdev);
Dtree.c1549 (unsigned long) major(statbuf.st_rdev),
1550 (unsigned long) minor(statbuf.st_rdev));
1563 (unsigned long) major(statbuf.st_rdev),
1564 (unsigned long) minor(statbuf.st_rdev));
/openbsd/src/gnu/usr.bin/perl/lib/File/
Dstat.pm12 $st_rdev, $st_size,
21 $st_rdev $st_size
191 $st_dev, $st_ino, $st_mode, $st_nlink, $st_uid, $st_gid, $st_rdev,
/openbsd/src/usr.bin/find/
Dls.c69 (void)printf("%3u, %3u ", major(sb->st_rdev), in printlong()
70 minor(sb->st_rdev)); in printlong()
/openbsd/src/sbin/badsect/
Dbadsect.c102 if (stbuf.st_dev == devstat.st_rdev && in main()
119 stbuf.st_rdev, argv[1]); in main()
/openbsd/src/bin/ls/
Dls.c529 if (maxmajor < major(sp->st_rdev)) in display()
530 maxmajor = major(sp->st_rdev); in display()
531 if (maxminor < minor(sp->st_rdev)) in display()
532 maxminor = minor(sp->st_rdev); in display()
Dprint.c114 dp->s_major, major(sp->st_rdev), in printlong()
115 dp->s_minor, minor(sp->st_rdev)); in printlong()
/openbsd/src/gnu/usr.bin/binutils/include/mpw/sys/
Dstat.h16 dev_t st_rdev; member
/openbsd/src/usr.bin/file/
Dfile.c548 (long)major(inf->msg->sb.st_rdev), in try_stat()
549 (long)minor(inf->msg->sb.st_rdev)); in try_stat()
553 (long)major(inf->msg->sb.st_rdev), in try_stat()
554 (long)minor(inf->msg->sb.st_rdev)); in try_stat()
/openbsd/src/lib/libc/stdlib/
Dposix_pty.c75 name = devname(sb.st_rdev, S_IFCHR); in ptmname()
/openbsd/src/gnu/usr.bin/binutils/include/mpw/
Dstat.h20 dev_t st_rdev; member
/openbsd/src/usr.sbin/dev_mkdb/
Ddev_mkdb.c121 bkey.dev = dp->fts_statp->st_rdev; in main()
/openbsd/src/gnu/usr.bin/cvs/src/
Dfilesubr.c58 mknod (to, sb.st_mode, sb.st_rdev);
629 if (sb1.st_rdev == sb2.st_rdev)
/openbsd/src/usr.bin/tmux/
Dprocname.c117 if ((dev_t)buf[i].p_tdev != sb.st_rdev) in get_proc_name()
/openbsd/src/sys/sys/
Dstat.h52 dev_t st_rdev; /* device type */ member
/openbsd/src/sbin/fsck/
Dfsutil.c208 if (stslash.st_dev == stblock.st_rdev) in blockcheck()
/openbsd/src/sys/arch/alpha/stand/
Dinstallboot.c155 if ((minor(disksb.st_rdev) % getmaxpartitions()) != getrawpartition()) in main()
163 if ((minor(disksb.st_rdev) / getmaxpartitions()) != in main()
/openbsd/src/usr.sbin/makefs/cd9660/
Diso9660_rrip.c655 if (sizeof (fnode->inode->st.st_rdev) > 4) in cd9660node_rrip_pn()
657 (uint64_t)fnode->inode->st.st_rdev >> 32, in cd9660node_rrip_pn()
662 cd9660_bothendian_dword(fnode->inode->st.st_rdev & 0xffffffff, in cd9660node_rrip_pn()
/openbsd/src/bin/cp/
Dutils.c248 if (mknod(to.p_path, from_stat->st_mode, from_stat->st_rdev)) { in copy_special()

123