> On Oct 5, 2017, at 12:05 AM, Gary Mills <gary_mi...@fastmail.fm> wrote: > > On Sun, Oct 01, 2017 at 07:25:55PM +0300, Igor Kozhukhov wrote: >> >> i'd like proposed try to update sys/typs.h by changes what are >> available in FreeBSD for better portality: > > Surely you mean /usr/include/sys/int_types.h . That's where the other > integer types are defined. > >> +typedef uint8_t u_int8_t; /* unsigned integrals >> (deprecated) */ >> +typedef uint16_t u_int16_t; >> +typedef uint32_t u_int32_t; >> +typedef uint64_t u_int64_t; >> + >> #ifdef __cplusplus >> extern "C" { >> #endif > > Could this design result in a circular dependancy? If so, you might > be better to typedef them in terms of fundamental types, like `int' > instead, the same as is done for `uint32_t’.
Gary, i have tested my changes with couple of userland components from Debian upstream + i have fixed dilos-illumos bulid with these proposed changes - i have no found degradations in userland builds and i have no circular dependencies. my changes and this proposal based on FreeBSD and NetBSD definitions what i posyed in this thread. all works fine to me and i’ll continue to use it with DilOS, but i wanted propose tested changes to illumos by this thread. -Igor > > -- > -Gary Mills- -refurb- -Winnipeg, Manitoba, Canada- ------------------------------------------ openzfs-developer Archives: https://openzfs.topicbox.com/groups/developer/discussions/T0cc9a914d001ea54-Ma4fbb3542fd968d92d3d2523 Powered by Topicbox: https://topicbox.com