Possible Duplicate:
Magic numbers of the Linux reboot() system call
我在面试时被问到这个问题
When using the Linux-specific reboot() system call to reboot the system, the second argument, magic2, must be specified as one of a set of magic numbers (e.g., LINUX_REBOOT_MAGIC2). What is the significance of these numbers?
上述问题的正确答案是什么?
最佳答案
允许的 magic2 数字集的重要性在于,当以十六进制表示时,它们代表出生日期(特别是 Linus Torvalds 和他的三个 child 的出生日期)。
这确实降低了愚蠢面试问题的阈值!
关于c - 系统调用重启和魔数(Magic Number),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5386352/