Date: Tue, 22 Oct 2002 11:13:00 +0900 (JST) From: Kimura Fuyuki <fuyuki@hadaly.org> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/44365: introduce ulong and unchar types Message-ID: <20021022021300.2CBA95679@hadaly.dyndns.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021022021300.2CBA95679>