From owner-svn-src-all@freebsd.org Sun Feb 26 21:49:44 2017 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9F82BCEDF42; Sun, 26 Feb 2017 21:49:44 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670052.outbound.protection.outlook.com [40.107.67.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "mail.protection.outlook.com", Issuer "Microsoft IT SSL SHA2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 55EB8CBF; Sun, 26 Feb 2017 21:49:43 +0000 (UTC) (envelope-from rmacklem@uoguelph.ca) Received: from YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM (10.165.218.133) by YTXPR01MB0192.CANPRD01.PROD.OUTLOOK.COM (10.165.218.136) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Sun, 26 Feb 2017 21:49:41 +0000 Received: from YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM ([10.165.218.133]) by YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM ([10.165.218.133]) with mapi id 15.01.0933.019; Sun, 26 Feb 2017 21:49:40 +0000 From: Rick Macklem To: Warner Losh , Konstantin Belousov CC: Bruce Evans , src-committers , "svn-src-all@freebsd.org" , "svn-src-head@freebsd.org" Subject: Re: svn commit: r314087 - head/sys/x86/x86 Thread-Topic: svn commit: r314087 - head/sys/x86/x86 Thread-Index: AQHSjxW+6zE+Xzm5AUyCge+66sryE6F5ghKAgAB9BwCAAT7ygIAAUd2AgABDYJ0= Date: Sun, 26 Feb 2017 21:49:40 +0000 Message-ID: References: <201702220707.v1M7764i020598@repo.freebsd.org> <20170223053954.J1044@besplex.bde.org> <20170224125335.GV2092@kib.kiev.ua> <20170225130549.C1026@besplex.bde.org> <20170225101543.GC2092@kib.kiev.ua> <20170226013936.S856@besplex.bde.org> <20170226124445.GE2092@kib.kiev.ua>, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=rmacklem@uoguelph.ca; x-ms-office365-filtering-correlation-id: 2a337576-83c4-4ea9-e5f8-08d45e915e23 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:YTXPR01MB0192; x-microsoft-exchange-diagnostics: 1; YTXPR01MB0192; 7:graWERc5RcYLiRzBavdBIsqW/GO/D7yBvufESydDJs7yx7kPgH2VqM4NREeUFiWLNcO5xBNsAvYMhNP77J9tyxUnKXvuf+oRvJOBazOoazydw8pD4tyVzftZbDTnA44mPARBetLqkxuIoVDUawfif+/CUf+mXP95rFny7f8AxBtja8CgAlCf/rqohSYk9V8+wIJY0oo1C2NQrLIfqvdioH93DP6gyXQiogVG1biKHiD7A/UqImydMcAxmI7yqhFkanakKsQmWquUZB9GntLiu1HwkcZMwaI/rGXKUOH5tSdumKIkmJLUhXL8Ycw/7Y9OvVXmY5B7Yhoe1K9eErUstg== x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123558025)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(6072148); SRVR:YTXPR01MB0192; BCL:0; PCL:0; RULEID:; SRVR:YTXPR01MB0192; x-forefront-prvs: 0230B09AC4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(377454003)(24454002)(199003)(189002)(7696004)(53936002)(2950100002)(33656002)(97736004)(53546006)(305945005)(8936002)(39060400002)(38730400002)(6246003)(81166006)(81156014)(8676002)(55016002)(68736007)(189998001)(9686003)(92566002)(122556002)(54906002)(93886004)(2900100001)(106116001)(6506006)(106356001)(76176999)(50986999)(54356999)(74482002)(101416001)(74316002)(6436002)(5660300001)(86362001)(3660700001)(102836003)(3280700002)(4326007)(2906002)(77096006)(105586002)(229853002); DIR:OUT; SFP:1101; SCL:1; SRVR:YTXPR01MB0192; H:YTXPR01MB0189.CANPRD01.PROD.OUTLOOK.COM; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; received-spf: None (protection.outlook.com: uoguelph.ca does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: uoguelph.ca X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2017 21:49:40.7981 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: be62a12b-2cad-49a1-a5fa-85f4f3156a7d X-MS-Exchange-Transport-CrossTenantHeadersStamped: YTXPR01MB0192 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Feb 2017 21:49:44 -0000 Warner Losh wrote: > On Sun, Feb 26, 2017 at 5:44 AM, Konstantin Belousov wrote: > > On Sun, Feb 26, 2017 at 04:43:12AM +1100, Bruce Evans wrote: > > 2.9 BSD was a port to PDP-11, AFAIK, with 16bit ints. > > A bit off topic, but 2BSD was basically[**] a continuation of Research > Unix which started out life on the PDP-11 (well, OK, it started life > in assembler on the PDP-7, but then was rewritten in C on the PDP-11). More off topic...this C was defined by Dennis Richie (sp?) and I heard him once say "ANSI C isn't a bad language, but it isn't C". It didn't have "uns= igned int" because he noted that a "char *" behaved the same, so why is it needed? > Or a compiler more modern than K&R[*]. I could be wrong (lost my K&R C book long ago), but I think K&R had: char - 1byte short - 2bytes long - 4 bytes long long - 8bytes int - whatever the arch preferred, with a minimum of 2bytes (And, yes, Brian did disagree with Dennis and added "unsigned".) Personally, I think "long" should have remained 4bytes on all arches and that would have made code less painful to port... (I could live with "int" assumed to be at least 4bytes.) rick ps: And, yes, I still prefer "old C", but suffer through the ANSIisms.;-)