Re: Out of openat flag space

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I think there is a bug in

+#define O_BENEATH 080000000

In c, when a number starts with 0, it is an octal number not an hexa
(0x number). Octal numbers cannot have an 8!

ricardo@neopili:/tmp$ cat  kk.c
int main(int argc, char **argv){
return 008;
}
ricardo@neopili:/tmp$ gcc kk.c
kk.c: In function ‘main’:
kk.c:2:9: error: invalid digit "8" in octal constant
  return 008;
         ^
-- 
Ricardo Ribalda

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies





[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux