version 1.518.2.5, 2019/01/18 00:01:01 |
version 1.518.2.6, 2019/01/22 07:42:41 |
Line 1624 fd_open(const char *path, int open_flags |
|
Line 1624 fd_open(const char *path, int open_flags |
|
return error; |
return error; |
} |
} |
|
|
/* |
|
* Check permissions, allocate an open file structure, |
|
* and call the device open routine if any. |
|
*/ |
|
static int |
|
stub_sys_openat_10(struct pathbuf **pb) |
|
{ |
|
|
|
return 0; |
|
} |
|
|
|
MODULE_CALL_HOOK_DECL(compat_10_openat_hook, int, (struct pathbuf **)); |
|
MODULE_CALL_HOOK(compat_10_openat_hook, int, (struct pathbuf **pb), (pb), |
|
stub_sys_openat_10(pb)); |
|
|
|
static int |
static int |
do_sys_openat(lwp_t *l, int fdat, const char *path, int flags, |
do_sys_openat(lwp_t *l, int fdat, const char *path, int flags, |
int mode, int *fd) |
int mode, int *fd) |
Line 1649 do_sys_openat(lwp_t *l, int fdat, const |
|
Line 1634 do_sys_openat(lwp_t *l, int fdat, const |
|
int error; |
int error; |
|
|
if (path == NULL) { |
if (path == NULL) { |
error = compat_10_openat_hook_call(&pb); |
MODULE_CALL_HOOK(compat_10_openat_hook, (&pb), |
|
0, error); |
if (error) |
if (error) |
return error; |
return error; |
} else { |
} else { |