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

📄 pppmisc.h

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的操作系统pSOS。包括全部源码
💻 H
字号:
/************************************************************************//*                                                                      *//*   MODULE:  pppmisc.h                                                 *//*   PRODUCT: pNA+, OpEN TCP/IP PPP driver                              *//*   PURPOSE: PPPMISC module                                            *//*   DATE:    28 February, 1996                                         *//*                                                                      *//*----------------------------------------------------------------------*//*                                                                      *//*              Copyright 1996, Integrated Systems, Inc.                *//*                      ALL RIGHTS RESERVED                             *//*                                                                      *//*   Permission is hereby granted to licensees of Integrated Systems,   *//*   Inc. products to use or abstract this computer program for the     *//*   sole purpose of implementing a product based on Integrated         *//*   Systems, Inc. products.   No other rights to reproduce, use,       *//*   or disseminate this computer program, whether in part or in        *//*   whole, are granted.                                                *//*                                                                      *//*   Integrated Systems, Inc. makes no representation or warranties     *//*   with respect to the performance of this computer program, and      *//*   specifically disclaims any responsibility for any damages,         *//*   special or consequential, connected with the use of this program.  *//*                                                                      *//************************************************************************/#ifndef __PPPMISC_H#define __PPPMISC_H#define ENQUE(p1, p2) ppp_insque((struct list **)p1, (struct list *)p2)#define DEQUE(p)      ppp_remque((struct list **)p)/*----------------------------------------------------------------------*//* structure used for pool management                                   *//*----------------------------------------------------------------------*/struct list{    struct list *next;    struct list *prev;};/*----------------------------------------------------------------------*//* structure for timer management                                       *//*----------------------------------------------------------------------*/struct callout{    struct callout *next;    /* for maintaining the list */    struct callout *prev;    int c_time;              /* incremental time */    caddr_t c_arg;           /* argument to routine */    void (*c_func)();        /* routine (changed to void (*)() */    unsigned long wait;      /* Time to wait */};extern struct callout TimeoutList;extern void ppp_insque(struct list **head, struct list *bp);extern struct list *ppp_remque(struct list **head);extern void alrm(void);/*extern void bzero(char *cp, long size);*/extern char *pmalloc(int);extern void pfree(char *);extern void pfree1(char *);extern char *pstrchr(char *, char);extern void ppp_report_error(long , unsigned long );extern void ppp_timeout(void (*)(), caddr_t , int );extern void ppp_untimeout(void (*)(), caddr_t );extern int check_passwd(long , char *, long , char *, long , char **, int *);extern int get_secret(int ,char *, char *, char *, long *, int);#endif /* __PPPMISC_H */

⌨️ 快捷键说明

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