mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 19:41:34 +07:00
61730c538f
Signed-off-by: David Howells <dhowells@redhat.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Michael Kerrisk <mtk.manpages@gmail.com> Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: Dave Jones <davej@redhat.com>
51 lines
1.3 KiB
C
51 lines
1.3 KiB
C
/*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 1997, 1999, 2000, 2001 Ralf Baechle
|
|
* Copyright (C) 2000, 2001 Silicon Graphics, Inc.
|
|
*/
|
|
#ifndef _ASM_SOCKET_H
|
|
#define _ASM_SOCKET_H
|
|
|
|
#include <uapi/asm/socket.h>
|
|
|
|
|
|
/** sock_type - Socket types
|
|
*
|
|
* Please notice that for binary compat reasons MIPS has to
|
|
* override the enum sock_type in include/linux/net.h, so
|
|
* we define ARCH_HAS_SOCKET_TYPES here.
|
|
*
|
|
* @SOCK_DGRAM - datagram (conn.less) socket
|
|
* @SOCK_STREAM - stream (connection) socket
|
|
* @SOCK_RAW - raw socket
|
|
* @SOCK_RDM - reliably-delivered message
|
|
* @SOCK_SEQPACKET - sequential packet socket
|
|
* @SOCK_PACKET - linux specific way of getting packets at the dev level.
|
|
* For writing rarp and other similar things on the user level.
|
|
*/
|
|
enum sock_type {
|
|
SOCK_DGRAM = 1,
|
|
SOCK_STREAM = 2,
|
|
SOCK_RAW = 3,
|
|
SOCK_RDM = 4,
|
|
SOCK_SEQPACKET = 5,
|
|
SOCK_DCCP = 6,
|
|
SOCK_PACKET = 10,
|
|
};
|
|
|
|
#define SOCK_MAX (SOCK_PACKET + 1)
|
|
/* Mask which covers at least up to SOCK_MASK-1. The
|
|
* * remaining bits are used as flags. */
|
|
#define SOCK_TYPE_MASK 0xf
|
|
|
|
/* Flags for socket, socketpair, paccept */
|
|
#define SOCK_CLOEXEC O_CLOEXEC
|
|
#define SOCK_NONBLOCK O_NONBLOCK
|
|
|
|
#define ARCH_HAS_SOCKET_TYPES 1
|
|
|
|
#endif /* _ASM_SOCKET_H */
|