Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Apr 1995 15:00:07 -0700
From:      Julian Elischer <julian>
To:        CVS-commiters, cvs-sys
Subject:   cvs commit: src/sys/miscfs/devfs devfs_vnops.c
Message-ID:  <199504202200.PAA11633@freefall.cdrom.com>

next in thread | raw e-mail | index | archive | help
julian      95/04/20 15:00:06

  Modified:    sys/miscfs/devfs  devfs_vnops.c
  Log:
  Submitted by: phk@freebsd.org
  Reviewed by:	Julian
  fixes the 'find' anomaly mentionned in the README
  (hmm I guess I should fix that too..)
  
  diff -r1.2 devfs_vnops.c
  905a906
  >                       dirent.d_type = DT_DIR;
  914a916
  >                       dirent.d_type = DT_DIR;
  920a923,941
  >                       switch(name_node->dnp->type) {
  >                       case DEV_BDEV:
  >                               dirent.d_type = DT_BLK;
  >                               break;
  >                       case DEV_CDEV:
  >                               dirent.d_type = DT_CHR;
  >                               break;
  >                       case DEV_DDEV:
  >                               dirent.d_type = DT_SOCK; /*XXX*/
  >                               break;
  >                       case DEV_DIR:
  >                               dirent.d_type = DT_DIR;
  >                               break;
  >                       case DEV_SLNK:
  >                               dirent.d_type = DT_LNK;
  >                               break;
  >                       default:
  >                               dirent.d_type = DT_UNKNOWN;
  >                       }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199504202200.PAA11633>