delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2005/09/29/12:01:13

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: "arizvi" <ahmadwaris AT hotmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Can we use block devices as named files using the 'open' call?
Date: 29 Sep 2005 08:59:54 -0700
Organization: http://groups.google.com
Lines: 10
Message-ID: <1128009594.407687.238280@g14g2000cwa.googlegroups.com>
NNTP-Posting-Host: 66.32.136.54
Mime-Version: 1.0
X-Trace: posting.google.com 1128009599 32243 127.0.0.1 (29 Sep 2005 15:59:59 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Thu, 29 Sep 2005 15:59:59 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; .NET CLR 1.0.3705),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: g14g2000cwa.googlegroups.com; posting-host=66.32.136.54;
posting-account=Se-Idg0AAAC00LEpjdiQS7ZeyWGDYpCA
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

Can we use the open call (below) to open block devices such as hard
drives, as in Unix/Linux where 'file' can be "/dev/hdc"?

int open(const char *file, int mode /*, int permissions */);

Thanks,
Ahmad

- Raw text -


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