10 __weak_alias(open
, _open
)
13 int open(const char *name
, int flags
, ...)
18 va_start(argp
, flags
);
19 if (flags
& O_CREAT
) {
20 m
.m1_i1
= strlen(name
) + 1;
22 /* Since it's a vararg parameter that is smaller than
23 * an int, the mode was passed as an int.
25 m
.m1_i3
= va_arg(argp
, int);
26 m
.m1_p1
= (char *) __UNCONST(name
);
32 return (_syscall(VFS_PROC_NR
, OPEN
, &m
));