This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] SPU use 4 bytes for uid_t, gid_t and dev_t


On Tue, Sep 11, 2007 at 12:28:22PM -0400, Jeff Johnston wrote:
> My take is to treat these types like _fpos_t.  I suggest using double 
> underscores for the new types: __uid_t, __gid_t, and __dev_t.  Define 
> defaults in sys/_types.h as is done for the other types.  In 
> sys/types.h, simply do typedef __uid_t uid_t; etc... where they are 
> found.  Leave special cases alone for the mean-time (e.g. RTEMS).
> 
> In spu/machine/_types.h define the desired __uid_t, etc...
> 
> Regarding consistency of flag names, we can lower-case all the new ones 
> recently added since spu is the only one using them at present.  So, an 
> example of a new flag would be: __gid_t_defined and an old one would now 
> be __fpos_t_defined.

OK ... crossed paths there, I will repost a third version with lower case
#defines, and use __uid_t etc.

-- Patrick Mansfield


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]