8 PUBLIC
int open(const char *name
, int flags
, ...)
10 PUBLIC
int open(const char *name
, int flags
)
16 va_start(argp
, flags
);
17 if (flags
& O_CREAT
) {
18 m
.m1_i1
= strlen(name
) + 1;
20 /* Since it's a vararg parameter that is smaller than
21 * an int, the mode was passed as an int.
23 m
.m1_i3
= va_arg(argp
, int);
24 m
.m1_p1
= (char *) name
;
30 return (_syscall(FS
, OPEN
, &m
));