From owner-cvs-src-old@FreeBSD.ORG Sat Nov 28 23:54:11 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B55571065679 for ; Sat, 28 Nov 2009 23:54:11 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A2ADE8FC1A for ; Sat, 28 Nov 2009 23:54:11 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id nASNsBYf048109 for ; Sat, 28 Nov 2009 23:54:11 GMT (envelope-from ed@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nASNsBk9048108 for cvs-src-old@freebsd.org; Sat, 28 Nov 2009 23:54:11 GMT (envelope-from ed@repoman.freebsd.org) Message-Id: <200911282354.nASNsBk9048108@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ed@repoman.freebsd.org using -f From: Ed Schouten Date: Sat, 28 Nov 2009 23:50:48 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/include Makefile termios.h src/sys/sys _termios.h termios.h tty.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Nov 2009 23:54:11 -0000 ed 2009-11-28 23:50:48 UTC FreeBSD src repository Modified files: include Makefile sys/sys termios.h tty.h Added files: include termios.h sys/sys _termios.h Log: SVN rev 199898 on 2009-11-28 23:50:48Z by ed Decompose . The header file is hardlinked to . It contains both the structures and the flag definitions, but also the C library interface that's implemented by the C library. This header file has the typical problem of including too many random things and being badly ordered. Instead of trying to fix this, decompose it into two header files: - , which contains struct termios and the flags. - , which includes and contains the C library interface. This means userspace has to include for struct termios, while kernelspace code has to include . Also add a , which prints a warning message before including . I am aware that there are some applications that use this header file as well. Revision Changes Path 1.292 +2 -2 src/include/Makefile 1.1 +100 -0 src/include/termios.h (new) 1.1 +222 -0 src/sys/sys/_termios.h (new) 1.28 +4 -301 src/sys/sys/termios.h 1.117 +1 -1 src/sys/sys/tty.h