return __openat(AT_FDCWD, pathname, flags, mode);
}
-extern "C" int __open_2(const char* pathname, int flags) {
+int __open_2(const char* pathname, int flags) {
if (__predict_false(flags & O_CREAT)) {
__fortify_chk_fail("open(O_CREAT): called without specifying a mode", 0);
}
return __openat(fd, pathname, flags, mode);
}
-extern "C" int __openat_2(int fd, const char* pathname, int flags) {
+int __openat_2(int fd, const char* pathname, int flags) {
if (flags & O_CREAT) {
__fortify_chk_fail("openat(O_CREAT): called without specifying a mode", 0);
}