Re: Wrong define for dev_t
Felix von Leitner <[email protected]>
| Newsgroups | gmane.linux.lib.dietlibc |
|---|---|
| Message-ID | <[email protected]> |
> I had a bug here where sda16 was created as 3:0 instead of 259:0 > I found that this is because on x86 dev_t is wrong, it is uint16_t > instead of uint32_t The dev_t declaration comes from the kernel and is correct. Also, on my system: # mknod foo b 2 259; ls -l foo brw-r--r-- 1 root root 2, 259 May 21 03:00 foo # file =mknod =ls /opt/diet/bin/mknod: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped /opt/diet/bin/ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, stripped # Felix