2021-12-10 07:25:00 +01:00
|
|
|
#include <fcntl.h>
|
2021-12-13 18:38:47 +01:00
|
|
|
#include <stdarg.h>
|
|
|
|
#include "fugue/fugue.h"
|
2021-12-10 07:25:00 +01:00
|
|
|
|
|
|
|
int open(char const *path, int flags, ...)
|
|
|
|
{
|
2021-12-13 18:38:47 +01:00
|
|
|
va_list args;
|
|
|
|
va_start(args, flags);
|
|
|
|
mode_t mode = va_arg(args, int);
|
|
|
|
va_end(args);
|
2021-12-10 07:25:00 +01:00
|
|
|
|
2021-12-13 18:38:47 +01:00
|
|
|
/* Standard open() is the Fugue filesystem only */
|
|
|
|
return fugue_open(path, flags, mode);
|
2021-12-10 07:25:00 +01:00
|
|
|
}
|