HDTenEightyP/NetNews huggingface dataset:
From: tonyb@techbook.com (Tony Bennett)
Subject: C Set/2 & TCP/IP for OS/2 link problem
Organization: TECHbooks --- Public Access UNIX --- (503) 220-0636
Date: Wed, 30 Sep 1992 16:01:16 GMT

I am new to OS/2 and to the C Set/2 compiler so please excuse my naivite.

I am trying to port an application from a UNIX environment that uses TCP/IP.

I have TCP/IP for OS/2 installed as well as WorkFrame/2, Developer's Toolkit/2,
and C Set/2. I tried compiling and linking my program and get 'unresolved 
external reference' errors for the TCP/IP functions.  I used 'lib' to look into
the TCP/IP library, tcpip.lib, and located the functions.  However, each has
an underscore pre-pended to it's name (_recv instead of recv).  I verified that 
the library's directory is included in LIBPATH.  I also tried compiling and 
linking from the command line using the following commands:
	icc /Sm -c pgm.c
	  link386 pgm.obj,pgm.exe,pgm.map,tcpip;

???
What am I doing wrong?

Also, I read posta ing on another newsgroup which the poster said she had no
problems doing this same thing.  However, she said she "...had to thunk all the
function calls that use sockets".   What is a 'THUNK'????

Thanks in advance.

-- 
-------------------------------------------------------------------------------
Tony R. Bennett, Consolidated Freightways, Inc. 
POB 4845, Portland, Or 97208     DISCLAIMER: My words are my own.  They do not
Voice: 503-499-2740                          represent the opinions of CF or 
Newsgroups: comp.os.os2.programmer
From: leonid@netcom.com (Leonid Crossman)
Subject: OS/2 2.0 Physical Device Drivers.
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Thu, 1 Oct 1992 00:49:11 GMT

:
Could someone experienced in OS/2 drivers developing tell me the simpliest
way for the physical device driver to talk to another PDD?
It is obvious in init mode when you can use API calls but I wonder about
the kernel and interrupt mode.
   Thanks in advance, Leonid
From: john.navas@uttsbbs.uucp (John Navas) 
Newsgroups: comp.os.os2.programmer
Subject: CD-ROM and SCSI support
Date: 2 Oct 92 16:46:00 GMT
Distribution: world
Organization: The Transfer Station BBS, Danville, CA - 510-837-4610/837-5591
Reply-To: john.navas@uttsbbs.uucp (John Navas) 

 > I have recently placed an order for the OS/2 developers CD-ROM and
 > I would like to add a CD-ROM drive to my system which currently has
 > a Ultrastor ESDI controller and drive(s).
 > Does anyone know if it is possible to have a SCSI controller and
 > ESDI controller co-resident.

Yes.

 > If so, which one is recommended?

To have the best software support, go with either Future Domain or
Adaptec.  After a good deal of research I concluded that the best bang
for the buck was the Adaptec "Multimedia Connection", which includes
the 1510 host adapter and DOS software drivers -- about $170 at Fry's
Electronics in Sunnyvale, CA.  (The 152x and 154x host adapters are
overkill for CD-ROM.)  If you are only concerned with OS/2, which
includes Adaptec drivers, you could try to find the 1510 naked.

 > Which CD-ROM drive would then be a good choice?

The most widely supported drive is Toshiba, with NEC close behind.  I
went with the fast Toshiba XM-3301B (about $400 on the street) as the
best bang for the buck.  The faster (double-speed) NEC CDR-84 is over
$100 more expensive.

Best regards,
John
                                           
Newsgroups: comp.os.os2.programmer
From: postma@gaul.csd.uwo.ca (WARREN POSTMA)
Subject: OS/2 complete prog ref set ?
Organization: Computer Science Dept., Univ. of Western Ontario, London, Canada
Date: Mon, 5 Oct 1992 22:16:22 GMT



I was at the "World's Biggest Bookstore" in Toronto, Ontario. They had a few 
dozen OS/2 oop programming books.

What I want is a book or set of books that cover these topics:

     (1) Complete listing of all standard OS/2 32 and 16 bit APIs and
         DLLs
     (2) A learn by doing book for C++ prorgramming in OS/2 from the 
         "hello world" type of program to PM programming, DLLs, GDI,
         IPC/Semaphores/QUeues/Pipes etc, and so on.  
     (3) A good reference/tutorial on creating user interfaces
     (4) OOP encapsulation for C++ and OS/2 - OS/2 PM classes
      
ANy suggestions? Please mail me replies, much appreciated.

Also DOES ANYONE DO SMALLTALK/V PM?  Does it make your apps slow? Do your
clients complain?  Do they love it hate it, or are they indifferent, or
can't tell? (The latter would be best.)

And how do you like it?  I've learned C++, but it seems C++ is a 500lb
canary, and smalltalk is more like a hummingbird (which happens
to be caged in by a 5 tonne birdcage -- you win some and lose some.)
Does anyone know whereof I speak?)

Warren
From: zeta@yngbld.tfsquad.mn.org (Gregory Youngblood)
Newsgroups: comp.os.os2.programmer
Subject: Asking for help with GCC2-222
Date: 4 Oct 92 18:48:40 GMT
Organization: TCS Consulting Services, Peachtree City, GA

I just ftp'ed GCC2-222 from ftp-hobbes last night.   I went in and tried to 
do a couple of things afterwards and ran into some problems.


(1)  I ftp'd the bsddev.zip and other .zip files, but I am unable to unzip 
them.  I get a message that says compression method 8..skipped or compressed 
method unknown.  I got that from both my os/2 (info-zip??) unzip and DOS 
PKunzip 1.10.  Is there another release of unzip that will unzip these 
files?  I had some files the other day I deleted, thinking they were 
corrupted, now I don't know.

(2)  I realize this is more than likely OLD news, but how do I read the 
documentation?  They are all in .texi format.

(3)  There are several files in the pub/os2/2.0/programming directory, a lot 
without information as to what they are.  I ftp'd some files that looked 
like they would be useful, as well as the important files from emx-08e.  I 
think I ftp'd the entire gcc2-222 directory as well (I think there was only 
a handful of files, all of which were related to gcc2-222).  I had, but 
never set up GCC 2.1 ( or was that 2.21?) and now am trying to set up 
gcc2-222.  Does anyone have a list of files that are required/or very 
helpful to have?   I have seen reference to gnudebugger and other files, but 
didn't get them.

(4)  I'm going to be spending today (Sunday) deleting things on my hard 
drive to make room for GCC and attempting to get it installed...
I know I'm going to probably need some help.  I was wondering if there was a 
FAQ, and how I might be able to get it via e-mail..( I hope to have usenet 
news again next week ).


Thanks in advance for any help/ideas anyone can give me...
Greg

.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.
.             I do not have news access..please reply via email.            .
.   TCS Consulting Services   P.O. Box 600008   St. Paul, MN  55106-0008    .  
                                              
.   MN:     zeta@yngbld.tfsquad.mn.org     ..!tfsquad.mn.org!yngbld!zeta    .
.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.-=-.
From: gmartin@mcs213f.cs.umr.edu (Greg Martin )
Newsgroups: comp.os.os2.programmer
Subject: Question about os2.lib
Date: 1 Oct 92 02:50:42 GMT
Organization: University of Missouri - Rolla

Are there man pages for the os2 system calls
that I presume are in os2.lib, or do I need
to find an OS/2 programmer's reference?

And another question, is fork() implemented,
or should I use DosCreateThread()?

Thanks,
Greg
gmartin@cs.umr.edu
From: rvaniwaa@copper.denver.colorado.edu (Ronald J. Vaniwaarden)
Newsgroups: comp.os.os2.programmer
Subject: problems using p2c
Date: 2 Oct 92 00:16:05 GMT
Distribution: usa
Organization: University of Colorado at Denver


	I just recently got the p2c program for OS/2 and have been trying
to convert and compile pascal programs using gcc for OS/2.  Whenever I try
to compile a program, I get an error while it is processing the header
file p2c.h it claims:

c:/emx/lib/libp2c.a(p2clib.o): Undefined symbol __streams referenced from text s
egment
c:/emx/lib/libp2c.a(p2clib.o): Undefined symbol __streams referenced from text s
egment

Does this mean that it cannot find the header file  stdio.h?  This seems to
only happen when I am compiling a program that has some output. Has anyone
used p2c and do you have any suggestions as to how to use it?  Also, I am
using EMX 0.8e.  Are the library files compatible?

--Ronald Van Iwaarden
From: landis@sugs.tware.com (Hale Landis)
Newsgroups: comp.os.os2.programmer
Subject: Minor wishlist item: any IBMers out there?
Date: 1 Oct 92 22:23:32 GMT
Organization: SUGS

Hmmmm, wonder what you really mean... Are you looking for
a 'standard' C library (.lib file used with a linker) or
are you looking for a 'standard' C library as a .dll file?

I think the IBM C compiler has a 'standard' C library as
a .lib file.  What more could you want?

Why in the world would you want a .dll file for the C library?
Why would any one want a .dll file for any normal application
program?  dll's are a pain in the rear end.  How does the system
(OS/2) distinguish between the .dll for one C compiler and the
.dll for another C compiler?  dll's are a good idea but a bad
implementation.

Why should I have to change config.sys just because I installed a
new application on my system?  How many 'dumb' users understand
this concept?

I think OS/2 is great -- even the 1.x versions were very good --
but the .dll implementation is crap!

--------------------------------------------------------
Hale Landis                              Ph 408-423-4017
landis@sugs.tware.com -or- hale_landis@notes.seagate.com
--------------------------------------------------------
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Minor wishlist item: any IBMers out there?
Date: 2 Oct 92 19:34:05 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <717978212snx@sugs.tware.com> landis@sugs.tware.com (Hale Landis) writes:
>Why in the world would you want a .dll file for the C library?

So when I compile a few dozen apps, I don't waste space on my disk
with a few dozen copies of the printf() function (etc.)

>Why would any one want a .dll file for any normal application
>program?  dll's are a pain in the rear end.  How does the system
>(OS/2) distinguish between the .dll for one C compiler and the
>.dll for another C compiler?

It shouldn't have to distinguish.  If all the entry points are
standard C function calls using normal C calling conventions, any
runtime DLL will work with any compiler.

>Why should I have to change config.sys just because I installed a
>new application on my system?  How many 'dumb' users understand
>this concept?

Why do you change your config.sys?  If you simply create a user-dll
directory (D:\DLL on my machine) and add it to the LIBPATH, all you
have to do is move all .DLL files there and they're on-line.  No
changing configurations, and no rebooting.

You can also place "." on your LIBPATH.  Then any app will find its
DLL's if you run the app from the directory with them.  This can work
well for apps you launch from WPS (where you can launch them from the
app's directory).

>I think OS/2 is great -- even the 1.x versions were very good --
>but the .dll implementation is crap!

You obviously haven't been using them properly.  They work exactly the
way I expect them to, and there have been no problems with that part
of OS/2.

How would you prefer to implement them?  Surely you wouldn't want to
eliminate .DLLs.  Then, each PM program would grow to gargantuan sizes
(from hard-linking the PM libraries), and they wouldn't use new
features as the OS improved.



-- 
David Charlap         |"there aren't 50,000 things for which it's worth writing
dic5340@hertz.njit.edu| software; and the computer industry doesn't have enough
----------------------+ programmers to create that much good software.
Therefore, most of it must be worthless" -- Boris Beizer "The Frozen Keyboard"
Newsgroups: comp.os.os2.programmer
From: hank@ducvax.auburn.edu
Subject: Re: A "man" command for OS/2 (GNU troff man pages for API calls)
Organization: Auburn University, AL
Distribution: comp.os.os2.programmer
Date: Tue, 29 Sep 1992 04:27:42 GMT

In article <1992Sep28.062959.7964@nmt.edu>, jreynold@nmt.edu (John Reynolds) writes:
> I'm tring to install GNU C++ 2.2.2 and notice that there is a zoo
> file that contains troff (I guess) formatted files describing
> api calls. Is there a version of SunOS's "man" command anywhere
> for OS/2????? Sure would be nice.

Why not get the real thing?  Kai Uwe Rommel has ported groff to OS/2. Works
for me. Try ftp-os2.nmsu.edu in pub/os2/2.0/gnu/. Then do
  groff -man blob.1

If you don't want the full groff, try cawf (C version of awf). This will
not do as well as groff, but it may be good enough (and it runs under OS/2
1.3--2.0 and MSDOS).  If I recall correctly, you will need the awk version
awf also, as the cawf archive is missing a file.

--darrel hankerson hank@ducvax.auburn.edu
From: ak@ananke.stgt.sub.org (Andreas Kaiser)
Newsgroups: comp.os.os2.programmer
Subject: Allocating a 64k chunk in a device driver... 
Distribution: world
Date: Thu, 01 Oct 92 21:40:56 GMT
Organization: ananke


In article <1992Sep29.225212.1267@ccsvax.sfasu.edu> z_kupkams@ccsvax.sfasu.edu writes:

  > > I need to allocate two 64k buffers in ram from a 16bit device driver. Each of
  > > the buffers must be completely contained in a segment. They cannot cross a
  > > segment boundary. Does anyone know of a way to do this?

  > Well, It sounds like you need a DMA buffer. You can use DevHelp VMAlloc
  > to allocate a large block of virtual memory( Specify non-swappable ).
  > Allocate at least 192K( you will waste a total of 64K if you want to allign
  > it on a 64K boundary, there will be some wasted above and below the range that
  > you want). The address that you get back will be Linear, so use DevHelp
  > LinToPagelist to get the physical address. take the Physical address you
  > recieve and adjust it to align on a 64K boundary. Then do a PhysToVirt of
  > the adjusted physical address to obtain a 16:16 addressable address of each 
  > block

It may perhaps be much easier to use the 1.x device helpers, such as
AllocPhys (with 192K). A 1.x device helper *must* return physically
contiguous memory below the 16MB line, which is enforced by the
mainboard DMA channels. Even a BASEDEV driver can run using only 1.x
device helpers for memory management.

Example: Try to check and use the physical memory of data areas passed
to a device driver. Using the 32-bit helpers, you have to handle the
memory on the page level, which needs either scatter/gather support or
a complex driver. Using the 16-bit helpers, the system itself has to
convert non-contiguous memory, perhaps above the 16MB line, to
contiguous memory below 16MB, else old 1.x drivers would not run in
2.0.

		Gruss, Andreas

:::::::::::::::::::: subnet:  ak@ananke.stgt.sub.org
:: Andreas Kaiser :: fidonet: 2:241/7220.9
::::::::::::::::::::
Newsgroups: comp.os.os2.programmer
From: kaz@iastate.edu (Jimmy Buffet)
Subject: OS/2 2.0 Specific Programming books
Summary: OS/2 2.0 Specific programming books
Keywords: OS/2 Programming
Organization: Iowa State University, Ames IA
Date: Tue, 29 Sep 1992 16:15:21 GMT

Does anyone have a list of 2.0 specific programming books?  I'm specifically
looking for WPS, but all books available would be appreciated.  Where would
be a good place to order them from?  Thanks!

Jeff "Kaz" Kaczmarek
From: jreynold@nmt.edu (John Reynolds)
Newsgroups: comp.os.os2.programmer
Subject: A "man" command for OS/2 (GNU troff man pages for API calls)
Date: 28 Sep 92 06:29:59 GMT
Article-I.D.: nmt.1992Sep28.062959.7964
Distribution: comp.os.os2.programmer
Organization: New Mexico Tech


I'm tring to install GNU C++ 2.2.2 and notice that there is a zoo
file that contains troff (I guess) formatted files describing
api calls. Is there a version of SunOS's "man" command anywhere
for OS/2????? Sure would be nice.

-Jr

-- 
Windows...It's like a stale cookie.
OS/2..."It's like butter" (SNL quote)
Newsgroups: comp.os.os2.programmer
From: Larry Margolis <margoli@watson.ibm.com>
Subject: Re: EPM key definition help needed
Date: Sun, 27 Sep 1992 08:18:53 GMT
Distribution: na
Reply-To: margoli@watson.IBM.com
Disclaimer: This posting represents the poster's views, not necessarily those of IBM
Organization: The Village Waterbed

In  <1992Sep27.052522.26029@Princeton.EDU>  sangjoon@phoenix.Princeton.EDU (Sangjoon Kim) writes:
>
> My problem is that I can't get Ctrl-D to behave in the "right" way.
> I've enabled "stream editing", and the DELETE key behaves the way I
> want it to.  But "def c_d = deletechar" does not produce the correct
> behavior.  Can someone help me?

The deletechar op just deletes a character; there's lots of extra code
added to make it look like a stream editor.  See DEF DEL in STDKEYS.E.
You could copy this code, or, if you're not redefining the delete key,
you could simply do:
   def c_D = executekey del  -- Execute the code associated w/ the Delete key.

Larry Margolis, MARGOLI@YKTVMV (Bitnet), margoli@watson.IBM.com (Internet)
Newsgroups: comp.os.os2.programmer
From: smbrush@lims01.lerc.nasa.gov (Andy Brush @Sverdrup)
Subject: Arithmetic Underflow
News-Software: VAX/VMS VNEWS 1.41    
Organization: NASA Lewis Research Center
Date:  2 Oct 1992 08:22 EST  

Please Help a new OS/2 programmer (me)

I just re-compiled a cubic spline utility from MSC 5.1 to C Set/2, with no 
problems during the build.  HOWEVER, during run, it stops with messages 
when there is an arithmetic underflow.  The message is "message file not 
found", or something like that.  MSC just ignored the underflow, which is 
what I want.

1)  Can I get C Set/2 to ignore underflows?

2)  Why can't my program find a message file?  (I'm doing nothing fancy... 
just addition and multiplication)

I have checked the C Set users guide, Migration guide, CPI C reference, 
with no luck.  If there's something in the Technical Library I need to read
, please tell me the page, chapter, or index entry.

Thanks in advance,

Andrew S. Brush             | SMBRUSH@LIMS01.lerc.nasa.gov
Sverdrup Technology         | 2001 Aerospace Parkway
NASA LeRC Group             | Brook Park, OH 44142
"Opinions are Mine, Only"   | (216) 826-6770
Newsgroups: comp.os.os2.programmer
From: wmc@phx.mcd.mot.com (Wayne Cronin)
Subject: OS/2 stuff for sale
Organization: Motorola Computer Group, Tempe, Az.
Distribution: usa
Date: Tue, 29 Sep 1992 13:18:11 GMT



 I want to sell the following collection of OS/2 stuff:

   Books
   -----
	Using OS/2
	Inside OS/2 2.0
	Writing OS/2 2.0 Device Drivers in C
	Design of OS/2
	OS/2 Command Reference (hardcopy version of online docs)
	OS/2 Programmer's Guide (pre-2.0)
	Inside OS/2 (pre-2.0)
	IBM "Redbooks"


   Current Software
   ----------------
	OS/2 2.0 retail version (full, not upgrade version)
	Workset/2 package:
		Cset/2 C compiler
		Developer's Toolkit
		Workframe/2
	OS/2 Extended Services with Database Server 

	(proof of license cards with all of above)


   Old Software
   ------------
	OS/2 Extended Edition (1.1)

	(proof of license NOT included, since it was used to obtain
	 the Extended Services package listed above)


   Misc.
   -----
	misc. PD/shareware/freeware software


 I'll sell this package for $350, not including shipping (UPS COD).
 I'm not interested in selling any of these items separately.

----
Wayne Cronin
wmc@phx.mcd.mot.com

Newsgroups: comp.os.os2.programmer
From: db3l@ans.net (David Bolen)
Subject: Re: Minor wishlist item: any IBMers out there?
Date: Fri, 2 Oct 1992 17:20:27 GMT
Organization: Advanced Network & Services, Inc. - Elmsford, NY

In article <1992Oct2.193405.12772@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:

(a C RTL DLL)

>It shouldn't have to distinguish.  If all the entry points are
>standard C function calls using normal C calling conventions, any
>runtime DLL will work with any compiler.

Well - I think it's very rare that each C library in use today actually
matches up perfectly as far as entry points.  There are always some
internal support functions and what not.  You really need other name and
version identification.

(about DLLs in general)

>How would you prefer to implement them?  Surely you wouldn't want to
>eliminate .DLLs.  Then, each PM program would grow to gargantuan sizes
>(from hard-linking the PM libraries), and they wouldn't use new
>features as the OS improved.

I'll tell you what I would fix - automatic version support for DLLs.  What
is needed is support for multiple versions of the "same" DLL.  Right now if
you are writing a DLL and you want to do it right (IMHO), you need to
implement your own version support so that you can recognize if you are
mismatched with your caller.  Then, for upward compatibility you really
need to have later versions handle earlier callers.

It would be really nice if OS/2 took some of this burden, and had a way for
a DLL to identify itself with version information, and OS/2 would match an
application up with the appropriate DLL version.  Otherwise, it's too easy
to get a mismatched DLL and not know what happened.  The recent upgrade to
EMX.DLL is a good example of this.  People tend to post saying to get the
most recent EMX to make sure things are working - I'm just waiting for the
point when EMX for some reason changes so it's not completely backward
compatible - it'll be a big mess.

(Of course, a way to change LIBPATH dynamically after the system has booted
 would be a big improvement too)

--
-- David
--
/-----------------------------------------------------------------------\
 \              David Bolen             \  Internet: db3l@ans.net      /
  |   Advanced Network & Services, Inc.   \   Phone: (914) 789-5327   |
 / 100 Clearbrook Road, Elmsford, NY 10523  \   Fax: (914) 789-5310    \
\-----------------------------------------------------------------------/
Newsgroups: comp.os.os2.programmer
From: meyer@ux1.cso.uiuc.edu (Don Meyer)
Subject: REXX: SysCreateObj. & SET DOS_VERSION=
Organization: UIUC College of Agriculture
Date: Tue, 29 Sep 1992 23:52:55 GMT


Does anyone know how one goes about adding multiple 'entries' in the 
'DOS_VERSION' DOS setting when using teh REXX SysCreateObject call?

For instance, I'm trying to create an object for Lotus 3.1, which requires
the following entries in the DOS_VERSION field:
  INSTALL.EXE,3,40,255
  123.EXE,3,40,255
  LOTUS.EXE,3,40,255
  123DOS.EXE,3,40,255
  ZAP.EXE,3,40,255
  INS.EXE,3,40,255

I can't seem to do more than one at a time -- no separator I've tried yet
forces the next entry to the next line of the field, and each separate 
"SET DOS_VERSION=..." clears any previous entries in the field.  (This
behaviour is present under the new Beta code, as well as GA code.)

I'm assuming this problem also applies to the DOS_DEVICE field -- how does
one add multiple device drivers with a SysCreateObject call?  They use the
same field device...

Thanks for any help/hints/discussion.
Don
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
	Don Meyer			dlmeyer@uiuc.edu
	 Network Manager, UIUC College of Ag Microcomputer Facility

"Fiscal Responsibility + Personal Freedom = Libertarian"     Marrou/Lord in 92!

member: NRA, ISSC, IL Farm Bureau	"Don't blame me, I voted Libertarian!"
Newsgroups: comp.os.os2.programmer
From: eletanjm@nuscc.nus.sg (Tan Jin Meng)
Subject: Re: Named Pipes in REXX?
Organization: National University of Singapore
Date: Tue, 6 Oct 1992 02:05:05 GMT

eletanjm@nuscc.nus.sg (Tan Jin Meng) writes:
: Um... How do you create and use named pipes in REXX? 
: I looked in rexx.inf and the only named pipe function seems to be 
: SysWaitNamedPipe. Why only this function and not others???
: 
: Any help appreciated.
: 
: jin meng

Following myself up... ;-).

I didn't understand the example at first (given in SysWaitNamedPipe).
Could it mean that we create a named pipe using the stream call and
then read/write like any file?

jin meng