This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Reverting mknod


On 23 April 2007 14:06, Michael Ambrus wrote:

> What does the standard say should be the opposite of mknod?
> 
> Or in other words: how do I remove a file of any type?
> 
> I thought it would be unlink, but I'm not certain and the info at
> opengroup doesn't seem to support it.

  It (the documentation) seems to imply that it (unlink) does (handle special
files) to me; the only thing it (docs again) says it (unlink again) won't
accept is a directory, but it (unlink) doesn't discriminate between special
and ordinary files.  The file created by mknod may have some flag bits set,
but it's (the file) basically a hardlink/inode on a disk, just like any other.

[  This post has been edited to clarify a profusion of pronouns with uncertain
referents!  ]


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]