newlib/winsup/cygwin/include/pty.h
Corinna Vinschen 34a1d63d80 * Makefile.in (DLL_OFILES): Add bsdlib.o.
* autoload.cc (RegisterServiceProcess): Add.
	* bsdlib.cc: New file.
	(daemon): New function.
	(login_tty): Ditto.
	(openpty): Ditto.
	(forkpty): Ditto.
	* cygwin.din: Export daemon, forkpty, login_tty, logwtmp, updwtmp,
	openpty and revoke.
	* syscalls.cc (updwtmp): New function, writing to wtmp exclusively.
	(logwtmp): Ditto.
	(login): Call updwtmp instead of writing to wtmp by itself.
	(logout): Ditto.
	* tty.cc (revoke): New funtion.
	* include/paths.h: Define _PATH_DEVNULL.
	* include/pty.h: New header.
	* include/cygwin/version.h: Bump API minor number.
	* include/sys/utmp.h: Declare logwtmp with const arguments.
	Declare updwtmp.
	* lib/iruserok.c: New file.
	(ruserok): New function.
	(iruserok): Ditto.
	(__ivaliduser): Ditto.
	(__icheckhost): Ditto.
2003-09-10 15:51:59 +00:00

19 lines
330 B
C

#ifndef __PTY_H__
#define __PTY_H__
#include <_ansi.h>
#include <sys/termios.h>
#ifdef __cplusplus
extern "C" {
#endif
int _EXFUN(openpty ,(int *, int *, char *, struct termios *, struct winsize *));
int _EXFUN(forkpty ,(int *, char *, struct termios *, struct winsize *));
#ifdef __cplusplus
}
#endif
#endif /* __PTY_H__ */