?? swkproto.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: %M%
*
* Identification: %Z% %I% %M%
*
* Date: %G% %U%
*
****************************************************************************
*/
/* $Id: swkproto.h,v 1.7 1993/12/31 18:22:33 robert Exp $ */
/*
* Copyrighted as an unpublished work.
* (c) Copyright Lachman Technology, Inc. 1993
* 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.
*/
#ifndef __SWKPROTO_H
#define __SWKPROTO_H
#ifdef __cplusplus
extern "C" {
#endif
/*
* STREAMS message passing functions.
*/
int swk_init_msgqueue(void);
int swk_send_request(struct swk_request *);
int swk_send_interrupt(struct swk_irq_req *);
struct swk_gen_msg *swk_get_request(long, struct swk_gen_msg *);
void swk_send_reply(struct swk_request *);
/*
* STREAMS system call functions.
*/
int swk_open(struct swk_message *);
int swk_close(struct swk_message *);
int swk_kclose(struct swk_message *);
int swk_read(struct swk_message *);
int swk_write(struct swk_message *);
int swk_ioctl(struct swk_message *);
int swk_getmsg(struct swk_message *);
int swk_getpmsg(struct swk_message *);
int swk_putmsg(struct swk_message *);
int swk_putpmsg(struct swk_message *);
int swk_poll(struct swk_message *);
int swk_fcntl(struct swk_message *);
/*
* Sleep/wakeup functions.
*/
int sleep(int);
void wakeup(int);
void swk_interrupt(int);
void swk_wait_insert(struct swk_message *);
void swk_wait_remove(struct swk_message *);
struct swk_message *swk_get_ready(void);
/*
* Timeout/untimeout functions.
*/
int timeout(void (*)(), long, long);
void untimeout(unsigned int);
/*
* File descriptor functions.
*/
int swk_devtofd(dev_t);
int swk_setfd(int, dev_t);
void swk_freefd(int);
dev_t swk_fdtodev(int);
#ifdef __cplusplus
}
#endif
#endif /* __SWKPROTO_H */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -