delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1998/01/28/09:13:05

Date: Wed, 28 Jan 1998 16:12:10 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Demmer AT lstm DOT ruhr-uni-bochum DOT de
cc: dj AT delorie DOT com, djgpp-workers AT delorie DOT com
Subject: Re: invent inode docs
In-Reply-To: <4B4BF00220@brain1.lstm.ruhr-uni-bochum.de>
Message-ID: <Pine.SUN.3.91.980128161042.4496C-100000@is>
MIME-Version: 1.0

On Wed, 28 Jan 1998, Tom Demmer wrote:

> > Is the above description correct for Unix?  If it is, maybe we need to
> > set st_rdev, at least to the same value as st_dev?  (I needed to say
> > "foo.st_rdev = foo.st_dev" in the `tar' sources to make it work.)
> > 
> This should be necessary only if if foo stats a special device, at
> least after the above definition. Can you confirm that?

Yes, this entire issue of st_rdev is only relevant to devices like 
/dev/tty, /dev/null and others.  That is when I saw GNU tar and cpio 
check the st_rdev field.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019