On Tue, Sep 21, 2010 at 3:52 PM, Manish Katiyar <mkatiyar@xxxxxxxxx> wrote:
Because they are special files and some of the commands/operationsOn Tue, Sep 21, 2010 at 8:06 AM, mohit verma <mohit89mlnc@xxxxxxxxx> wrote:
> hey guys,
> i have a question silly question :
>
> as we can create the simple files with open,creat and for directories there
> is mkdir system calls.
> so what is the need of mknod() to create special files and as well as "
> ordinary files" ?
> why can't we wrap the special file building code in one of open,creat or
> mkdir system calls?
>
(eg.. truncate) may not be available for them. If you look at the
implementation if is kind of a wrapper over regular create.
--
Thanks -
Manish
==================================
[$\*.^ -- I miss being one of them
==================================
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ
--
Regards,
Sri.