allowing compilation under IBM OS/2 3.0 with the EMX 0.9c emulation layer:
. Importation of 'text' flag (declared in gkermit.c).
. Add "b" to modes in open() calls for binary-mode transfers.
. Use rename() instead of link().
Build using gcc and sysv makefile target, then:
. emxbind -bs gkermit
. lxlite gkermit.exe
The result is useful only if you can redirect its standard i/o to a
serial port or network socket.
Integration with primary gunixio.c file:
. Importation of text flag ok.
. It's probably OK to to change open modes for UNIX to include "b".
. Selection of link()/rename() needs #ifdefs, e.g. __EMX__.
. Alternatively, we could use rename() in UNIX too, because unlike
link()/unlink(), it's atomic. But it's not portable to all UNIXes
so a more complicated selection method would be required, as in C-Kermit.
*/
/*
UNIX i/o functions for gkermit.
Author:
Frank da Cruz
The Kermit Project
Columbia University
612 West 115th Street
New York NY 10025-7799 USA
http://www.columbia.edu/kermit/
kermit@columbia.edu
Copyright (C) 1999,
The Trustees of Columbia University in the City of New York.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
....................................
Regards,
Dallas E. Legan II / leganii@surfree.com / dallasii@kincyb.com
Powered by......Lynx, the Internet at hyperkinetic speed.
=====================================================
To unsubscribe from this list, send an email message
to "steward@scoug.com". In the body of the message,
put the command "unsubscribe scoug-programming".
For problems, contact the list owner at
"rollin@scoug.com".
=====================================================
<< Previous Message <<
>> Next Message >>
Return to [ 02 |
July |
2001 ]
The Southern California OS/2 User Group
P.O. Box 26904
Santa Ana, CA 92799-6904, USA
Copyright 2001 the Southern California OS/2 User Group. ALL RIGHTS
RESERVED.
SCOUG, Warp Expo West, and Warpfest are trademarks of the Southern California OS/2 User Group.
OS/2, Workplace Shell, and IBM are registered trademarks of International
Business Machines Corporation.
All other trademarks remain the property of their respective owners.