看不懂linux钩子函数return1337?

I can't understand linux hook function return 1337?

现在我在抢文章!我得到了钩子代码。代码在这里:

int system(const char *command){
    printf("HOOK: system(\"%s\")",command);
    return 1337;
}

int fork(void){
    return 1337;
}

Now I hava a question! Why the return is 1337?

Thanks to answer my question!

这取决于您的子系统,return 代码 1337 是由其他人(如云)或您的内部代码中的某个地方处理的。 基本上这是我们为错误处理或确定失败案例而定义的。 就像调用线程可能被称为

if (1337 != system(command)) { /* error statement */ printf("..."); }

简而言之,这不是特定于 1337 的,您可以使用任何 return 值。