LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Dustin Lang <dalang@cs.ubc.ca>
To: Eugene Surovegin <ebs@ebshome.net>
Cc: linuxppc-dev@ozlabs.org, Garcia J?r?mie <GARCIAJ@3il.fr>
Subject: Re: RE : Error while opennig device file
Date: Wed, 15 Jun 2005 11:16:41 -0700 (PDT)	[thread overview]
Message-ID: <Pine.LNX.4.60.0506151114280.28342@tin.icics.ubc.ca> (raw)
In-Reply-To: <20050615180011.GB21165@gate.ebshome.net>


Also - does it work from the command line?  Do both mknod commands work? 
When you "ls -l /dev/test{1,2}" , what do you get?  What happens when you 
"cat /dev/test1" or "echo > /dev/test1" ?

Cheers,
dstn.


>> I'm sorry but this is a "copy to mail" error.
>> Here is the right code:
>>
>> ret_val = system("mknod -m 777 /dev/test1 c 122 1");
>> ret_val = system("mknod -m 777 /dev/test2 c 122 2");
>>
>> file_desc1 = open("/dev/test1", O_RDWR);
>> file_desc2 = open("/dev/test2", O_RDWR);

      reply	other threads:[~2005-06-15 19:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-15 17:47 RE : Error while opennig device file Garcia Jérémie
2005-06-15 18:00 ` Eugene Surovegin
2005-06-15 18:16   ` Dustin Lang [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.60.0506151114280.28342@tin.icics.ubc.ca \
    --to=dalang@cs.ubc.ca \
    --cc=GARCIAJ@3il.fr \
    --cc=ebs@ebshome.net \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox