Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: native_client_sdk/src/libraries/third_party/newlib-extras/netinet/in.h

Issue 22625004: Adds htonl, htons, ntohl, and ntohs to newlib (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gethostbyname
Patch Set: Fixed Merge Conflict with Master Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « native_client_sdk/src/libraries/third_party/newlib-extras/arpa/inet.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 1982, 1986, 1990, 1993 2 * Copyright (c) 1982, 1986, 1990, 1993
3 * The Regents of the University of California. All rights reserved. 3 * The Regents of the University of California. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 #define sintosa(sin) ((struct sockaddr *)(sin)) 555 #define sintosa(sin) ((struct sockaddr *)(sin))
556 #define ifatoia(ifa) ((struct in_ifaddr *)(ifa)) 556 #define ifatoia(ifa) ((struct in_ifaddr *)(ifa))
557 557
558 #endif /* _KERNEL */ 558 #endif /* _KERNEL */
559 559
560 /* INET6 stuff */ 560 /* INET6 stuff */
561 #define __KAME_NETINET_IN_H_INCLUDED_ 561 #define __KAME_NETINET_IN_H_INCLUDED_
562 #include <netinet6/in6.h> 562 #include <netinet6/in6.h>
563 #undef __KAME_NETINET_IN_H_INCLUDED_ 563 #undef __KAME_NETINET_IN_H_INCLUDED_
564 564
565 __BEGIN_DECLS
566 uint32_t htonl(uint32_t hostlong);
567 uint16_t htons(uint16_t hostshort);
568 uint32_t ntohl(uint32_t networklong);
569 uint16_t ntohs(uint16_t networkshort);
570 __END_DECLS
571
565 #endif /* !_NETINET_IN_H_*/ 572 #endif /* !_NETINET_IN_H_*/
OLDNEW
« no previous file with comments | « native_client_sdk/src/libraries/third_party/newlib-extras/arpa/inet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698