home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
ddkx86v1.zip
/
DDKX86
/
H
/
NETLIB.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-04-14
|
8KB
|
169 lines
/*DDK*************************************************************************/
/* */
/* COPYRIGHT (C) Microsoft Corporation, 1989 */
/* COPYRIGHT Copyright (C) 1995 IBM Corporation */
/* */
/* The following IBM OS/2 WARP source code is provided to you solely for */
/* the purpose of assisting you in your development of OS/2 WARP device */
/* drivers. You may use this code in accordance with the IBM License */
/* Agreement provided in the IBM Device Driver Source Kit for OS/2. This */
/* Copyright statement may not be removed. */
/* */
/*****************************************************************************/
/*static char *SCCSID = "@(#)netlib.h 6.1 90/11/15";*/
/********************************************************************/
/** Microsoft OS|2 LAN Manager **/
/********************************************************************/
/*
* Function prototypes for the functions present in netlib.
*/
#ifndef API_FUNCTION
#define API_FUNCTION unsigned far pascal
#endif
#ifdef DBCS
extern char far cdecl _LeadByteTable[];
#define IS_LEAD_BYTE(c) ((_LeadByteTable)[(unsigned char)(c)])
#else
#define IS_LEAD_BYTE(c) 0
#endif
char far * cdecl allocaf(unsigned);
void cdecl brkpt(void);
unsigned short cdecl heapalloc(unsigned short);
void cdecl initdbcs(void);
int cdecl initerrmem(void);
void cdecl logerror(char far *, unsigned short, char);
void cdecl dump_fcore(unsigned char far *, unsigned);
#if defined(OS2_INCLUDED) && defined(INCL_DOSSEMAPHORES)
/* the following four function are in NET\API\UTIL */
int far pascal NetRamSemRequest(HSEM, LONG);
int far pascal NetRamSemClear(HSEM);
int far pascal NetFSRamSemRequest(PDOSFSRSEM, LONG);
int far pascal NetFSRamSemClear(PDOSFSRSEM);
#else
int far pascal NetRamSemRequest(unsigned long far *, long);
int far pascal NetRamSemClear(unsigned long far *);
int far pascal NetFSRamSemRequest(struct FSRSem far *, long);
int far pascal NetFSRamSemClear(struct FSRSem far *);
#endif
void cdecl nprintf(const char *, ...);
void cdecl nfprintf(int, const char *, ...);
int cdecl nsprintf(char far *, const char *, ...);
int cdecl x_nsprintf(char far *, const char far *, ...);
int cdecl ss_eq_ds(void);
int cdecl ss_ne_ds(void);
int cdecl sbufchkf(const char far *, unsigned short);
#ifdef DBCS
void far cdecl inidbcsf( void );
char far * far cdecl strcatf(char far *, char const far *);
char far * far cdecl strncatf(char far *, const char far *, int);
char far * far cdecl strcpyf(char far *, const char far *);
char far * far cdecl strncpyf(char far *, const char far *, int);
int far cdecl strlenf(const char far *);
int far cdecl strcmpf(const char far *, const char far *);
int far cdecl stricmpf(const char far *, const char far *);
int far cdecl strncmpf(const char far *, const char far *, int);
int far cdecl strnicmpf(const char far *, const char far *, int);
char far * far cdecl strpbrkf(const char far *, const char far *);
char far * far cdecl strrevf(char far *);
char far * far cdecl strchrf(const char far *, char);
char far * far cdecl strrchrf(const char far *, char);
int far cdecl strspnf(const char far *, const char far *);
int far cdecl strcspnf(const char far *, const char far *);
char far * far cdecl strstrf(const char far *, const char far *);
char far * far cdecl stristrf(const char far *, const char far *);
char far * far cdecl struprf(char far *);
char far * far cdecl strlwrf(char far *);
#ifndef NMPROT /* net\fileserv uses a different memcpyf function thus
this was needed */
char far * far cdecl memcpyf(char far *, const char far *, unsigned);
#else
char far * cdecl memcpyf(char far *, const char far *, unsigned);
#endif
int far cdecl memcmpf(const char far *, const char far *, unsigned);
char far * far cdecl memsetf(char far *, int, unsigned);
char far * far cdecl strtokf( char far *, char far * );
#else
char far * cdecl strcatf(char far *, char const far *);
char far * cdecl strncatf(char far *, const char far *, int);
char far * cdecl strcpyf(char far *, const char far *);
char far * cdecl strncpyf(char far *, const char far *, int);
int cdecl strlenf(const char far *);
int cdecl strcmpf(const char far *, const char far *);
int cdecl stricmpf(const char far *, const char far *);
int cdecl strncmpf(const char far *, const char far *, int);
int cdecl strnicmpf(const char far *, const char far *, int);
char far * cdecl strpbrkf(const char far *, const char far *);
char far * cdecl strrevf(char far *);
char far * cdecl strchrf(const char far *, char);
char far * cdecl strrchrf(const char far *, char);
int cdecl strspnf(const char far *, const char far *);
int cdecl strcspnf(const char far *, const char far *);
char far * cdecl strstrf(const char far *, const char far *);
char far * cdecl stristrf(const char far *, const char far *);
char far * far cdecl struprf(char far *);
char far * cdecl strlwrf(char far *);
int cdecl memcmpf(const char far *, const char far *, unsigned);
char far * cdecl memcpyf(char far *, const char far *, unsigned);
char far * cdecl memsetf(char far *, int, unsigned);
char far * cdecl strtokf( char far *, char far * );
#endif
char far * cdecl memmovef(char far *, char far *, unsigned);
int cdecl NetPackString (char far* far*, char far*, char far* far*);
char far * cdecl nextchrf(char far *);
int cdecl net_ctime(long far *,char far *,int,int);
int cdecl net_gmt_ctime(long far *,char far *,int,int);
int cdecl net_format_time_of_day(long far *, char far *, int);
int cdecl net_parse_time(long far *, char far *);
int cdecl nsscanf (char far *, char *, ...);
/* the following two functions are in \NET\API\UTIL */
API_FUNCTION NetIMakeLMFileName(char far *, char far *, unsigned short);
API_FUNCTION NetIGetLanRoot(char far *);
API_FUNCTION NetISort (char far *, unsigned, unsigned,
int (far * cdecl)( const void far *, const void far * ));
/* the following four functions are in \NET\API\UTIL */
API_FUNCTION NetIGetMessage ( unsigned short, char far *,
unsigned short, unsigned short far * );
API_FUNCTION NetIGetMessage_Insert ( unsigned short, char far *,
unsigned short, unsigned short far *,
char far * far *, unsigned short );
unsigned far pascal GetShareUseSem(void);
void far pascal FreeShareUseSem(void);
API_FUNCTION ClearCurDirs(void) ;
#define NET_CTIME_FMT0_LEN 26
#define NET_CTIME_FMT1_LEN 23
#define NET_CTIME_FMT2_LEN 22
#define NET_FORMAT_TIME_LEN 12
#define NET_FORMAT_DURATION_LEN 12
/** Definitions for NetIMapNCBErr() **/
/* Type definitions (stolen from OS2DEF.H) */
#if ! defined(OS2_INCLUDED)
typedef unsigned short USHORT;
typedef unsigned char BYTE;
#endif
/* The default, catch-all error return. */
#define NCBERR_DEFAULT NERR_NetworkError
/* Defined values for the error class */
#define NCBERRCLASS_MESSAGE 1 /* for use by messenger and message APIs */
#define NCBERRCLASS_DOMAIN 2 /* for use with domain names */
API_FUNCTION NetIMapNCBErr(USHORT usErrClass, BYTE bNCBErr) ;