Changeset 71b00dcc in mainline for uspace/srv/net/include/byteorder.h


Ignore:
Timestamp:
2010-03-07T22:51:38Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60ab6c3
Parents:
b5cbff4 (diff), 31c80a5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/include/byteorder.h

    rb5cbff4 r71b00dcc  
    4242
    4343
    44 /** Converts the given short number ( 16 bit ) from the host byte order to the network byte order ( big endian ).
     44/** Converts the given short number (16 bit) from the host byte order to the network byte order (big endian).
    4545 *  @param[in] number The number in the host byte order to be converted.
    4646 *  @returns The number in the network byte order.
    4747 */
    48 #define htons( number )         host2uint16_t_be( number )
     48#define htons(number)           host2uint16_t_be(number)
    4949
    50 /** Converts the given long number ( 32 bit ) from the host byte order to the network byte order ( big endian ).
     50/** Converts the given long number (32 bit) from the host byte order to the network byte order (big endian).
    5151 *  @param[in] number The number in the host byte order to be converted.
    5252 *  @returns The number in the network byte order.
    5353 */
    54 #define htonl( number )         host2uint32_t_be( number )
     54#define htonl(number)           host2uint32_t_be(number)
    5555
    56 /** Converts the given short number ( 16 bit ) from the network byte order ( big endian ) to the host byte order.
     56/** Converts the given short number (16 bit) from the network byte order (big endian) to the host byte order.
    5757 *  @param[in] number The number in the network byte order to be converted.
    5858 *  @returns The number in the host byte order.
    5959 */
    60 #define ntohs( number )         uint16_t_be2host( number )
     60#define ntohs(number)   uint16_t_be2host(number)
    6161
    62 /** Converts the given long number ( 32 bit ) from the network byte order ( big endian ) to the host byte order.
     62/** Converts the given long number (32 bit) from the network byte order (big endian) to the host byte order.
    6363 *  @param[in] number The number in the network byte order to be converted.
    6464 *  @returns The number in the host byte order.
    6565 */
    66 #define ntohl( number )         uint32_t_be2host( number )
     66#define ntohl(number)           uint32_t_be2host(number)
    6767
    6868#endif
Note: See TracChangeset for help on using the changeset viewer.