A
download com_lnx.h
Language: C
Copyright: Copyright 1987-96, Bit Bucket Software Co.
LOC: 63
Project Info
BinkleyTerm XE(btxe)
Server: SourceForge
Type: cvs
...e\b\btxe\btxe\btnt\sources\
   Addr.cpp
   Addr.h
   aglcrc.cpp
   aglcrc.h
   asyn_lnx.cpp
   asyn_os2.cpp
   asyn_w32.cpp
   async.h
   asyos2v1.h
   b_banner.cpp
   b_bbs.cpp
   b_faxrcv.cpp
   b_flofil.cpp
   b_frproc.cpp
   b_help.cpp
   b_initva.cpp
   b_logs.cpp
   b_passwo.cpp
   b_proto.cpp
   b_rspfil.cpp
   b_sbinit.cpp
   b_script.cpp
   b_search.cpp
   b_sessio.cpp
   b_spawn.cpp
   b_term.cpp
   b_termov.cpp
   b_today.cpp
   b_wazoo.cpp
   b_whack.cpp
   b_wzsend.cpp
   banner.cpp
   banner.h
   BasicString.h
   bbs_ctra.cpp
   bbs_data.cpp
   bbs_incl.h
   bbs_io.cpp
   bink.h
   bink_asm.cpp
   binkdlg.cpp
   binkpipe.h
   box.h
   brec.cpp
   bsend.cpp
   bt.cpp
   btconfig.cpp
   btutil.cpp
   buffer.h
   cache.cpp
   cache.h
   callback.cpp
   callerid.cpp
   callwin.cpp
   callwin.h
   capi.cpp
   cfosline.cpp
   chat.cpp
   com.h
   com_dos.h
   com_lnx.h
   com_os2.h
   com_w32.h
   common.cpp
   cpuload.cpp
   css.cpp
   css.h
   data.cpp
   debug.cpp
   debug.h
   defines.h
   dosfuncs.cpp
   emsi.cpp
   emxmxcom.cpp
   evtparse.cpp
   evtsetup.cpp
   exceptio.cpp
   exceptio.h
   Exceptions.cpp
   Exceptions.h
   externs.h
   faxproto.h
   fcfgread.cpp
   fidomail.h
   file_all.cpp
   file_dos.cpp
   file_io.h
   file_lnx.cpp
   file_os2.cpp
   file_w32.cpp
   foffsets.h
   fossil.cpp
   freepoll.cpp
   ftsc.cpp
   gethcomm.h
   heap.cpp
   history.cpp
   history.h
   hydra.cpp
   hydra.h
   includes.cpp
   includes.h
   janus.cpp
   janus.h
   keybd.h
   keyfncs.h
   keymap.cpp
   langload.cpp
   language.h
   lngmagic.h
   m7rec.cpp
   m7send.cpp
   mailer.cpp
   mailovly.cpp
   mailroot.cpp
   maxcomm.h
   maxmcp.cpp
   maxmcp.h
   maxprm.cpp
   mdm_proc.cpp
   misc.cpp
   msgs.h
   Node.cpp
   Node.h
   NodeList.cpp
   NodeList.h
   nodeproc.cpp
   os2_pm.cpp
   outbound.cpp
   pipe.cpp
   pktmsgs.cpp
   pktmsgs.h
   protcomm.cpp
   prototyp.h
   recvbark.cpp
   recvsync.cpp
   sbuf.cpp
   sbuf.h
   sched.cpp
   sched.h
   script2.cpp
   SelfTest.cpp
   SelfTest.h
   sendbark.cpp
   sendsync.cpp
   squish.cpp
   squish.h
   srif.cpp
   statetbl.cpp
   stats.cpp
   stdafx.cpp
   stdafx.h
   timer.cpp
   timer.h
   times.cpp
   types.h
   v7debug.cpp
   version.cpp
   version7.cpp
   version7.h
   vfos_dos.cpp
   vfos_lnx.cpp
   vfos_os2.cpp
   vfos_qnx.cpp
   vfos_w32.cpp
   vfossil.h
   video.h
   vt100.cpp
   vt100.h
   xfer.h
   xmrec.cpp
   xmsend.cpp
   xstring.h
   yoohoo.cpp
   zmodem.cpp
   zmodem.h

/*---------------------------------------------------------------------------*
 *
 *                               BinkleyTerm
 *
 *              (C) Copyright 1987-96, Bit Bucket Software Co.
 *     For license and contact information see /doc/orig_260/license.260.
 *
 *           This version was modified by the BinkleyTerm XE Team.
 *        For contact information see /doc/team.lst and /doc/join.us.
 *  For a complete list of changes see /doc/xe_user.doc and /doc/xe_hist.doc.
 *
 * Filename    : $Source: /cvsroot/btxe/btnt/sources/com_lnx.h,v $
 * Revision    : $Revision: 1.1 $
 * Tagname     : $Name:  $
 * Last updated: $Date: 2005/01/01 15:18:12 $
 * State       : $State: Exp $
 * Orig. Author: Ben Stuyts and Louis Lagendijk
 *
 * Description : Linux Communications definitions for BinkleyTerm
 *
 *---------------------------------------------------------------------------*/

#ifndef BOOLEAN
#define BOOLEAN unsigned char
#endif

/* Baud rate masks */

#define BAUD_300        B300
#define BAUD_1200       B1200
#define BAUD_2400       B2400
#define BAUD_4800       B4800
#define BAUD_9600       B9600
#define BAUD_19200      B19200
#define BAUD_38400      B38400
#define BAUD_57600      B57600
#define BAUD_115200     B115200

#define BITS_7          0x20
#define BITS_8          0x00
#define STOP_1          0x08
#define STOP_2          0x18
#define ODD_PARITY      0x06
#define EVEN_PARITY     0x04
#define NO_PARITY       0x00
#define USE_XON         0x01
#define USE_CTS         0x02
/* #define USE_DSR         0xXX */
/* #define OTHER_XON       0xXX */
#define BRK             0x01
#define MDM             0x02

unsigned Cominit (int, int);

#define CARRIER (com_online())

USHORT com_online (void);
BOOLEAN CHAR_AVAIL (void);
void SENDBYTE (unsigned char);
void SENDCHARS (char *, size_t, BOOLEAN);
BOOLEAN OUT_EMPTY (void);
void CLEAR_OUTBOUND (void);
void CLEAR_INBOUND (void);
int MODEM_IN (void);
int PEEKBYTE (void);
int com_getc (int);
void RAISE_DTR (void);
void LOWER_DTR (void);
void XON_ENABLE (void);
void IN_XON_ENABLE (void);
void XON_DISABLE (void);
void MDM_ENABLE (unsigned long);
void MDM_DISABLE (void);
void com_break (int);

#define do_break(i) com_break(i)

void BUFFER_BYTE (unsigned char);
void UNBUFFER_BYTES (void);
USHORT ComTXBlockTimeout (BYTE * lpBuf, USHORT cbBuf, ULONG ulTimer);
USHORT ComTXRemain (void);

void linux_pause();

BOOLEAN KEYPRESS (void);
int get_key (void);

#define FOSSIL_CHAR get_key
#define READKB get_key

void WRITE_ANSI (int);

char *strupr (char *);
char *strlwr (char *);
int memicmp (const void *__s1, const void *__s2, size_t __n);
char *ultoa (unsigned long, char *, int);

#if !defined(__QNXNTO__)
   size_t filelength (int handle);
#endif /* __QNXNTO__ */

#define spawnv(a,b,c) execv(b,c)
#define spawnlp(a,b,c,d) execlp(b,c,d)

/* $Id: com_lnx.h,v 1.1 2005/01/01 15:18:12 vildanov Exp $ */

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us