From owner-freebsd-bugs@FreeBSD.ORG Thu Mar 22 09:10:14 2007 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 25C8216A416 for ; Thu, 22 Mar 2007 09:10:14 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E720B13C4B0 for ; Thu, 22 Mar 2007 09:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l2M9ADQI082464 for ; Thu, 22 Mar 2007 09:10:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l2M9ADbj082463; Thu, 22 Mar 2007 09:10:13 GMT (envelope-from gnats) Resent-Date: Thu, 22 Mar 2007 09:10:13 GMT Resent-Message-Id: <200703220910.l2M9ADbj082463@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Ed Schouten Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A1CC16A40B for ; Thu, 22 Mar 2007 09:03:43 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (palm.hoeg.nl [83.98.131.212]) by mx1.freebsd.org (Postfix) with ESMTP id DAFA013C483 for ; Thu, 22 Mar 2007 09:03:42 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 05FBF1CE53; Thu, 22 Mar 2007 10:03:40 +0100 (CET) Message-Id: <20070322090341.05FBF1CE53@palm.hoeg.nl> Date: Thu, 22 Mar 2007 10:03:40 +0100 (CET) From: Ed Schouten To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: misc/110667: [sgtty.h] Place warning in header file X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Ed Schouten List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Mar 2007 09:10:14 -0000 >Number: 110667 >Category: misc >Synopsis: [sgtty.h] Place warning in header file >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Mar 22 09:10:13 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Ed Schouten >Release: FreeBSD 6.2-STABLE i386 >Organization: >Environment: System: FreeBSD palm.hoeg.nl 6.2-STABLE FreeBSD 6.2-STABLE #0: Sun Feb 11 22:32:09 CET 2007 root@palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386 >Description: I'm currently working on FreeBSD ports that still make use of the sgtty interface, trying to make them use termios. sgtty only works with COMPAT_43TTY in the kernel. Users of this interface should be informed of that. I'd like to have this patch in the source tree, because I can then grep public tinderbox logs for inclusions of this header file. >How-To-Repeat: >Fix: The following patch will cause sgtty.h to show a warning when included. --- src/include/sgtty.h Tue May 24 11:57:10 1994 +++ src/include/sgtty.h Thu Mar 22 09:52:20 2007 @@ -31,9 +31,21 @@ * SUCH DAMAGE. * * @(#)sgtty.h 8.1 (Berkeley) 6/2/93 + * $FreeBSD$ */ +#ifndef _SGTTY_H_ +#define _SGTTY_H_ + +#include + +#ifdef __CC_SUPPORTS_WARNING +#warning "sgtty.h is deprecated and depends on COMPAT_43TTY. Use termios.h instead." +#endif + #ifndef USE_OLD_TTY #define USE_OLD_TTY #endif #include + +#endif /* !_SGTTY_H_ */ >Release-Note: >Audit-Trail: >Unformatted: