On Wed, 2006-06-21 at 11:11 +0200, Nicolas Boudin wrote:
> > You are making invalid assumptions. Have a look into
> > /usr/include/cygwin/types.h and /usr/include/sys/sysmacros.h
> > and see the light. After that, make a mental note:
> >
> > "Never create a device number other than by using th
> You are making invalid assumptions. Have a look into
> /usr/include/cygwin/types.h and /usr/include/sys/sysmacros.h
> and see the light. After that, make a mental note:
>
> "Never create a device number other than by using the makedev macro"
OK, thank you. :) Now that I am enlightened I wi
On Jun 21 10:47, Nicolas Boudin wrote:
>
> 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;
>
>
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;
4 matches
Mail list logo