delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/04/29/15:17:13

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <64F0F24E4646E644B6AF14331D69F841D05718@orsmsx403.jf.intel.com>
From: "Lafond, Kenneth G" <kenneth DOT g DOT lafond AT intel DOT com>
To: "Hannu E K Nevalainen (garbage mail)" <garbage_collector AT telia DOT com>,
cygwin AT cygwin DOT com
Subject: RE: Bug in userIDs in large domains in Cygwin 1.3.22-1
Date: Tue, 29 Apr 2003 10:19:45 -0700
MIME-Version: 1.0
content-class: urn:content-classes:message

Whatever - it just needs to be bigger however the best way is to do it.  I
hear the fix is already in CVS, but you'd have to ask the implementer how
it's done.

Ken

-----Original Message-----
From: Hannu E K Nevalainen (garbage mail)
[mailto:garbage_collector AT telia DOT com]
Sent: Tuesday, April 29, 2003 2:44 AM
To: cygwin AT cygwin DOT com
Subject: RE: Bug in userIDs in large domains in Cygwin 1.3.22-1


> From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com]On Behalf
> Of Lafond, Kenneth G

> Suggestion: Extend the userID field to be an INT instead of a SHORT.
> That'll give 2147483648 users before we run into problems.  If
> the issue is
> with 'id' then maybe someone can tell me who to talk to to fix it?

 I flinch every time I see such a suggestion!

 Per definition in the ANSI C standard;
 The size of an INT can *differ* depending on compiler and/or host system,
 i.e. this is a "portability issue". Switching compiler is enough for
getting trouble.

 Please, beware! I'd say; that stay away from "int" altogether.
 IMO "unsigned long" is a better choice here, unless
WINDOWS/Netware/<whatever> uses something else that has a better match.

Reference:
 The ANSI C Programming Language,
 Kernighan/Ritchie,
 Prentice Hall,
 ISBN 0-13-110362-8 (pbk),

 The index gives these;
 p 9 last paragraph,
 p 36 one third down the page,
 p 211 middle paragraph.

/Hannu E K Nevalainen, Mariefred, Sweden - M68K assembler, C/C++, B.Sc. EE
soon

--END OF MESSAGE--


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019