GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
STRUCTS_TYPE_INT(3) FreeBSD Library Functions Manual STRUCTS_TYPE_INT(3)

structs_type_intstructs types for integral types

PDEL Library (libpdel, -lpdel)

#include <sys/types.h>
#include <pdel/structs/structs.h>
#include <pdel/structs/type/int.h>

extern const struct structs_type structs_type_char;
extern const struct structs_type structs_type_uchar;
extern const struct structs_type structs_type_hchar;
extern const struct structs_type structs_type_short;
extern const struct structs_type structs_type_ushort;
extern const struct structs_type structs_type_hshort;
extern const struct structs_type structs_type_int;
extern const struct structs_type structs_type_uint;
extern const struct structs_type structs_type_hint;
extern const struct structs_type structs_type_long;
extern const struct structs_type structs_type_ulong;
extern const struct structs_type structs_type_hlong;
extern const struct structs_type structs_type_int8;
extern const struct structs_type structs_type_uint8;
extern const struct structs_type structs_type_hint8;
extern const struct structs_type structs_type_int16;
extern const struct structs_type structs_type_uint16;
extern const struct structs_type structs_type_hint16;
extern const struct structs_type structs_type_int32;
extern const struct structs_type structs_type_uint32;
extern const struct structs_type structs_type_hint32;
extern const struct structs_type structs_type_int64;
extern const struct structs_type structs_type_uint64;
extern const struct structs_type structs_type_hint64;

The structs(3) library includes these pre-defined integral types:

For values of type char.
For values of type u_char.
For values of type u_char expressed as hexadecimal.
For values of type short.
For values of type u_short.
For values of type u_short expressed as hexadecimal.
For values of type int.
For values of type u_int.
For values of type u_int expressed as hexadecimal.
For values of type long.
For values of type u_long.
For values of type u_long expressed as hexadecimal.
For values of type int8_t.
For values of type u_int8_t.
For values of type u_int8_t expressed as hexadecimal.
For values of type int16_t.
For values of type u_int16_t.
For values of type u_int16_t expressed as hexadecimal.
For values of type int32_t.
For values of type u_int32_t.
For values of type u_int32_t expressed as hexadecimal.
For values of type int64_t.
For values of type u_int64_t.
For values of type u_int64_t expressed as hexadecimal.

: the “short”, “int”, and “long” variants have sizes that are machine dependent, because they represent primitive types whose sizes are machine dependent. Therefore, the binary encodings of these types are also machine dependent (although they are independent of byte-order).

To ensure machine independence in binary encodings, use the fixed-size “8”, “16”, “32”, and “64” variants.

libpdel(3), structs(3), structs_type(3)

The PDEL library was developed at Packet Design, LLC. http://www.packetdesign.com/

Archie Cobbs ⟨archie@freebsd.org⟩

April 22, 2002 FreeBSD 14.3-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.