The time now is 08/21/08 - 17:20
Log in: Username: Password:
Search forums for:
  
Calculator Running Log Uploads Smilies Calendar
FAQ Search    Articles Register Log in

windows equivalent of /dev/null


www.runningforums.com Forum Index -> Riff-Raff Hang Out

Post new topic   Reply to topic
wanttorun100
Member
Reply with quote
Joined: 14 Feb 2005
Posts: 4946
Location: Just to the right of Atilla the Hun!
| Back to top
PostPosted: 09/02/05 - 10:03    Post subject: windows equivalent of /dev/null
anyone know of one?
MW
Freak du Jour
Reply with quote
Joined: 22 Dec 2004
Posts: 981
| Back to top
PostPosted: 09/02/05 - 10:05    Post subject:
what?

what are you trying to do?
wanttorun100
Member
Reply with quote
Joined: 14 Feb 2005
Posts: 4946
Location: Just to the right of Atilla the Hun!
| Back to top
PostPosted: 09/02/05 - 10:09    Post subject:
I need an empty file to read - IT geek thing
purple hayes
Frightened Inmate #2
Reply with quote
Joined: 14 May 2002
Posts: 14462
Location: ON YOUR LEFT!
| Back to top
PostPosted: 09/02/05 - 10:11    Post subject:
Take that trashy UNIX talk somewhere else mister.

Last edited by purple hayes on 09/02/05 - 10:17; edited 1 time in total
wanttorun100
Member
Reply with quote
Joined: 14 Feb 2005
Posts: 4946
Location: Just to the right of Atilla the Hun!
| Back to top
PostPosted: 09/02/05 - 10:13    Post subject:
purple hayes wrote:
Take that trasy UNIX talk somewhere else mister.


unix is user friendly - it's just picky about who its friend are

cdnhollywood
Member
Reply with quote
Joined: 05 Oct 2004
Posts: 1538
Location: Ottawa, Canada
| Back to top
PostPosted: 09/02/05 - 10:40    Post subject:
Unixphobes.....don't know what's good for them. When's the last time a unix or Linux box gave you the blue screen of death?

As for the /dev/null equivalent, I can't say I know of one. But if you're trying a read from Windows, just use an empty file as the equivalent. The man page for null says that's what it always does.
Code:
DESCRIPTION
       Data written on a null or zero special file is discarded.

       Reads  from  the  null  special file always return end of file, whereas
       reads from zero always return \0 characters.

       null and zero are typically created by:

              mknod -m 666 /dev/null c 1 3
              mknod -m 666 /dev/zero c 1 5
              chown root:mem /dev/null /dev/zero

Can you write code to create this file with the mknod in C?
Display posts from previous:   
Post new topic   Reply to topic All times are GMT - 4 Hours

www.runningforums.com Forum Index -> Riff-Raff Hang Out

Page 1 of 1

Related topics:
AAARRRGGHHH! too many windows!
The guy who washes our windows
are those just dummy windows?
Installing Windows 2.0
Windows update froze my computer! Help.....
windows media player is confused
my new Windows wallpaper is making me hot
Windows Safe Mode
Windows Question
Windows NT help needed
Is this bad? "windows delayed write failed"
Happy Birthday Windows !
Looking through the windows...
Windows DJ