example from FreeBSD:

http://src.illumos.org/source/xref/freebsd-head/sys/sys/types.h#65 
<http://src.illumos.org/source/xref/freebsd-head/sys/sys/types.h#65>

Linux:
http://src.illumos.org/source/xref/linux-master/include/linux/types.h#106 
<http://src.illumos.org/source/xref/linux-master/include/linux/types.h#106>

NetBSD:
http://src.illumos.org/source/xref/netbsd-src/sys/sys/types.h#93 
<http://src.illumos.org/source/xref/netbsd-src/sys/sys/types.h#93>

as you can see - they are types at file sys/types.h

-Igor

> On Oct 1, 2017, at 8:12 PM, [email protected] wrote:
> 
> 
> 
> On Sun, 1 Oct 2017, Igor Kozhukhov wrote:
> 
>> Hi All,
>> i’d like proposed try to update sys/typs.h by changes what are available in 
>> FreeBSD for
>> better portality:
>> igor@z172:~/users/igor/dilos-illumos$ g diff
>> diff --git a/usr/src/uts/common/sys/types.h b/usr/src/uts/common/sys/types.h
>> index dcb2c86283..a2e37263b8 100644
>> --- a/usr/src/uts/common/sys/types.h
>> +++ b/usr/src/uts/common/sys/types.h
>> @@ -58,6 +58,11 @@
>>  #include <sys/types32.h>
>>  #endif
>>  
>> +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
>> i have found several userland apps what are needs where changes and I 
>> understand - they
>> are deprocated, but it can helps and reduce additional patches in userland 
>> apps with
>> portability and builds based on illumos env.
> 
>  For my information, do these apps expect these types to be in sys/types.h, 
> or do they expect them elsewhere (say in linux/types.h, or some other header 
> file)?
> 
> rf
> 
>> If you are agreed - i can file a bug for it.
>> best regards,
>> -Igor
>> illumos-developer | Archives | Powered by Topicbox
>> 
> ------------------------------------------
> illumos-developer
> Archives: 
> https://illumos.topicbox.com/groups/developer/discussions/T49e04d512870b674-Mf1e85fecb1a12a6e6a2d1ee4
>  
> <https://illumos.topicbox.com/groups/developer/discussions/T49e04d512870b674-Mf1e85fecb1a12a6e6a2d1ee4>
> Powered by Topicbox: https://topicbox.com <https://topicbox.com/>

------------------------------------------
openzfs-developer
Archives: 
https://openzfs.topicbox.com/groups/developer/discussions/T0cc9a914d001ea54-M94ee1961f145f7021d845fe7
Powered by Topicbox: https://topicbox.com

Reply via email to