⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 sysproto.h

📁 T-kernel Tcp/ip Protocol Stack Sample
💻 H
字号:
/**************************************************************************** * Copyright (C) 2001-2004 MITSUBISHI ELECTRIC CORPORATION and * RENESAS SOLUTIONS CORPORATION * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright *    notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *	This product includes software developed by the University of *	California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. ****************************************************************************//* * System call prototypes. * * DO NOT EDIT-- this file is automatically generated. * created from	Id: syscalls.master,v 1.29.2.1 1997/05/03 11:09:38 peter Exp  */#ifndef _SYS_SYSPROTO_H_#define	_SYS_SYSPROTO_H_struct	read_args {	int fd;	char * buf;	u_int nbyte;};struct	write_args {	int fd;	char * buf;	u_int nbyte;};struct	close_args {	int fd;};struct	recvfrom_args {	int s;	caddr_t buf;	size_t len;	int flags;	caddr_t from;	int * fromlenaddr;};struct	accept_args {	int s;	caddr_t name;	int * anamelen;};struct	getpeername_args {	int fdes;	caddr_t asa;	int * alen;};struct	getsockname_args {	int fdes;	caddr_t asa;	int * alen;};struct	ioctl_args {	int fd;	u_long com;	caddr_t data;};struct	socket_args {	int domain;	int type;	int protocol;};struct	connect_args {	int s;	caddr_t name;	int namelen;};struct	bind_args {	int s;	caddr_t name;	int namelen;};struct	setsockopt_args {	int s;	int level;	int name;	caddr_t val;	int valsize;};struct	listen_args {	int s;	int backlog;};struct	getsockopt_args {	int s;	int level;	int name;	caddr_t val;	int * avalsize;};struct	sendto_args {	int s;	caddr_t buf;	size_t len;	int flags;	caddr_t to;	int tolen;};struct	shutdown_args {	int s;	int how;};struct	socketpair_args {	int domain;	int type;	int protocol;	int * rsv;};struct	getdomainname_args {	char * domainname;	int len;};struct	setdomainname_args {	char * domainname;	int len;};struct  osend_args {        int s;        caddr_t buf;        int len;        int flags;};struct  orecv_args {        int s;        caddr_t buf;        int len;        int flags;};struct  ogetpeername_args {        int fdes;        caddr_t asa;        int * alen;};/***** for etc_hosts handling ****/struct sethostent_args {        char *hostname;        char *alias1;        char *alias2;        char *addr;};struct gethostent_args {        char *hostname;        char *alias1;        char *alias2;        u_int addr;	int  len;	int  af;};/***** for etc_hosts handling ****//***** for etc_services handling ****/struct setservent_args {	char *servname;	char *alias1;	char *alias2;	int  port;	char *proto;};/***** for etc_services handling ****/#if defined(T_KERNEL)int	_unix_socket __P((int, int, int));int	_unix_bind __P((int, struct sockaddr *, int));int	_unix_listen __P((int, int));int	_unix_accept __P((int, struct sockaddr *, int *));int	_unix_connect __P((int, struct sockaddr *, int));int	_unix_socketpair __P((int, int, int, int *));int	_unix_sendto __P((int, caddr_t, size_t, int, struct sockaddr *, int));int	_unix_send __P((int, caddr_t, int, int));int	_unix_recvfrom __P((int, caddr_t, size_t, int, struct sockaddr *, int *));int	_unix_recv __P((int, caddr_t, int, int));int	_unix_shutdown __P((int, int));int	_unix_setsockopt __P((int, int, int, caddr_t, int));int	_unix_getsockopt __P((int, int, int, caddr_t, int *));int	_unix_getsockname __P((int, struct sockaddr *, int *));int	_unix_getpeername __P((int, struct sockaddr *, int *));int	_unix_read __P((int, char *, u_int));int	_unix_write __P((int, char *, u_int));int	_unix_close __P((int));int	_unix_ioctl __P((int, unsigned int, caddr_t));int oaccept __P((int, struct sockaddr *, int *));int orecvfrom __P((int, caddr_t, size_t, int, struct sockaddr *, int *));int ogetsockname __P((int, struct sockaddr *, int *));int ogetpeername __P((int, struct sockaddr *, int *));#elif defined(ITRON3)int	unix_socket __P((int, int, int));int	unix_bind __P((int, struct sockaddr *, int));int	unix_listen __P((int, int));int	unix_accept __P((int, struct sockaddr *, int *));int	unix_connect __P((int, struct sockaddr *, int));int	unix_socketpair __P((int, int, int, int *));int	unix_sendto __P((int, caddr_t, size_t, int, struct sockaddr *, int));int	unix_send __P((int, caddr_t, int, int));int	unix_recvfrom __P((int, caddr_t, size_t, int, struct sockaddr *, int *));int	unix_recv __P((int, caddr_t, int, int));int	unix_shutdown __P((int, int));int	unix_setsockopt __P((int, int, int, caddr_t, int));int	unix_getsockopt __P((int, int, int, caddr_t, int *));int	unix_getsockname __P((int, struct sockaddr *, int *));int	unix_getpeername __P((int, struct sockaddr *, int *));int	unix_read __P((int, char *, u_int));int	unix_write __P((int, char *, u_int));int	unix_close __P((int));int	unix_ioctl __P((int, unsigned int, caddr_t));int oaccept __P((int, struct sockaddr *, int *));int orecvfrom __P((int, caddr_t, size_t, int, struct sockaddr *, int *));int ogetsockname __P((int, struct sockaddr *, int *));int ogetpeername __P((int, struct sockaddr *, int *));#elseint	socket __P((int, int, int));int	bind __P((int, struct sockaddr *, int));int	listen __P((int, int));int	accept __P((int, struct sockaddr *, int *));int	connect __P((int, struct sockaddr *, int));int	socketpair __P((int, int, int, int *));int	sendto __P((int, caddr_t, size_t, int, struct sockaddr *, int));int	send __P((int, caddr_t, int, int));int	recvfrom __P((int, caddr_t, size_t, int, struct sockaddr *, int *));int	recv __P((int, caddr_t, int, int));int	shutdown __P((int, int));int	setsockopt __P((int, int, int, caddr_t, int));int	getsockopt __P((int, int, int, caddr_t, int *));int	getsockname __P((int, struct sockaddr *, int *));int	getpeername __P((int, struct sockaddr *, int *));int	read __P((int, char *, u_int));int	write __P((int, char *, u_int));int	close __P((int));int	ioctl __P((int, int, caddr_t));int oaccept __P((int, struct sockaddr *, int *));int orecvfrom __P((int, caddr_t, size_t, int, struct sockaddr *, int *));int ogetsockname __P((int, struct sockaddr *, int *));int ogetpeername __P((int, struct sockaddr *, int *));#endif /* T_KERNEL */#endif /* !_SYS_SYSPROTO_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -