summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/include/asm/byteorder.h
Commit message (Collapse)AuthorAgeFilesLines
* Switching the Cygwin DLL to LGPLv3+, dropping commercial buyout optioncygwin-2_5_2-releaseCorinna Vinschen2016-06-231-2/+0
| | | | | | | | | | | | | | Bump GPLv2+ to GPLv3+ for some files, clarify BSD 2-clause. Everything else stays under GPLv3+. New Linking Exception exempts resulting executables from LGPLv3 section 4. Add CONTRIBUTORS file to keep track of licensing. Remove 'Copyright Red Hat Inc' comments. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
* BSD compatibility for <machine/endian.h>Sebastian Huber2016-04-191-23/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce <machine/_endian.h> to let target based customization of <machine/endian.h> via * _LITTLE_ENDIAN, * _BIG_ENDIAN, * _PDP_ENDIAN, and * _BYTE_ORDER. defines. Add definitions expected by FreeBSD to <machine/endian.h> like * _QUAD_HIGHWORD, * _QUAD_LOWWORD, * __bswap16(), * __bswap32(), * __bswap64(), * __htonl(), * __htons(), * __ntohl(), and * __ntohs(). Also, if __BSD_VISIBLE * LITTLE_ENDIAN, * BIG_ENDIAN, * PDP_ENDIAN, and * BYTE_ORDER. Targets that define __machine_host_to_from_network_defined in <machine/_endian.h> must provide their own implementation of * __htonl(), * __htons(), * __ntohl(), and * __ntohs(), otherwise a default implementation is provided by <machine/endian.h>. In case of GCC defines to builtins are used. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
* * Merge in cygwin-64bit-branch.Corinna Vinschen2013-04-231-7/+3
|
* Throughout, update copyrights to reflect dates which correspond to main-branchChristopher Faylor2013-01-211-1/+1
| | | | checkins. Regularize copyright format.
* * include/endian.h: Move definitions of __BIG_ENDIAN, __LITTLE_ENDIAN,Corinna Vinschen2011-02-111-5/+2
| | | | | | | | | | | | | | | | | | and __BYTE_ORDER into ... * include/bits/endian.h: New file. * include/arpa/nameser_compat.h: Include endian.h rather than defining BYTE_ORDER here. * include/asm/byteorder.h: Include bits/endian.h. Drop definition of __LITTLE_ENDIAN. * include/netinet/ip.h: Include bits/endian.h. Drop definitions of BIG_ENDIAN, LITTLE_ENDIAN, and BYTE_ORDER. Use underscored variants of aforementioned constants. * include/netinet/tcp.h: Ditto. * include/sys/param.h: Drop disabled definitions of BIG_ENDIAN, LITTLE_ENDIAN, and BYTE_ORDER. * include/netinet/ip.h: Reformat. Define setsockopt IP_TOS options matching recent RFCs. Tweak comments.
* * include/asm/byteorder.h (__ntohl): Prototype before define to avoidCorinna Vinschen2009-04-041-8/+6
| | | | | | a warning with -Wmissing-prototypes. Use _ELIDABLE_INLINE macro from _ansi.h. (__ntohs): Ditto.
* * include/asm/byteorder.h (__ntohl): Align definition to ISO C99.Corinna Vinschen2009-03-261-5/+8
| | | | (__ntohs): Ditto.
* * include/asm/byteorder.h (__constant_ntohs): Remove declaration.Corinna Vinschen2009-03-231-2/+0
| | | | (__constant_ntohl): Ditto.
* * net.cc: Include asm/byteorder.h.Corinna Vinschen2009-03-031-2/+1
| | | | | | | | | (htonl): Move to end of file. Add comment to explain why. Align definition to POSIX. Use related macro from asm/byteorder.h. (ntohl): Ditto. (htons): Ditto. (ntohs): Ditto. * include/asm/byteorder.h: Revert previous patch.
* * include/asm/byteorder.h: Disable optimization when buildingCorinna Vinschen2009-03-031-2/+3
| | | | Cygwin network code.
* * include/asm/byteorder.h: Fix copyright dates.Corinna Vinschen2006-10-161-1/+1
| | | | Fix typos in ChangeLog.
* * byteorder.h: Correct typo.Christopher Faylor2006-09-171-1/+1
|
* * byteorder.h: Don't #define n* macros if -fnoinline is specified.Christopher Faylor2006-09-171-1/+1
|
* * include/asm/byteorder.h (__ntohl): Fix the missing uint32_t.Corinna Vinschen2006-04-211-1/+1
|
* * include/asm/byteorder.h: Include stdint.h. Per standard, changeCorinna Vinschen2006-04-211-26/+19
| | | | datatypes in ntohX and htonX functions to uintXX_t types.
* * include/a.out.h: Add copyright hint.Corinna Vinschen2001-03-051-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * include/fcntl.h: Ditto. * include/lastlog.h: Ditto. * include/memory.h: Ditto. * include/mntent.h: Ditto. * include/paths.h: Ditto. * include/poll.h: Ditto. * include/syslog.h: Ditto. * include/termio.h: Ditto. * include/tzfile.h: Ditto. * include/arpa/inet.h: Ditto. * include/asm/byteorder.h: Ditto. * include/asm/socket.h: Ditto. * include/asm/types.h: Ditto. * include/cygwin/if.h: Ditto. * include/cygwin/mtio.h: Ditto. * include/cygwin/rdevio.h: Ditto. * include/cygwin/socket.h: Ditto. * include/net/if.h: Ditto. * include/netinet/in.h: Ditto. * include/netinet/in_systm.h: Ditto. * include/netinet/ip.h: Ditto. * include/netinet/ip_icmp.h: Ditto. * include/netinet/tcp.h: Ditto. * include/sys/cdefs.h: Ditto. * include/sys/cygwin.h: Ditto. * include/sys/ioctl.h: Ditto. * include/sys/mman.h: Ditto. * include/sys/mount.h: Ditto. * include/sys/mtio.h: Ditto. * include/sys/procfs.h: Ditto. * include/sys/resource.h: Ditto. * include/sys/smallprint.h: Ditto. * include/sys/socket.h: Ditto. * include/sys/strace.h: Ditto. * include/sys/syslog.h: Ditto. * include/sys/sysmacros.h: Ditto. * include/sys/termio.h: Ditto. * include/sys/termios.h: Ditto. * include/sys/uio.h: Ditto. * include/sys/un.h: Ditto. * include/sys/utsname.h: Ditto. * include/sys/vfs.h: Ditto. * include/sys/wait.h: Ditto. * regexp/regerror.c: Ditto. * regexp/regexp.h: Ditto. * regexp/regmagic.h: Ditto.
* import winsup-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+93