RE: Problem creating device files

2006-06-21 Thread Sam Robb
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

RE: Problem creating device files

2006-06-21 Thread Nicolas Boudin
> 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

Re: Problem creating device files

2006-06-21 Thread Corinna Vinschen
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; > >