Print this page
make: unifdef SUN5_0 (defined)


  36 #include <sys/types.h>
  37 #include <sys/stat.h>
  38 #include <sys/file.h>
  39 
  40 typedef enum { rw_read, rw_write} rwt, *rwpt;
  41 
  42 extern  void    translate_with_thunk(register char *filename, int (*thunk) (char *), pathpt path_vector, pathpt vroot_vector, rwt rw);
  43 
  44 union Args {
  45         struct { int mode;} access;
  46         struct { int mode;} chmod;
  47         struct { int user; int group;} chown;
  48         struct { int mode;} creat;
  49         struct { char **argv; char **environ;} execve;
  50         struct { struct stat *buffer;} lstat;
  51         struct { int mode;} mkdir;
  52         struct { char *name; int mode;} mount;
  53         struct { int flags; int mode;} open;
  54         struct { char *buffer; int buffer_size;} readlink;
  55         struct { struct stat *buffer;} stat;
  56 #ifndef SUN5_0
  57         struct { struct statfs *buffer;} statfs;
  58 #endif
  59         struct { int length;} truncate;
  60         struct { struct timeval *time;} utimes;
  61 };
  62 
  63 extern  union Args      vroot_args;
  64 extern  int             vroot_result;
  65 
  66 #endif


  36 #include <sys/types.h>
  37 #include <sys/stat.h>
  38 #include <sys/file.h>
  39 
  40 typedef enum { rw_read, rw_write} rwt, *rwpt;
  41 
  42 extern  void    translate_with_thunk(register char *filename, int (*thunk) (char *), pathpt path_vector, pathpt vroot_vector, rwt rw);
  43 
  44 union Args {
  45         struct { int mode;} access;
  46         struct { int mode;} chmod;
  47         struct { int user; int group;} chown;
  48         struct { int mode;} creat;
  49         struct { char **argv; char **environ;} execve;
  50         struct { struct stat *buffer;} lstat;
  51         struct { int mode;} mkdir;
  52         struct { char *name; int mode;} mount;
  53         struct { int flags; int mode;} open;
  54         struct { char *buffer; int buffer_size;} readlink;
  55         struct { struct stat *buffer;} stat;



  56         struct { int length;} truncate;
  57         struct { struct timeval *time;} utimes;
  58 };
  59 
  60 extern  union Args      vroot_args;
  61 extern  int             vroot_result;
  62 
  63 #endif