Annotation of sbbs/sbbs2/fido/smblib.h, revision 1.1

1.1     ! root        1: /* SMBLIB.H */
        !             2: 
        !             3: #ifndef _SMBLIB_H
        !             4: #define _SMBLIB_H
        !             5: 
        !             6: #if defined(__WATCOMC__) || defined(__TURBOC__)
        !             7: #      include <io.h>
        !             8: #      include <mem.h>
        !             9: #      include <share.h>
        !            10: #else
        !            11: #      include <memory.h>
        !            12: #endif
        !            13: 
        !            14: #ifdef __WATCOMC__
        !            15: #      include <dos.h>
        !            16: #elif defined(__TURBOC__)
        !            17: #      include <dir.h>
        !            18: #endif
        !            19: 
        !            20: #include <malloc.h>
        !            21: #include <time.h>
        !            22: #include <errno.h>
        !            23: #include <fcntl.h>
        !            24: #include <stdio.h>
        !            25: #include <stdlib.h>
        !            26: #include <string.h>
        !            27: #include <sys/stat.h>
        !            28: #include <sys/types.h>
        !            29: 
        !            30: #define GLOBAL extern  /* turn smbvars.c files into header */
        !            31: 
        !            32: #include "smbvars.c"
        !            33: 
        !            34: #define SMB_STACK_LEN          4                       /* Max msg bases in smb_stack()         */
        !            35: #define SMB_STACK_POP       0           /* Pop a msg base off of smb_stack() */
        !            36: #define SMB_STACK_PUSH      1           /* Push a msg base onto smb_stack() */
        !            37: #define SMB_STACK_XCHNG     2           /* Exchange msg base w/last pushed */
        !            38: 
        !            39: int    smb_open(int retry_time);
        !            40: void   smb_close(void);
        !            41: int    smb_open_da(int retry_time);
        !            42: int    smb_open_ha(int retry_time);
        !            43: int    smb_create(ulong max_crcs, ulong max_msgs, ushort max_age, ushort attr
        !            44:                                  ,int retry_time);
        !            45: int    smb_stack(int op);
        !            46: int    smb_trunchdr(int retry_time);
        !            47: int    smb_locksmbhdr(int retry_time);
        !            48: int    smb_getstatus(smbstatus_t *status);
        !            49: int    smb_putstatus(smbstatus_t status);
        !            50: int    smb_unlocksmbhdr(void);
        !            51: int    smb_getmsgidx(smbmsg_t *msg);
        !            52: int    smb_getlastidx(idxrec_t *idx);
        !            53: uint   smb_getmsghdrlen(smbmsg_t msg);
        !            54: ulong  smb_getmsgdatlen(smbmsg_t msg);
        !            55: int    smb_lockmsghdr(smbmsg_t msg, int retry_time);
        !            56: int    smb_getmsghdr(smbmsg_t *msg);
        !            57: int    smb_unlockmsghdr(smbmsg_t msg);
        !            58: int    smb_addcrc(ulong max_crcs, ulong crc, int retry_time);
        !            59: int    smb_hfield(smbmsg_t *msg, ushort type, ushort length, void *data);
        !            60: int    smb_dfield(smbmsg_t *msg, ushort type, ulong length);
        !            61: int    smb_addmsghdr(smbmsg_t *msg, smbstatus_t *status, int storage
        !            62:                                ,int retry_time);
        !            63: int    smb_putmsg(smbmsg_t msg);
        !            64: int    smb_putmsgidx(smbmsg_t msg);
        !            65: int    smb_putmsghdr(smbmsg_t msg);
        !            66: void   smb_freemsgmem(smbmsg_t msg);
        !            67: ulong  smb_hdrblocks(ulong length);
        !            68: ulong  smb_datblocks(ulong length);
        !            69: long   smb_allochdr(ulong length);
        !            70: long   smb_fallochdr(ulong length);
        !            71: long   smb_hallochdr(ulong header_offset);
        !            72: long   smb_allocdat(ulong length, ushort headers);
        !            73: long   smb_fallocdat(ulong length, ushort headers);
        !            74: long   smb_hallocdat(void);
        !            75: int    smb_incdat(ulong offset, ulong length, ushort headers);
        !            76: int    smb_freemsg(smbmsg_t msg, smbstatus_t status);
        !            77: int    smb_freemsgdat(ulong offset, ulong length, ushort headers);
        !            78: int    smb_freemsghdr(ulong offset, ulong length);
        !            79: 
        !            80: #endif /* Don't add anything after this #endif statement */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.