find(1) function copying on HP-UX

Scott Blachowicz scott at grlab.UUCP
Thu May 11 06:56:24 AEST 1989


I'm working with the rh program posted to the net recently (it is a find(1)
"replacement" that deals with C-style expressions). It doesn't handle
some of the stuff that find(1) does on our HP9000/300 Series system, so
I'm wondering how find does it or how I could do it...

 1) find has a -mountstop(or something like that)==>it recognizes mount
    points. It would be nice to able to tell my program to not cross
    mount points without having to tell it to explicitly "prune" all of
    the mount point directories.
 2) find recognizes file system types.
 3) HP-UX has "Context Dependent Files"(CDFs) that are really hidden
    directories containing the file that is really referred to. The file
    system decides which file to get based on the "context" of the
    requesting CPU. This allows the discless workstations to share the
    same file system without duplicating lots of stuff. Physically it
    looks like this:
      /etc:
      Hrwsr-xr-x   2 root     other       1024 May  2 14:27 inittab+

      /etc/inittab+:
      -r--r--r--   1 root     other       1163 May  2 14:26 server_node
      -r--r--r--   1 root     other        735 May  4 12:07 discless_node1
      -r--r--r--   1 root     other        735 May  4 12:07 discless_node2
    
    At any rate, the readdir routines read the contents of /etc as
    including the regular file "inittab" instead of the hidden
    directory "inittab+", but find(1) is able to display the hidden
    directories with a "-hidden" switch or "-type H". I want to do this,
    too.

Thanx for your help,
Scott Blachowicz
USPS:  Graphicus                UUCP:    ...!hpubvwa!grlab!scott
       150 Lake Str S, #206     VoicePh: 206/828-4691
       Kirkland, WA 98033       FAX:     206/828-4236



More information about the Comp.unix.wizards mailing list