xref: /csrg-svn/lib/libcompat/4.1/stty.c (revision 48368)
1*48368Sbostic /*-
2*48368Sbostic  * Copyright (c) 1980 The Regents of the University of California.
3*48368Sbostic  * All rights reserved.
4*48368Sbostic  *
5*48368Sbostic  * %sccs.include.proprietary.c%
621332Sdist  */
713770Ssam 
826520Sdonn #if defined(LIBC_SCCS) && !defined(lint)
9*48368Sbostic static char sccsid[] = "@(#)stty.c	5.3 (Berkeley) 04/19/91";
10*48368Sbostic #endif /* LIBC_SCCS and not lint */
1121332Sdist 
121990Swnj /*
1313770Ssam  * Writearound to old stty system call.
141990Swnj  */
151990Swnj 
161990Swnj #include <sgtty.h>
171990Swnj 
181990Swnj stty(fd, ap)
1913770Ssam 	struct sgtty *ap;
201990Swnj {
2113770Ssam 
221990Swnj 	return(ioctl(fd, TIOCSETP, ap));
231990Swnj }
24