mirror of
https://review.haiku-os.org/haiku
synced 2025-01-31 18:56:49 +01:00
e595b7fd4b
gcc2 complains otherwise when using -ansi -pedantic-errors that "text afer `#endif' violates ANSI standard" because it doesn't recognize C++ comments in C mode. Change-Id: Icb091d15a4324625ce305aa89391c44a94f4a38e Reviewed-on: https://review.haiku-os.org/c/haiku/+/8094 Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk> Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
32 lines
568 B
C
32 lines
568 B
C
/*
|
|
* Copyright 2008-2010 Haiku Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _BSD_PTY_H_
|
|
#define _BSD_PTY_H_
|
|
|
|
#include <features.h>
|
|
|
|
#ifdef _DEFAULT_SOURCE
|
|
|
|
|
|
#include <sys/cdefs.h>
|
|
#include <termios.h>
|
|
|
|
|
|
__BEGIN_DECLS
|
|
|
|
extern int openpty(int* master, int* slave, char* name,
|
|
struct termios* termAttrs, struct winsize* windowSize);
|
|
extern int login_tty(int fd);
|
|
extern pid_t forkpty(int* master, char* name,
|
|
struct termios* termAttrs, struct winsize* windowSize);
|
|
|
|
__END_DECLS
|
|
|
|
|
|
#endif
|
|
|
|
|
|
#endif /* _BSD_PTY_H_ */
|