dect
/
libnl
Archived
13
0
Fork 0
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
libnl/lib/route/link
Коренберг Марк (дома) ab15d06d13 "%llu" replaced with "%" PRIu64
On some architectures, uint64_t is defined as:

typedef unsigned long long int __u64;

on another architectures as:

typedef unsigned long int __u64;

So, according to man 3 printf,
uint64_t should be printed as "%llu" on some architectures, and as "%lu" on another. The same for scanf.

To eliminate that challenge, there is inttypes.h, in which appropriate constants
are defined for current architecture.

32-bit types (and even 16 and 8 bit types) should be printed using such constants if
printed variable defined as uint_XXXt or intXXXt type. But in reality 32-bit and less
types does not gain run-time error (except in scanf), because they pushed to stack as
32-bit values at least. So, I decide not to fix that.
2012-08-30 03:19:04 +06:00
..
api.c link: AF_INET link module 2010-11-16 12:41:43 +01:00
bonding.c rtnl_link_bond_add: allow to allocate bond name in case NULL is given 2011-11-11 16:24:53 +01:00
bridge.c link/api: Improve API documentation. 2010-11-11 16:38:53 +01:00
dummy.c Updated link documentation 2011-07-28 16:23:57 +02:00
inet.c Expose <netlink/route/link/inet.h> 2011-04-20 11:53:04 +02:00
inet6.c "%llu" replaced with "%" PRIu64 2012-08-30 03:19:04 +06:00
vlan.c Fix types-related warnings based on clang diagnostics 2012-06-13 13:30:26 +02:00