X-Spam-Check-By: sourceware.org X-VirusChecked: Checked X-Env-Sender: N DOT Boudin AT neopost DOT com X-Msg-Ref: server-7.tower-83.messagelabs.com!1150879654!24649311!1 X-StarScan-Version: 5.5.10.7; banners=.,-,- Subject: Problem creating device files MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Date: Wed, 21 Jun 2006 10:47:34 +0200 Content-class: urn:content-classes:message Message-ID: <0F788535AE8C7D4CB24CADB2A1BA8AF41B1FDE@server25.nibv.neopost.com> From: "Nicolas Boudin" To: X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k5L8llwb015849 Hello, I get strange results when trying to create device files with this program: #include int main (void) { int major, minor; dev_t dev; major = 5; minor = 1; dev = (major << 8) | minor; mknod ("test", S_IFCHR | 0666, dev); return 0; } After running it, I get: # ls -al test crw-rw-rw- 1 NBoudin mkgroup-l-d 0, 1281 Jun 21 10:44 test However, with "mknod test2 c 5 1": crw-rw-rw- 1 NBoudin mkgroup-l-d 5, 1 Jun 21 10:44 test2 Why do I get this result? Bye, Nicolas ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/