#ifndef	_fs_user_
#define	_fs_user_

/* Module fs */

#include <mach/kern_return.h>
#include <mach/port.h>
#include <mach/message.h>

#include <mach/std_types.h>
#include <mach/mach_types.h>
#include <device/device_types.h>
#include <device/net_status.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/resource.h>
#include <sys/utsname.h>
#include <hurd/hurd_types.h>
#include <fcntl.h>

/* Routine file_exec */
#define MIG_RPC_HAVE___FILE_EXEC
#define MIG_RPC_REQUEST_ID___FILE_EXEC 20000
#define MIG_RPC_REPLY_ID___FILE_EXEC 20100
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_exec
(
	file_t exec_file,
	mach_port_t exec_task,
	int flags,
	const_data_t argv,
	mach_msg_type_number_t argvCnt,
	const_data_t envp,
	mach_msg_type_number_t envpCnt,
	const_portarray_t fdarray,
	mach_msg_type_name_t fdarrayPoly,
	mach_msg_type_number_t fdarrayCnt,
	const_portarray_t portarray,
	mach_msg_type_name_t portarrayPoly,
	mach_msg_type_number_t portarrayCnt,
	const_intarray_t intarray,
	mach_msg_type_number_t intarrayCnt,
	const_mach_port_name_array_t deallocnames,
	mach_msg_type_number_t deallocnamesCnt,
	const_mach_port_name_array_t destroynames,
	mach_msg_type_number_t destroynamesCnt
);

/* Routine file_chown */
#define MIG_RPC_HAVE___FILE_CHOWN
#define MIG_RPC_REQUEST_ID___FILE_CHOWN 20001
#define MIG_RPC_REPLY_ID___FILE_CHOWN 20101
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_chown
(
	file_t chown_file,
	uid_t new_owner,
	gid_t new_group
);

/* Routine file_chauthor */
#define MIG_RPC_HAVE___FILE_CHAUTHOR
#define MIG_RPC_REQUEST_ID___FILE_CHAUTHOR 20002
#define MIG_RPC_REPLY_ID___FILE_CHAUTHOR 20102
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_chauthor
(
	file_t chauth_file,
	uid_t new_author
);

/* Routine file_chmod */
#define MIG_RPC_HAVE___FILE_CHMOD
#define MIG_RPC_REQUEST_ID___FILE_CHMOD 20003
#define MIG_RPC_REPLY_ID___FILE_CHMOD 20103
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_chmod
(
	file_t chmod_file,
	mode_t new_mode
);

/* Routine file_chflags */
#define MIG_RPC_HAVE___FILE_CHFLAGS
#define MIG_RPC_REQUEST_ID___FILE_CHFLAGS 20004
#define MIG_RPC_REPLY_ID___FILE_CHFLAGS 20104
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_chflags
(
	file_t chflags_file,
	int new_flags
);

/* Routine file_utimes */
#define MIG_RPC_HAVE___FILE_UTIMES
#define MIG_RPC_REQUEST_ID___FILE_UTIMES 20005
#define MIG_RPC_REPLY_ID___FILE_UTIMES 20105
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_utimes
(
	file_t utimes_file,
	time_value_t new_atime,
	time_value_t new_mtime
);

/* Routine file_set_size */
#define MIG_RPC_HAVE___FILE_SET_SIZE
#define MIG_RPC_REQUEST_ID___FILE_SET_SIZE 20006
#define MIG_RPC_REPLY_ID___FILE_SET_SIZE 20106
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_set_size
(
	file_t trunc_file,
	__loff_t new_size
);

/* Routine file_lock */
#define MIG_RPC_HAVE___FILE_LOCK
#define MIG_RPC_REQUEST_ID___FILE_LOCK 20007
#define MIG_RPC_REPLY_ID___FILE_LOCK 20107
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_lock
(
	file_t lock_file,
	int flags
);

/* Routine file_lock_stat */
#define MIG_RPC_HAVE___FILE_LOCK_STAT
#define MIG_RPC_REQUEST_ID___FILE_LOCK_STAT 20008
#define MIG_RPC_REPLY_ID___FILE_LOCK_STAT 20108
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_lock_stat
(
	file_t lock_file,
	int *mystatus,
	int *otherstatus
);

/* Routine file_check_access */
#define MIG_RPC_HAVE___FILE_CHECK_ACCESS
#define MIG_RPC_REQUEST_ID___FILE_CHECK_ACCESS 20009
#define MIG_RPC_REPLY_ID___FILE_CHECK_ACCESS 20109
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_check_access
(
	file_t file,
	int *allowed
);

/* Routine file_notice_changes */
#define MIG_RPC_HAVE___FILE_NOTICE_CHANGES
#define MIG_RPC_REQUEST_ID___FILE_NOTICE_CHANGES 20010
#define MIG_RPC_REPLY_ID___FILE_NOTICE_CHANGES 20110
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_notice_changes
(
	file_t file,
	mach_port_t port,
	mach_msg_type_name_t portPoly
);

/* Routine file_getcontrol */
#define MIG_RPC_HAVE___FILE_GETCONTROL
#define MIG_RPC_REQUEST_ID___FILE_GETCONTROL 20011
#define MIG_RPC_REPLY_ID___FILE_GETCONTROL 20111
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_getcontrol
(
	file_t file,
	mach_port_t *control
);

/* Routine file_statfs */
#define MIG_RPC_HAVE___FILE_STATFS
#define MIG_RPC_REQUEST_ID___FILE_STATFS 20012
#define MIG_RPC_REPLY_ID___FILE_STATFS 20112
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_statfs
(
	file_t file,
	fsys_statfsbuf_t *info
);

/* Routine file_sync */
#define MIG_RPC_HAVE___FILE_SYNC
#define MIG_RPC_REQUEST_ID___FILE_SYNC 20013
#define MIG_RPC_REPLY_ID___FILE_SYNC 20113
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_sync
(
	file_t file,
	int wait,
	int omit_metadata
);

/* Routine file_syncfs */
#define MIG_RPC_HAVE___FILE_SYNCFS
#define MIG_RPC_REQUEST_ID___FILE_SYNCFS 20014
#define MIG_RPC_REPLY_ID___FILE_SYNCFS 20114
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_syncfs
(
	file_t file,
	int wait,
	int do_children
);

/* Routine file_get_storage_info */
#define MIG_RPC_HAVE___FILE_GET_STORAGE_INFO
#define MIG_RPC_REQUEST_ID___FILE_GET_STORAGE_INFO 20015
#define MIG_RPC_REPLY_ID___FILE_GET_STORAGE_INFO 20115
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_get_storage_info
(
	file_t file,
	portarray_t *ports,
	mach_msg_type_number_t *portsCnt,
	intarray_t *ints,
	mach_msg_type_number_t *intsCnt,
	off_array_t *offsets,
	mach_msg_type_number_t *offsetsCnt,
	data_t *data,
	mach_msg_type_number_t *dataCnt
);

/* Routine file_getlinknode */
#define MIG_RPC_HAVE___FILE_GETLINKNODE
#define MIG_RPC_REQUEST_ID___FILE_GETLINKNODE 20016
#define MIG_RPC_REPLY_ID___FILE_GETLINKNODE 20116
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_getlinknode
(
	file_t file,
	mach_port_t *linknode
);

/* Routine file_getfh */
#define MIG_RPC_HAVE___FILE_GETFH
#define MIG_RPC_REQUEST_ID___FILE_GETFH 20017
#define MIG_RPC_REPLY_ID___FILE_GETFH 20117
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_getfh
(
	file_t file,
	data_t *filehandle,
	mach_msg_type_number_t *filehandleCnt
);

/* Routine dir_lookup */
#define MIG_RPC_HAVE___DIR_LOOKUP
#define MIG_RPC_REQUEST_ID___DIR_LOOKUP 20018
#define MIG_RPC_REPLY_ID___DIR_LOOKUP 20118
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __dir_lookup
(
	file_t start_dir,
	const_string_t file_name,
	int flags,
	mode_t mode,
	retry_type *do_retry,
	string_t retry_name,
	mach_port_t *result
);

/* Routine dir_readdir */
#define MIG_RPC_HAVE___DIR_READDIR
#define MIG_RPC_REQUEST_ID___DIR_READDIR 20019
#define MIG_RPC_REPLY_ID___DIR_READDIR 20119
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __dir_readdir
(
	file_t dir,
	data_t *data,
	mach_msg_type_number_t *dataCnt,
	int entry,
	int nentries,
	vm_size_t bufsiz,
	int *amount
);

/* Routine dir_mkdir */
#define MIG_RPC_HAVE___DIR_MKDIR
#define MIG_RPC_REQUEST_ID___DIR_MKDIR 20020
#define MIG_RPC_REPLY_ID___DIR_MKDIR 20120
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __dir_mkdir
(
	file_t directory,
	const_string_t name,
	mode_t mode
);

/* Routine dir_rmdir */
#define MIG_RPC_HAVE___DIR_RMDIR
#define MIG_RPC_REQUEST_ID___DIR_RMDIR 20021
#define MIG_RPC_REPLY_ID___DIR_RMDIR 20121
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __dir_rmdir
(
	file_t directory,
	const_string_t name
);

/* Routine dir_unlink */
#define MIG_RPC_HAVE___DIR_UNLINK
#define MIG_RPC_REQUEST_ID___DIR_UNLINK 20022
#define MIG_RPC_REPLY_ID___DIR_UNLINK 20122
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __dir_unlink
(
	file_t directory,
	const_string_t name
);

/* Routine dir_link */
#define MIG_RPC_HAVE___DIR_LINK
#define MIG_RPC_REQUEST_ID___DIR_LINK 20023
#define MIG_RPC_REPLY_ID___DIR_LINK 20123
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __dir_link
(
	file_t dir,
	file_t file,
	const_string_t name,
	int excl
);

/* Routine dir_rename */
#define MIG_RPC_HAVE___DIR_RENAME
#define MIG_RPC_REQUEST_ID___DIR_RENAME 20024
#define MIG_RPC_REPLY_ID___DIR_RENAME 20124
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __dir_rename
(
	file_t olddirectory,
	const_string_t oldname,
	file_t newdirectory,
	const_string_t newname,
	int excl
);

/* Routine dir_mkfile */
#define MIG_RPC_HAVE___DIR_MKFILE
#define MIG_RPC_REQUEST_ID___DIR_MKFILE 20025
#define MIG_RPC_REPLY_ID___DIR_MKFILE 20125
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __dir_mkfile
(
	file_t directory,
	int flags,
	mode_t mode,
	mach_port_t *newnode
);

/* Routine dir_notice_changes */
#define MIG_RPC_HAVE___DIR_NOTICE_CHANGES
#define MIG_RPC_REQUEST_ID___DIR_NOTICE_CHANGES 20026
#define MIG_RPC_REPLY_ID___DIR_NOTICE_CHANGES 20126
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __dir_notice_changes
(
	file_t directory,
	mach_port_t port,
	mach_msg_type_name_t portPoly
);

/* Routine file_set_translator */
#define MIG_RPC_HAVE___FILE_SET_TRANSLATOR
#define MIG_RPC_REQUEST_ID___FILE_SET_TRANSLATOR 20027
#define MIG_RPC_REPLY_ID___FILE_SET_TRANSLATOR 20127
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_set_translator
(
	file_t file,
	int passive_flags,
	int active_flags,
	int oldtrans_flags,
	const_data_t passive,
	mach_msg_type_number_t passiveCnt,
	mach_port_t active,
	mach_msg_type_name_t activePoly
);

/* Routine file_get_translator */
#define MIG_RPC_HAVE___FILE_GET_TRANSLATOR
#define MIG_RPC_REQUEST_ID___FILE_GET_TRANSLATOR 20028
#define MIG_RPC_REPLY_ID___FILE_GET_TRANSLATOR 20128
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_get_translator
(
	file_t file,
	data_t *translator,
	mach_msg_type_number_t *translatorCnt
);

/* Routine file_get_translator_cntl */
#define MIG_RPC_HAVE___FILE_GET_TRANSLATOR_CNTL
#define MIG_RPC_REQUEST_ID___FILE_GET_TRANSLATOR_CNTL 20029
#define MIG_RPC_REPLY_ID___FILE_GET_TRANSLATOR_CNTL 20129
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_get_translator_cntl
(
	file_t file,
	mach_port_t *translator_cntl
);

/* Routine file_get_fs_options */
#define MIG_RPC_HAVE___FILE_GET_FS_OPTIONS
#define MIG_RPC_REQUEST_ID___FILE_GET_FS_OPTIONS 20030
#define MIG_RPC_REPLY_ID___FILE_GET_FS_OPTIONS 20130
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_get_fs_options
(
	file_t file,
	data_t *options,
	mach_msg_type_number_t *optionsCnt
);

/* Routine file_reparent */
#define MIG_RPC_HAVE___FILE_REPARENT
#define MIG_RPC_REQUEST_ID___FILE_REPARENT 20031
#define MIG_RPC_REPLY_ID___FILE_REPARENT 20131
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_reparent
(
	file_t file,
	mach_port_t parent,
	mach_port_t *new_file
);

/* Routine file_exec_paths */
#define MIG_RPC_HAVE___FILE_EXEC_PATHS
#define MIG_RPC_REQUEST_ID___FILE_EXEC_PATHS 20034
#define MIG_RPC_REPLY_ID___FILE_EXEC_PATHS 20134
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_exec_paths
(
	file_t exec_file,
	mach_port_t exec_task,
	int flags,
	const_string_t path,
	const_string_t abspath,
	const_data_t argv,
	mach_msg_type_number_t argvCnt,
	const_data_t envp,
	mach_msg_type_number_t envpCnt,
	const_portarray_t fdarray,
	mach_msg_type_name_t fdarrayPoly,
	mach_msg_type_number_t fdarrayCnt,
	const_portarray_t portarray,
	mach_msg_type_name_t portarrayPoly,
	mach_msg_type_number_t portarrayCnt,
	const_intarray_t intarray,
	mach_msg_type_number_t intarrayCnt,
	const_mach_port_name_array_t deallocnames,
	mach_msg_type_number_t deallocnamesCnt,
	const_mach_port_name_array_t destroynames,
	mach_msg_type_number_t destroynamesCnt
);

/* Routine file_utimens */
#define MIG_RPC_HAVE___FILE_UTIMENS
#define MIG_RPC_REQUEST_ID___FILE_UTIMENS 20035
#define MIG_RPC_REPLY_ID___FILE_UTIMENS 20135
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_utimens
(
	file_t utimes_file,
	timespec_t new_atime,
	timespec_t new_mtime
);

/* Routine file_record_lock */
#define MIG_RPC_HAVE___FILE_RECORD_LOCK
#define MIG_RPC_REQUEST_ID___FILE_RECORD_LOCK 20036
#define MIG_RPC_REPLY_ID___FILE_RECORD_LOCK 20136
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __file_record_lock
(
	file_t file,
	int cmd,
	flock_t *flock64,
	mach_port_t rendezvous,
	mach_msg_type_name_t rendezvousPoly
);


/* Module fs */

#include <mach/kern_return.h>
#include <mach/port.h>
#include <mach/message.h>

#include <mach/std_types.h>
#include <mach/mach_types.h>
#include <device/device_types.h>
#include <device/net_status.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/statfs.h>
#include <sys/resource.h>
#include <sys/utsname.h>
#include <hurd/hurd_types.h>
#include <fcntl.h>

/* Routine file_exec */
#define MIG_RPC_HAVE_FILE_EXEC
#define MIG_RPC_REQUEST_ID_FILE_EXEC 20000
#define MIG_RPC_REPLY_ID_FILE_EXEC 20100
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_exec
(
	file_t exec_file,
	mach_port_t exec_task,
	int flags,
	const_data_t argv,
	mach_msg_type_number_t argvCnt,
	const_data_t envp,
	mach_msg_type_number_t envpCnt,
	const_portarray_t fdarray,
	mach_msg_type_name_t fdarrayPoly,
	mach_msg_type_number_t fdarrayCnt,
	const_portarray_t portarray,
	mach_msg_type_name_t portarrayPoly,
	mach_msg_type_number_t portarrayCnt,
	const_intarray_t intarray,
	mach_msg_type_number_t intarrayCnt,
	const_mach_port_name_array_t deallocnames,
	mach_msg_type_number_t deallocnamesCnt,
	const_mach_port_name_array_t destroynames,
	mach_msg_type_number_t destroynamesCnt
);

/* Routine file_chown */
#define MIG_RPC_HAVE_FILE_CHOWN
#define MIG_RPC_REQUEST_ID_FILE_CHOWN 20001
#define MIG_RPC_REPLY_ID_FILE_CHOWN 20101
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_chown
(
	file_t chown_file,
	uid_t new_owner,
	gid_t new_group
);

/* Routine file_chauthor */
#define MIG_RPC_HAVE_FILE_CHAUTHOR
#define MIG_RPC_REQUEST_ID_FILE_CHAUTHOR 20002
#define MIG_RPC_REPLY_ID_FILE_CHAUTHOR 20102
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_chauthor
(
	file_t chauth_file,
	uid_t new_author
);

/* Routine file_chmod */
#define MIG_RPC_HAVE_FILE_CHMOD
#define MIG_RPC_REQUEST_ID_FILE_CHMOD 20003
#define MIG_RPC_REPLY_ID_FILE_CHMOD 20103
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_chmod
(
	file_t chmod_file,
	mode_t new_mode
);

/* Routine file_chflags */
#define MIG_RPC_HAVE_FILE_CHFLAGS
#define MIG_RPC_REQUEST_ID_FILE_CHFLAGS 20004
#define MIG_RPC_REPLY_ID_FILE_CHFLAGS 20104
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_chflags
(
	file_t chflags_file,
	int new_flags
);

/* Routine file_utimes */
#define MIG_RPC_HAVE_FILE_UTIMES
#define MIG_RPC_REQUEST_ID_FILE_UTIMES 20005
#define MIG_RPC_REPLY_ID_FILE_UTIMES 20105
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_utimes
(
	file_t utimes_file,
	time_value_t new_atime,
	time_value_t new_mtime
);

/* Routine file_set_size */
#define MIG_RPC_HAVE_FILE_SET_SIZE
#define MIG_RPC_REQUEST_ID_FILE_SET_SIZE 20006
#define MIG_RPC_REPLY_ID_FILE_SET_SIZE 20106
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_set_size
(
	file_t trunc_file,
	__loff_t new_size
);

/* Routine file_lock */
#define MIG_RPC_HAVE_FILE_LOCK
#define MIG_RPC_REQUEST_ID_FILE_LOCK 20007
#define MIG_RPC_REPLY_ID_FILE_LOCK 20107
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_lock
(
	file_t lock_file,
	int flags
);

/* Routine file_lock_stat */
#define MIG_RPC_HAVE_FILE_LOCK_STAT
#define MIG_RPC_REQUEST_ID_FILE_LOCK_STAT 20008
#define MIG_RPC_REPLY_ID_FILE_LOCK_STAT 20108
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_lock_stat
(
	file_t lock_file,
	int *mystatus,
	int *otherstatus
);

/* Routine file_check_access */
#define MIG_RPC_HAVE_FILE_CHECK_ACCESS
#define MIG_RPC_REQUEST_ID_FILE_CHECK_ACCESS 20009
#define MIG_RPC_REPLY_ID_FILE_CHECK_ACCESS 20109
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_check_access
(
	file_t file,
	int *allowed
);

/* Routine file_notice_changes */
#define MIG_RPC_HAVE_FILE_NOTICE_CHANGES
#define MIG_RPC_REQUEST_ID_FILE_NOTICE_CHANGES 20010
#define MIG_RPC_REPLY_ID_FILE_NOTICE_CHANGES 20110
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_notice_changes
(
	file_t file,
	mach_port_t port,
	mach_msg_type_name_t portPoly
);

/* Routine file_getcontrol */
#define MIG_RPC_HAVE_FILE_GETCONTROL
#define MIG_RPC_REQUEST_ID_FILE_GETCONTROL 20011
#define MIG_RPC_REPLY_ID_FILE_GETCONTROL 20111
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_getcontrol
(
	file_t file,
	mach_port_t *control
);

/* Routine file_statfs */
#define MIG_RPC_HAVE_FILE_STATFS
#define MIG_RPC_REQUEST_ID_FILE_STATFS 20012
#define MIG_RPC_REPLY_ID_FILE_STATFS 20112
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_statfs
(
	file_t file,
	fsys_statfsbuf_t *info
);

/* Routine file_sync */
#define MIG_RPC_HAVE_FILE_SYNC
#define MIG_RPC_REQUEST_ID_FILE_SYNC 20013
#define MIG_RPC_REPLY_ID_FILE_SYNC 20113
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_sync
(
	file_t file,
	int wait,
	int omit_metadata
);

/* Routine file_syncfs */
#define MIG_RPC_HAVE_FILE_SYNCFS
#define MIG_RPC_REQUEST_ID_FILE_SYNCFS 20014
#define MIG_RPC_REPLY_ID_FILE_SYNCFS 20114
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_syncfs
(
	file_t file,
	int wait,
	int do_children
);

/* Routine file_get_storage_info */
#define MIG_RPC_HAVE_FILE_GET_STORAGE_INFO
#define MIG_RPC_REQUEST_ID_FILE_GET_STORAGE_INFO 20015
#define MIG_RPC_REPLY_ID_FILE_GET_STORAGE_INFO 20115
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_get_storage_info
(
	file_t file,
	portarray_t *ports,
	mach_msg_type_number_t *portsCnt,
	intarray_t *ints,
	mach_msg_type_number_t *intsCnt,
	off_array_t *offsets,
	mach_msg_type_number_t *offsetsCnt,
	data_t *data,
	mach_msg_type_number_t *dataCnt
);

/* Routine file_getlinknode */
#define MIG_RPC_HAVE_FILE_GETLINKNODE
#define MIG_RPC_REQUEST_ID_FILE_GETLINKNODE 20016
#define MIG_RPC_REPLY_ID_FILE_GETLINKNODE 20116
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_getlinknode
(
	file_t file,
	mach_port_t *linknode
);

/* Routine file_getfh */
#define MIG_RPC_HAVE_FILE_GETFH
#define MIG_RPC_REQUEST_ID_FILE_GETFH 20017
#define MIG_RPC_REPLY_ID_FILE_GETFH 20117
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_getfh
(
	file_t file,
	data_t *filehandle,
	mach_msg_type_number_t *filehandleCnt
);

/* Routine dir_lookup */
#define MIG_RPC_HAVE_DIR_LOOKUP
#define MIG_RPC_REQUEST_ID_DIR_LOOKUP 20018
#define MIG_RPC_REPLY_ID_DIR_LOOKUP 20118
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t dir_lookup
(
	file_t start_dir,
	const_string_t file_name,
	int flags,
	mode_t mode,
	retry_type *do_retry,
	string_t retry_name,
	mach_port_t *result
);

/* Routine dir_readdir */
#define MIG_RPC_HAVE_DIR_READDIR
#define MIG_RPC_REQUEST_ID_DIR_READDIR 20019
#define MIG_RPC_REPLY_ID_DIR_READDIR 20119
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t dir_readdir
(
	file_t dir,
	data_t *data,
	mach_msg_type_number_t *dataCnt,
	int entry,
	int nentries,
	vm_size_t bufsiz,
	int *amount
);

/* Routine dir_mkdir */
#define MIG_RPC_HAVE_DIR_MKDIR
#define MIG_RPC_REQUEST_ID_DIR_MKDIR 20020
#define MIG_RPC_REPLY_ID_DIR_MKDIR 20120
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t dir_mkdir
(
	file_t directory,
	const_string_t name,
	mode_t mode
);

/* Routine dir_rmdir */
#define MIG_RPC_HAVE_DIR_RMDIR
#define MIG_RPC_REQUEST_ID_DIR_RMDIR 20021
#define MIG_RPC_REPLY_ID_DIR_RMDIR 20121
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t dir_rmdir
(
	file_t directory,
	const_string_t name
);

/* Routine dir_unlink */
#define MIG_RPC_HAVE_DIR_UNLINK
#define MIG_RPC_REQUEST_ID_DIR_UNLINK 20022
#define MIG_RPC_REPLY_ID_DIR_UNLINK 20122
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t dir_unlink
(
	file_t directory,
	const_string_t name
);

/* Routine dir_link */
#define MIG_RPC_HAVE_DIR_LINK
#define MIG_RPC_REQUEST_ID_DIR_LINK 20023
#define MIG_RPC_REPLY_ID_DIR_LINK 20123
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t dir_link
(
	file_t dir,
	file_t file,
	const_string_t name,
	int excl
);

/* Routine dir_rename */
#define MIG_RPC_HAVE_DIR_RENAME
#define MIG_RPC_REQUEST_ID_DIR_RENAME 20024
#define MIG_RPC_REPLY_ID_DIR_RENAME 20124
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t dir_rename
(
	file_t olddirectory,
	const_string_t oldname,
	file_t newdirectory,
	const_string_t newname,
	int excl
);

/* Routine dir_mkfile */
#define MIG_RPC_HAVE_DIR_MKFILE
#define MIG_RPC_REQUEST_ID_DIR_MKFILE 20025
#define MIG_RPC_REPLY_ID_DIR_MKFILE 20125
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t dir_mkfile
(
	file_t directory,
	int flags,
	mode_t mode,
	mach_port_t *newnode
);

/* Routine dir_notice_changes */
#define MIG_RPC_HAVE_DIR_NOTICE_CHANGES
#define MIG_RPC_REQUEST_ID_DIR_NOTICE_CHANGES 20026
#define MIG_RPC_REPLY_ID_DIR_NOTICE_CHANGES 20126
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t dir_notice_changes
(
	file_t directory,
	mach_port_t port,
	mach_msg_type_name_t portPoly
);

/* Routine file_set_translator */
#define MIG_RPC_HAVE_FILE_SET_TRANSLATOR
#define MIG_RPC_REQUEST_ID_FILE_SET_TRANSLATOR 20027
#define MIG_RPC_REPLY_ID_FILE_SET_TRANSLATOR 20127
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_set_translator
(
	file_t file,
	int passive_flags,
	int active_flags,
	int oldtrans_flags,
	const_data_t passive,
	mach_msg_type_number_t passiveCnt,
	mach_port_t active,
	mach_msg_type_name_t activePoly
);

/* Routine file_get_translator */
#define MIG_RPC_HAVE_FILE_GET_TRANSLATOR
#define MIG_RPC_REQUEST_ID_FILE_GET_TRANSLATOR 20028
#define MIG_RPC_REPLY_ID_FILE_GET_TRANSLATOR 20128
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_get_translator
(
	file_t file,
	data_t *translator,
	mach_msg_type_number_t *translatorCnt
);

/* Routine file_get_translator_cntl */
#define MIG_RPC_HAVE_FILE_GET_TRANSLATOR_CNTL
#define MIG_RPC_REQUEST_ID_FILE_GET_TRANSLATOR_CNTL 20029
#define MIG_RPC_REPLY_ID_FILE_GET_TRANSLATOR_CNTL 20129
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_get_translator_cntl
(
	file_t file,
	mach_port_t *translator_cntl
);

/* Routine file_get_fs_options */
#define MIG_RPC_HAVE_FILE_GET_FS_OPTIONS
#define MIG_RPC_REQUEST_ID_FILE_GET_FS_OPTIONS 20030
#define MIG_RPC_REPLY_ID_FILE_GET_FS_OPTIONS 20130
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_get_fs_options
(
	file_t file,
	data_t *options,
	mach_msg_type_number_t *optionsCnt
);

/* Routine file_reparent */
#define MIG_RPC_HAVE_FILE_REPARENT
#define MIG_RPC_REQUEST_ID_FILE_REPARENT 20031
#define MIG_RPC_REPLY_ID_FILE_REPARENT 20131
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_reparent
(
	file_t file,
	mach_port_t parent,
	mach_port_t *new_file
);

/* Routine file_exec_paths */
#define MIG_RPC_HAVE_FILE_EXEC_PATHS
#define MIG_RPC_REQUEST_ID_FILE_EXEC_PATHS 20034
#define MIG_RPC_REPLY_ID_FILE_EXEC_PATHS 20134
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_exec_paths
(
	file_t exec_file,
	mach_port_t exec_task,
	int flags,
	const_string_t path,
	const_string_t abspath,
	const_data_t argv,
	mach_msg_type_number_t argvCnt,
	const_data_t envp,
	mach_msg_type_number_t envpCnt,
	const_portarray_t fdarray,
	mach_msg_type_name_t fdarrayPoly,
	mach_msg_type_number_t fdarrayCnt,
	const_portarray_t portarray,
	mach_msg_type_name_t portarrayPoly,
	mach_msg_type_number_t portarrayCnt,
	const_intarray_t intarray,
	mach_msg_type_number_t intarrayCnt,
	const_mach_port_name_array_t deallocnames,
	mach_msg_type_number_t deallocnamesCnt,
	const_mach_port_name_array_t destroynames,
	mach_msg_type_number_t destroynamesCnt
);

/* Routine file_utimens */
#define MIG_RPC_HAVE_FILE_UTIMENS
#define MIG_RPC_REQUEST_ID_FILE_UTIMENS 20035
#define MIG_RPC_REPLY_ID_FILE_UTIMENS 20135
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_utimens
(
	file_t utimes_file,
	timespec_t new_atime,
	timespec_t new_mtime
);

/* Routine file_record_lock */
#define MIG_RPC_HAVE_FILE_RECORD_LOCK
#define MIG_RPC_REQUEST_ID_FILE_RECORD_LOCK 20036
#define MIG_RPC_REPLY_ID_FILE_RECORD_LOCK 20136
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t file_record_lock
(
	file_t file,
	int cmd,
	flock_t *flock64,
	mach_port_t rendezvous,
	mach_msg_type_name_t rendezvousPoly
);

#endif	/* not defined(_fs_user_) */
