#ifndef _ARGS_H_
#define _ARGS_H_
#include <sys/syscall.h>
#include <errno.h>
#include <spawn.h>
#include <sys/time.h>
#include <sys/param.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/file.h>
typedef enum { rw_read, rw_write} rwt, *rwpt;
extern void translate_with_thunk(char *, int (*) (char *), pathpt, pathpt,
rwt);
union Args {
struct {
int mode;
} access;
struct {
int mode;
} chmod;
struct {
int user; int group;
} chown;
struct {
int mode;
} creat;
struct {
struct stat *buffer;
} lstat;
struct {
int mode;
} mkdir;
struct {
char *name; int mode;
} mount;
struct {
int flags; int mode;
} open;
struct {
char *buffer; int buffer_size;
} readlink;
struct {
char **argv; char **environ;
posix_spawnattr_t *attr; pid_t pid;
} spawn;
struct {
struct stat *buffer;
} stat;
struct {
int length;
} truncate;
struct {
struct timeval *time;
} utimes;
};
extern union Args vroot_args;
extern int vroot_result;
#endif