Back to index

glibc  2.9
socketcall.h
Go to the documentation of this file.
00001 /* ID for functions called via socketcall system call.
00002    Copyright (C) 1995, 1996, 2008 Free Software Foundation, Inc.
00003    This file is part of the GNU C Library.
00004 
00005    The GNU C Library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Lesser General Public
00007    License as published by the Free Software Foundation; either
00008    version 2.1 of the License, or (at your option) any later version.
00009 
00010    The GNU C Library is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013    Lesser General Public License for more details.
00014 
00015    You should have received a copy of the GNU Lesser General Public
00016    License along with the GNU C Library; if not, write to the Free
00017    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
00018    02111-1307 USA.  */
00019 
00020 #ifndef _SYS_SOCKETCALL_H
00021 #define _SYS_SOCKETCALL_H   1
00022 
00023 /* Define unique numbers for the operations permitted on socket.  Linux
00024    uses a single system call for all these functions.  The relevant code
00025    file is /usr/include/linux/net.h.
00026    We cannot use a enum here because the values are used in assembler
00027    code.  */
00028 
00029 #define SOCKOP_socket              1
00030 #define SOCKOP_bind         2
00031 #define SOCKOP_connect             3
00032 #define SOCKOP_listen              4
00033 #define SOCKOP_accept              5
00034 #define SOCKOP_getsockname  6
00035 #define SOCKOP_getpeername  7
00036 #define SOCKOP_socketpair   8
00037 #define SOCKOP_send         9
00038 #define SOCKOP_recv         10
00039 #define SOCKOP_sendto              11
00040 #define SOCKOP_recvfrom            12
00041 #define SOCKOP_shutdown            13
00042 #define SOCKOP_setsockopt   14
00043 #define SOCKOP_getsockopt   15
00044 #define SOCKOP_sendmsg             16
00045 #define SOCKOP_recvmsg             17
00046 #define SOCKOP_paccept             18
00047 
00048 #endif /* sys/socketcall.h */