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

📄 swkdefs.h

📁 VRTX 商用嵌入式实时操作系统
💻 H
字号:
/***************************************************************************
*
*               Copyright (c) 1993 READY SYSTEMS CORPORATION.
*
*       All rights reserved. READY SYSTEMS' source code is an unpublished
*       work and the use of a copyright notice does not imply otherwise.
*       This source code contains confidential, trade secret material of
*       READY SYSTEMS. Any attempt or participation in deciphering, decoding,
*       reverse engineering or in any way altering the source code is
*       strictly prohibited, unless the prior written consent of
*       READY SYSTEMS is obtained.
*
*
*       Module Name:            swkdefs.h
*
*       Identification:         @(#) 1.6 swkdefs.h
*
*       Date:                   1/10/94  11:21:36
*
****************************************************************************
*/

/*
 RCS header identifier - $Id: swkdefs.h,v 1.6 1993/09/19 21:42:27 robert Exp $
*/
/*
 * Copyrighted as an unpublished work.
 * (c) Copyright 1993 Lachman Technology, Incorporated
 * All rights reserved.
 * 
 * RESTRICTED RIGHTS
 * 
 * These programs are supplied under a license.  They may be used,
 * disclosed, and/or copied only as permitted under such license
 * agreement.  Any copy must contain the above copyright notice and
 * this restricted rights notice.  Use, copying, and/or disclosure
 * of the programs is strictly prohibited unless otherwise provided
 * in the license agreement.
 */

/*******************************************************************************
 * swkdefs.h
 */

#ifndef __SWKDEFS_H
#define __SWKDEFS_H

#ifdef __cplusplus
extern "C" {
#endif

#include "exec/device.h"

#ifndef NULL
#define NULL		0
#endif /* NULL */
/* #define FP_NULL		((void *)0) */

#ifdef KERNEL
#define BUFCALLIDS	32	/* max number of bufcall entries */
#define IOCIDS		32	/* max number of ioctl IDs */
#define MXIDS		32	/* max number of lower streams */
#define PMXIDS		32	/* max number of persistent links */
#define MXPERSTID	0x0100	/* added to persistant link mxid */

#define SUCCESS		0
#define FAILURE		(-1)
#define OPENFAIL	(-1)

#define PANIC()			exit()

#else	/* KERNEL */

struct strbuf;
struct pollfd;

/*
 * system call function templates
 */
int getmsg (int, struct strbuf *, struct strbuf *, int *);
int getpmsg (int, struct strbuf *, struct strbuf *, int *, int *);
int poll (struct pollfd *, size_t, long);
int putpmsg (int, const struct strbuf *, const struct strbuf *, int, int);
int putmsg (int, const struct strbuf *, const struct strbuf *, int);

#endif	/* KERNEL */

#ifdef __cplusplus
}
#endif

#endif	/* __SWKDEFS_H */

⌨️ 快捷键说明

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