Changeset 2687bdb in mainline for uspace/lib/c/include/byteorder.h


Ignore:
Timestamp:
2010-10-06T19:31:28Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e4554d4
Parents:
fe5d3c1b
Message:

No need to maintain a separate net_byteorder.h.
Integrate its functionality into the standard byteorder.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/byteorder.h

    rfe5d3c1b r2687bdb  
    8080#endif
    8181
     82#define htons(n)        host2uint16_t_be((n))
     83#define htonl(n)        host2uint32_t_be((n))
     84#define ntohs(n)        uint16_t_be2host((n))
     85#define ntohl(n)        uint32_t_be2host((n))
     86
    8287static inline uint64_t uint64_t_byteorder_swap(uint64_t n)
    8388{
Note: See TracChangeset for help on using the changeset viewer.