From owner-freebsd-bugs Mon Oct 21 19:20:14 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C498137B401 for ; Mon, 21 Oct 2002 19:20:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 209C043E8A for ; Mon, 21 Oct 2002 19:20:12 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id g9M2KBx3005306 for ; Mon, 21 Oct 2002 19:20:11 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id g9M2KBNo005305; Mon, 21 Oct 2002 19:20:11 -0700 (PDT) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 236E937B404 for ; Mon, 21 Oct 2002 19:13:10 -0700 (PDT) Received: from t-mta4.odn.ne.jp (mfep4.odn.ne.jp [143.90.131.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 36AA743E42 for ; Mon, 21 Oct 2002 19:13:08 -0700 (PDT) (envelope-from fuyuki@hadaly.dyndns.org) Received: from hadaly.dyndns.org ([218.46.5.195]) by t-mta4.odn.ne.jp with ESMTP id <20021022021306519.KDYP.32089.t-mta4.odn.ne.jp@mta4.odn.ne.jp>; Tue, 22 Oct 2002 11:13:06 +0900 Received: by hadaly.dyndns.org (Postfix, from userid 1001) id 2CBA95679; Tue, 22 Oct 2002 11:13:00 +0900 (JST) Message-Id: <20021022021300.2CBA95679@hadaly.dyndns.org> Date: Tue, 22 Oct 2002 11:13:00 +0900 (JST) From: Kimura Fuyuki To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/44365: introduce ulong and unchar types Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 44365 >Category: kern >Synopsis: introduce ulong and unchar types >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: Mon Oct 21 19:20:01 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Kimura Fuyuki >Release: FreeBSD 4.7-RELEASE i386 >Organization: >Environment: System: FreeBSD hadaly.dyndns.org 4.7-RELEASE FreeBSD 4.7-RELEASE #1: Wed Oct 9 13:04:34 JST 2002 root@hadaly.dyndns.org:/sack/tmp/obj/pub/src/sys/NS i386 >Description: Introduce ulong and unchar into sys/types.h. A bit helpful for portability and consistency, not so harmful (I guess), and already defined in Net&OpenBSD. But be careful, some header files under /sys also contain a typedef for ulong. P.S I don't know why unchar, not uchar. >How-To-Repeat: >Fix: Index: types.h =================================================================== RCS file: /home/ncvs/src/sys/sys/types.h,v retrieving revision 1.77 diff -u -r1.77 types.h --- types.h 21 Oct 2002 20:35:29 -0000 1.77 +++ types.h 22 Oct 2002 01:58:51 -0000 @@ -53,8 +53,10 @@ typedef unsigned short u_short; typedef unsigned int u_int; typedef unsigned long u_long; +typedef unsigned char unchar; /* Sys V compatibility */ typedef unsigned short ushort; /* Sys V compatibility */ typedef unsigned int uint; /* Sys V compatibility */ +typedef unsigned long ulong; /* Sys V compatibility */ #endif /* >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message