This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
RE: Reverting mknod
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Michael Ambrus'" <ambrmi09 at gmail dot com>, <newlib at sourceware dot org>
- Date: Mon, 23 Apr 2007 14:15:51 +0100
- Subject: RE: Reverting mknod
- References: <81c474d20704230604q5a6c79fby749c4b6c2e44c8c3@mail.gmail.com> <81c474d20704230606h48339155jf4e972decc0b75cc@mail.gmail.com>
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....