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

📄 ss_strm.x

📁 中国石油二期加油站IC系统后台通讯软件
💻 X
字号:

/********************************************************************20**
 
     Name:     System Services -- STREAMS
 
     Type:     C include file
 
     Desc:     Data structure definitions for STREAMS messages.
 
     File:     ss_strm.x
 
     Sid:      ss_strm.x 1.2  -  08/11/98 10:47:26
 
     Prg:      kp
 
*********************************************************************21*/


#ifndef __SSSTRMX__
#define __SSSTRMX__

#ifdef __cplusplus
extern "C" {
#endif


/* message block is defined in ssi.x */
    typedef struct ssmsgb    SsMblk;



/* data block */
    struct ssdatab
    {
        struct ssfree_rtn    *db_frtnp;              /* free routine */
        U8                   *db_base;               /* base of data buffer */
        U8                   *db_lim;                /* limit of data buffer */
        U8                   db_ref;                 /* reference count */
        U8                   db_type;                /* type of data block */
    };

    typedef struct ssdatab   SsDblk;



/* to free memory used with esballoc() */
    struct ssfree_rtn
    {
        void                 (*free_func)(char *);   /* free function */
        char                 *free_arg;              /* argument to function */
    };

    typedef struct ssfree_rtn SsFrtn;



/* STREAMS functions prototypes */
    PUBLIC S16      ssStrmCfg ARGS((Region, Region));
    PUBLIC S32      ssAdjMsg ARGS((SsMblk *, S32));
    PUBLIC SsMblk   *ssAllocB ARGS((S32, U32));
    PUBLIC SsMblk   *ssCopyB ARGS((SsMblk *));
    PUBLIC SsMblk   *ssCopyMsg ARGS((SsMblk *));
    PUBLIC SsMblk   *ssDupB ARGS((SsMblk *));
    PUBLIC SsMblk   *ssDupMsg ARGS((SsMblk *));
    PUBLIC SsMblk   *ssESBAlloc ARGS((U8 *, S32, S32, SsFrtn *));
    PUBLIC void     ssFreeB ARGS((SsMblk *));
    PUBLIC void     ssFreeMsg ARGS((SsMblk *));
    PUBLIC void     ssLinkB ARGS((SsMblk *, SsMblk *));
    PUBLIC S32      ssMsgDSize ARGS((SsMblk *));
    PUBLIC S32      ssPullupMsg ARGS((SsMblk *, S32));
    PUBLIC SsMblk   *ssRmvB ARGS((SsMblk *, SsMblk *));
    PUBLIC S32      ssTestB ARGS((S32, U32));
    PUBLIC SsMblk   *ssUnlinkB ARGS((SsMblk *));


#ifdef __cplusplus
}
#endif

#endif  /*  __SSSTRMX__  */


  
/********************************************************************30**

         End of file: ss_strm.x 1.2  -  08/11/98 10:47:26

*********************************************************************31*/


/********************************************************************40**

        Notes:

*********************************************************************41*/

/********************************************************************50**

*********************************************************************51*/

   
/********************************************************************60**

        Revision history:

*********************************************************************61*/

/********************************************************************90**
 
     ver       pat    init                  description
------------ -------- ---- ----------------------------------------------
1.1          ---      kp   1. initial release

1.2          ---      kp   1. C++ compilable, cosmetic changes

*********************************************************************91*/

⌨️ 快捷键说明

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