#ifndef	_term_user_
#define	_term_user_

/* Module term */

#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 term_getctty */
#define MIG_RPC_HAVE___TERM_GETCTTY
#define MIG_RPC_REQUEST_ID___TERM_GETCTTY 28000
#define MIG_RPC_REPLY_ID___TERM_GETCTTY 28100
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_getctty
(
	io_t terminal,
	mach_port_t *ctty
);

/* Routine term_open_ctty */
#define MIG_RPC_HAVE___TERM_OPEN_CTTY
#define MIG_RPC_REQUEST_ID___TERM_OPEN_CTTY 28001
#define MIG_RPC_REPLY_ID___TERM_OPEN_CTTY 28101
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_open_ctty
(
	io_t terminal,
	pid_t pid,
	pid_t pgrp,
	mach_port_t *newtty
);

/* Routine term_set_nodename */
#define MIG_RPC_HAVE___TERM_SET_NODENAME
#define MIG_RPC_REQUEST_ID___TERM_SET_NODENAME 28002
#define MIG_RPC_REPLY_ID___TERM_SET_NODENAME 28102
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_set_nodename
(
	io_t terminal,
	const_string_t name
);

/* Routine term_get_nodename */
#define MIG_RPC_HAVE___TERM_GET_NODENAME
#define MIG_RPC_REQUEST_ID___TERM_GET_NODENAME 28003
#define MIG_RPC_REPLY_ID___TERM_GET_NODENAME 28103
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_get_nodename
(
	io_t terminal,
	string_t name
);

/* Routine term_set_filenode */
#define MIG_RPC_HAVE___TERM_SET_FILENODE
#define MIG_RPC_REQUEST_ID___TERM_SET_FILENODE 28004
#define MIG_RPC_REPLY_ID___TERM_SET_FILENODE 28104
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_set_filenode
(
	io_t terminal,
	file_t filenode
);

/* Routine term_get_bottom_type */
#define MIG_RPC_HAVE___TERM_GET_BOTTOM_TYPE
#define MIG_RPC_REQUEST_ID___TERM_GET_BOTTOM_TYPE 28005
#define MIG_RPC_REPLY_ID___TERM_GET_BOTTOM_TYPE 28105
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_get_bottom_type
(
	io_t terminal,
	int *ttype
);

/* Routine term_on_machdev */
#define MIG_RPC_HAVE___TERM_ON_MACHDEV
#define MIG_RPC_REQUEST_ID___TERM_ON_MACHDEV 28006
#define MIG_RPC_REPLY_ID___TERM_ON_MACHDEV 28106
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_on_machdev
(
	io_t terminal,
	mach_port_t machdev
);

/* Routine term_on_hurddev */
#define MIG_RPC_HAVE___TERM_ON_HURDDEV
#define MIG_RPC_REQUEST_ID___TERM_ON_HURDDEV 28007
#define MIG_RPC_REPLY_ID___TERM_ON_HURDDEV 28107
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_on_hurddev
(
	io_t terminal,
	io_t hurddev
);

/* Routine term_on_pty */
#define MIG_RPC_HAVE___TERM_ON_PTY
#define MIG_RPC_REQUEST_ID___TERM_ON_PTY 28008
#define MIG_RPC_REPLY_ID___TERM_ON_PTY 28108
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_on_pty
(
	io_t terminal,
	io_t *ptymaster
);

/* Routine termctty_open_terminal */
#define MIG_RPC_HAVE___TERMCTTY_OPEN_TERMINAL
#define MIG_RPC_REQUEST_ID___TERMCTTY_OPEN_TERMINAL 28009
#define MIG_RPC_REPLY_ID___TERMCTTY_OPEN_TERMINAL 28109
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __termctty_open_terminal
(
	ctty_t ctty,
	int flags,
	mach_port_t *terminal
);

/* Routine term_get_peername */
#define MIG_RPC_HAVE___TERM_GET_PEERNAME
#define MIG_RPC_REQUEST_ID___TERM_GET_PEERNAME 28010
#define MIG_RPC_REPLY_ID___TERM_GET_PEERNAME 28110
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t __term_get_peername
(
	io_t terminal,
	string_t name
);


/* Module term */

#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 term_getctty */
#define MIG_RPC_HAVE_TERM_GETCTTY
#define MIG_RPC_REQUEST_ID_TERM_GETCTTY 28000
#define MIG_RPC_REPLY_ID_TERM_GETCTTY 28100
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_getctty
(
	io_t terminal,
	mach_port_t *ctty
);

/* Routine term_open_ctty */
#define MIG_RPC_HAVE_TERM_OPEN_CTTY
#define MIG_RPC_REQUEST_ID_TERM_OPEN_CTTY 28001
#define MIG_RPC_REPLY_ID_TERM_OPEN_CTTY 28101
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_open_ctty
(
	io_t terminal,
	pid_t pid,
	pid_t pgrp,
	mach_port_t *newtty
);

/* Routine term_set_nodename */
#define MIG_RPC_HAVE_TERM_SET_NODENAME
#define MIG_RPC_REQUEST_ID_TERM_SET_NODENAME 28002
#define MIG_RPC_REPLY_ID_TERM_SET_NODENAME 28102
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_set_nodename
(
	io_t terminal,
	const_string_t name
);

/* Routine term_get_nodename */
#define MIG_RPC_HAVE_TERM_GET_NODENAME
#define MIG_RPC_REQUEST_ID_TERM_GET_NODENAME 28003
#define MIG_RPC_REPLY_ID_TERM_GET_NODENAME 28103
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_get_nodename
(
	io_t terminal,
	string_t name
);

/* Routine term_set_filenode */
#define MIG_RPC_HAVE_TERM_SET_FILENODE
#define MIG_RPC_REQUEST_ID_TERM_SET_FILENODE 28004
#define MIG_RPC_REPLY_ID_TERM_SET_FILENODE 28104
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_set_filenode
(
	io_t terminal,
	file_t filenode
);

/* Routine term_get_bottom_type */
#define MIG_RPC_HAVE_TERM_GET_BOTTOM_TYPE
#define MIG_RPC_REQUEST_ID_TERM_GET_BOTTOM_TYPE 28005
#define MIG_RPC_REPLY_ID_TERM_GET_BOTTOM_TYPE 28105
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_get_bottom_type
(
	io_t terminal,
	int *ttype
);

/* Routine term_on_machdev */
#define MIG_RPC_HAVE_TERM_ON_MACHDEV
#define MIG_RPC_REQUEST_ID_TERM_ON_MACHDEV 28006
#define MIG_RPC_REPLY_ID_TERM_ON_MACHDEV 28106
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_on_machdev
(
	io_t terminal,
	mach_port_t machdev
);

/* Routine term_on_hurddev */
#define MIG_RPC_HAVE_TERM_ON_HURDDEV
#define MIG_RPC_REQUEST_ID_TERM_ON_HURDDEV 28007
#define MIG_RPC_REPLY_ID_TERM_ON_HURDDEV 28107
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_on_hurddev
(
	io_t terminal,
	io_t hurddev
);

/* Routine term_on_pty */
#define MIG_RPC_HAVE_TERM_ON_PTY
#define MIG_RPC_REQUEST_ID_TERM_ON_PTY 28008
#define MIG_RPC_REPLY_ID_TERM_ON_PTY 28108
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_on_pty
(
	io_t terminal,
	io_t *ptymaster
);

/* Routine termctty_open_terminal */
#define MIG_RPC_HAVE_TERMCTTY_OPEN_TERMINAL
#define MIG_RPC_REQUEST_ID_TERMCTTY_OPEN_TERMINAL 28009
#define MIG_RPC_REPLY_ID_TERMCTTY_OPEN_TERMINAL 28109
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t termctty_open_terminal
(
	ctty_t ctty,
	int flags,
	mach_port_t *terminal
);

/* Routine term_get_peername */
#define MIG_RPC_HAVE_TERM_GET_PEERNAME
#define MIG_RPC_REQUEST_ID_TERM_GET_PEERNAME 28010
#define MIG_RPC_REPLY_ID_TERM_GET_PEERNAME 28110
#ifdef	mig_external
mig_external
#else
extern
#endif
kern_return_t term_get_peername
(
	io_t terminal,
	string_t name
);

#endif	/* not defined(_term_user_) */
