HDTenEightyP/NetNews huggingface dataset:
From: ks3l+@andrew.cmu.edu (Kenton Shaver)
Newsgroups: comp.os.os2.programmer
Subject: any one for IRC?
Date: 2 Oct 92 20:05:00 GMT
Organization: Carnegie Mellon, Pittsburgh, PA

How about a comp.os.os2.programmer
IRC forum?  At night would be best
for me.

For those interested: send me the best
days and times (of the week) for YOU
and I will post a time and channel ID
if enought people are interested.

send mail to ks3l+@andrew.cmu.edu.
		^
that is a lower case L and not a one.
(or just ks3l@andrew.cmu.edu if the above address
bounces)  or reply to me or the net.

I hope this generates some interest.

KWS
From: 873clifton@gw.wmich.edu
Newsgroups: comp.os.os2.programmer
Subject: Re: malloc (...) in gcc+emx
Date: 1 Oct 92 20:43:38 EST
Organization: Western Michigan University

In article <1992Sep30.173840.17721@Informatik.TU-Muenchen.DE>, maehner@Informatik.TU-Muenchen.DE (Johannes Maehner) writes:
> 
> I've got the gcc2.2.2+emx0.8e programming environment for OS/2 2.0.
> Consider the following C-program:
>    
>     #include <stdio.h>
>     #include <malloc.h>
> 
>     void main ()
>     {
>        char *buf = (char *) malloc (<size>);
> 
>        if (buf != NULL) printf ("memory allocated\n");
>        else printf ("allocation failed\n");
>        free (buf);
>     } 
> 
> The behavior of the program:
> If <size> gets too high (of course, <size> 
> is in a valid integer range and >= 0) malloc doesn't return a 
> NULL - pointer but the program turns in a core-dump
> (gdb says that the program received signal 11, segmentation-fault)
> 
> Can YOU tell me how to solve the problem?
> (I guess malloc gets in conflict with the
>  memory protection of OS/2 2.0 but doesn't recognize 
>  it as an error) 
> Is there a way to use the virtual memory management
> when allocating store on the heap?
> 

Try replacing a straight integer value for <size> with: sizeof(char)*SIZE 
where SIZE is the integer you where using previously.

/Doug
--
Douglas Clifton [99clifto@lab.cc.wmich.edu]
From: landis@sugs.tware.com (Hale Landis)
Newsgroups: comp.os.os2.programmer
Subject: Vio/Avio/Mou/Kbd calls for EMX, need header file!!
Date: 26 Sep 92 18:00:09 GMT
Organization: SUGS

The KBD, VIO, MOU functions are defined in the file BSESUB.H.
This file can be found in the IBM Tool Kit directory
   \TOOLKT20\C\OS2H
If you don't have the IBM Tool Kit, then good luck finding
some other version of this header file.  Lattice used to
ship one with their OS/2 C compiler.  I have several versions
of this header file, each from a different OS/2 compiler I
purchased during the last 5 years.  Of course they *all*
have copyright messages!
--------------------------------------------
Hale Landis                  Ph 408-423-4017
tware!sugs!landis -or- landis@sugs.tware.com
--------------------------------------------
From: johnf@persoft.com (John Freeborg)
Newsgroups: comp.os.os2.programmer
Subject: Re: Allocating a 64k chunk in a device driver...
Date: 1 Oct 92 14:33:28 GMT
Organization: Persoft, Inc.

In article <1992Sep29.070357.23292@CS.ORST.EDU> @prism.cs.orst.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?
>
>Thanks
>
>Keith

I've never actually done it, but I'm studying the PDD reference right now
for a similar idea.  From what I can make of it you could do the following
DevHlp calls:

   VMAlloc() to allocate the 64 Kb chunk
   VMLock() to fix the 64 Kb chunk in memory
   LinToGDTSelector() to convert the 32-bit linear address to a selector

I think that is all you need, just do this twice to get 2 64 Kb chunks.  Note
that 64 Kb is the limit for the LinToGDTSelector() call so you are ok.

 - John
 
-------------------------------------------------------------------------------
John Freeborg          Software Engineer         Persoft
johnf@persoft.com                                465 Science Dr.
608-273-6000                                     Madison, WI 53711
Newsgroups: comp.os.os2.programmer
From: fearick@physci.uct.ac.za (Roger Fearick)
Subject: Re: problems using p2c
Date: Fri, 2 Oct 1992 13:34:47 GMT
Distribution: usa
Organization: Physics Department, University of Cape Town

In article <3943@copper.Denver.Colorado.EDU> rvaniwaa@copper.denver.colorado.edu (Ronald J. Vaniwaarden) writes:

>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?

The libraries have obviously been compiled with emx 0.8d.
The library formats are compatible, but some things in stdio
have changed.


>--Ronald Van Iwaarden

Roger.

Roger Fearick                 *  Internet: fearick@physci.uct.ac.za
Dept. of Physics              *
University of Cape Town       *
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
From: sci240s@monu6.cc.monash.edu.au (Wey Jing HO)
Subject: How to debug in OS/2 with GCC 2.2.2?
Followup-To: poster
Organization: Monash University, Melb., Australia.
Date: Tue, 29 Sep 1992 19:07:53 GMT

PLEASE HELP ME!!

I've been trying to port most of my DOS C-programs to OS/2 using GCC 2.2.2
(modifying some parts to allow me to work with bigger arrays).

Compiling the C-source is generally quite easy. I don't get any warnings
even with the "-Wall" flag turn on. However, I've been getting some mysterious
memory allocation errors (running the resulting program gives me error message
such as SYS3175 with access violation at 11959, SYS1808, and the software
diagnostic code (exception code) is 0005).

My question is, is there any debugger (PD/commercial) that I can use?
If not, can anyone help me?

Briefly, what I am trying to do:
1) declare unsigned char **variable;
2) variable = (unsigned char **)malloc(512*sizeof(unsigned char));
3) check malloc if == NULL;
4) variable[i] = (unsigned char *)malloc(512*sizeof(unsigned char)); 
   for (i=0; i<512; i++); (sorry, this line should appear first)
5) check malloc if == NULL;
6) variable[row][col] = (unsigned char)fgetc(instream);

The program will break with the above SYS errors at row = 256 and col = 0
(that means it manage to reach row = 255 and col = 511).

I compile the program with: gcc -c -Wall c-source.c
and link with: link386 c-source.obj, RUN.EXE;

So, what can I do to get rid of this problem?

Thank you for any kind soul that is willing to help me.

Wey Jing Ho
sci240s@monu6.cc.monash.edu.au

-- 
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>Wey Jing Ho    Tel: 61-3-573-2567   E-mail : sci240s@monu6.cc.monash.edu.au<
>Physics Dept., Monash University ( Caulfield Campus ), Melbourne, AUSTRALIA<
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
From: sl31+@andrew.cmu.edu (Stephen M. Lacy)
Newsgroups: comp.os.os2.programmer
Subject: Re: LINK386.EXE
Date: 5 Oct 92 11:44:34 GMT
Article-I.D.: andrew.ceo9gWu00WB20gY2Ef
Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA

Excerpts from netnews.comp.os.os2.programmer: 4-Oct-92 LINK386.EXE by
Rajendra Singh@r-node.gt 
> I would like to have my REXX "program" execute LINK386 without having
> LINK386 prompt the user for any additional information.

link386 will take all its arguments on the command line.  What you have
to do is put them on the command line just as you would type them when
its running in interactive mode, and seperate lines by a comma.  Here's
what I've done:

link386 /nologo interp animate client matrix,animate,,,animate

Which takes the object files: interp.obj, client.obj, animate.obj  &
matrix.obj and links them into the executable called "animate.exe" using
the default libraries and the default name for the output .map file, and
uses the file "animate.def"   The /nologo part just cancels the whole
logo.  If you type "link386 /?" you get a list of possible options,
they're mostly self-explanatory.  No, I don't have any documentation,
I've just figured this all out by myself (any by the workinks of other
IBM linkers...)

Steve


"Eight o'clock in the morning and the daylight makes me look and feel
like hell" -OMD
Newsgroups: comp.os.os2.programmer
From: "gord armstrong" <gord.armstrong@canrem.com>
Subject: graphics?
Reply-To: "gord armstrong" <gord.armstrong@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 30 Sep 92 09:55:00 EST


Thanx for the responses rx from my previous questions.

More ??? on graphics (lowly CGA) ... to write to the graphics
buffer I use VioGetPhysBuf to get the selector and proceed to
write my graphic routines. If I'm, let's say, drawing boxes
to the CGA screen and switch tasks, I get a 'Protection Violation'
error. To prevent this error I use VioScrLock and VioScrUnLock.

Unfortunatly, when I switch tasks the graphic updates stop. It's
like task switching instead of multitasking?? Do I need a thread
to create a virtual buffer and write to this buffer when in
background mode so that when I return to my graphics screen,
I write the virtual buffer to the graphic screen?

All help appreciated. Thanx.
---------------------------------------------------------------------
gord.armstrong@canrem.com
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.os.os2.programmer
From: ochealth@unixg.ubc.ca (ochealth)
Subject: Compiler benchmarks, anyone?
Organization: University of British Columbia, Vancouver, B.C., Canada
Date: Mon, 28 Sep 1992 22:58:10 GMT

Has anyone done any benchmarks of Compiler code performance?

I'd like to see how gcc stacks up against the competition.

I'm also curious about whether the -m486 option in gcc produces faster
code.


-- 
______________________________________________________________________________
jpm: ochealth@unixg.ubc.ca         
                            Happily using OS/2 2.0 because MS Windows isNT ___
                                                      Insert VapourFeature ^^^
Xref: sparky comp.os.os2.programmer:5393 comp.os.os2.misc:31916
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
Subject: RE: Price to join DAP?
Date: 2 Oct 92 19:20:00 GMT
Distribution: usa
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Oct2.153751.4492@news.iastate.edu> jws@iastate.edu (James William Shoemaker) writes:
>	It had a number 1-800-342-6672 to call the get it, so I called.
>
>	They sign you up to the DAP over the phone and charge a credit card $15
>and my PDK is in the mail as of Oct. 5 they say.
>
>	Thank you IBM for providing this service to developers.

How much does DAP membership cost?  Or is this a free service?
-- 
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"
From: sal8@po.cwru.edu (Steve Luzynski)
Newsgroups: comp.os.os2.programmer
Subject: Re: Networks included in OS/2
Date: Mon, 5 Oct 1992 16:11:00 GMT
Organization: Case Western Reserve University
NNTP-Posting-Host: b61442.student.cwru.edu

In article <921005091651@128.247.81.82> 4389750@mcimail.com  (Robert Gammon) writes:
>From: 4389750@mcimail.com  (Robert Gammon)
>Subject: Networks included in OS/2
>Date: Mon, 5 Oct 1992 14:16:51 GMT
>To all those who argue for putting TCP/IP inside the OS/2 box, Surprise,
>TCP/IP networks are not the only networks.  Using your arguments, TCP/IP,
>Netware, Lan Server, Lan Manager, Banyan Vines, Lantastic, etc. should ALL 
>be included in the box.  Hmm, how big is this box??  How much does it
>cost??  Who will buy it if it is this big and this expensive??  I can't
>possibly imagine getting all this extra for free, each of these other 
>companies wants/needs a cut.  Seems to me that the more reasonable
>approach is to buy the network connectivity that you need as a separate
>package.  Our needs are too diverse to be satified in a single product.
>
>--
>Regards,
>Robert Gammon
>(713)-274-3299       (voice)
>(713)-274-2324       (fax)
>
 
The astute observer would notice that the above approach is what MicroSloth 
has done with Windoze NT. Note that their box comes only on CD-ROM and 
costs $600. 

Disclaimer: All Windoze NT info is outdated the instant you read it as 
MicroSloth is probably pushing back the release date again as we speak.

(I love OS/2!!)
Newsgroups: comp.os.os2.programmer
From: grichard@swimming.cis.ohio-state.edu (Golden Richard III)
Subject: Re: Small gnu emacs cursor
Organization: The Ohio State University Dept. of Computer and Info. Science
Date: Tue, 29 Sep 1992 15:47:21 GMT

In article <9363@ncratl.AtlantaGA.NCR.COM> fhart@ncratl.AtlantaGA.NCR.COM (Fred Hart) writes:
>I am running gnuemacs for os2 in an 80X42 window with the 10X6 font and
>the cursor is practically invisible. I saw a post a while back that said
>the command:
>
>   cursor -70 -100
>
>would produce a larger cursor, however this doesn't seem to do anything.
>I tried running this both inside an emacs *shell* buffer and in an os/2
>window. In the os/2 window the cursor was enlarged for a split second
>but returned to its original size when the next prompt was displayed.

The solution that's mentioned somewhere in the emacs distribution doc
is to put the cursor -n1 -n2 command inside a .CMD file, along with an
invocation of emacs.    Apparently OS/2 changes the cursor back when
it displays a prompt, so executing the cursor command at an OS/2
prompt isn't very helpful.

-- 
Golden Richard III             OSU Dept. of Computer and Information Science
grichard@cis.ohio-state.edu                                   (614) 292-0056
From: sal8@po.cwru.edu (Steve Luzynski)
Newsgroups: comp.os.os2.programmer
Subject: Re: Opening four serial ports at once?
Date: 6 Oct 1992 04:14:10 GMT
Organization: Case Western Reserve University
NNTP-Posting-Host: b61442.student.cwru.edu

In article <1992Oct5.143153.11539@ms.uky.edu> sam@ms.uky.edu (Mike Mills) writes:
>From: sam@ms.uky.edu (Mike Mills)
>Subject: Opening four serial ports at once?
>Date: Mon, 5 Oct 1992 18:31:52 GMT
>Hi,
>
>I would like to access all of my serial ports at once (I have four; two
>I/O cards with two ports on each.  The appropriate jumpers have been set
>to the correct places for the base address and interrupts.)
>
>The problem:  I can't seem to use them.  COM1 = mouse, COM2 = modem.  When
>I try to use either COM3 or COM4 while COM1 and COM2 are in use, it complains
>that the port is already in use.
>
>Soooo...is there some parameter in DosOpen() that I need to specify in order
>to use the other COM ports?  My theory is that perhaps by default, when I
>try to use COM3 or COM4, it actually tries (by default?) to use the base
>address and interrupt that is reserved for COM1 or COM2 (despite the I/O
>cards being set differently.)
>
>Any help is appreciated.
>
>Thanks,
>
>-- 
>--Mike Mills              E-Mail:  sam@ms.uky.edu, {rutgers, uunet}!ukma!sam
>--UK Math Sciences Dept.                  mike@ukpr.uky.edu    
>--(606) 257-1429 (work) 263-0721 (home)
 Have you set them up in config.sys??

You need to amend the following lines as follows:

DEVICE=C:\OS2\MDOS\VCOM.SYS (port,addr,irq) [as many as req'd]
DEVICE=C:\OS2\MDOS\COMM.SYS (port,addr,irq) "

There's more info in the latest tips n' techniques file.
Newsgroups: comp.os.os2.programmer
From: sthiagar@bronze.ucs.indiana.edu (sivasailam thiagarajan)
Subject: Fix/workaround for Watcom C kbhit bug??
Organization: Indiana University
Distribution: na
Date: Tue, 6 Oct 1992 13:49:09 GMT

Help! I'm using the Watcom C 386 9.0 compiler and need a fix or
workaround for the kbhit() bug. I'm still trying to get through to
Watcom Tech support (I guess they must be swamped with calls for their
new SQL product), but I seem to recall someone posting a quick and
dirty implementation of kbhit(). I *don't* need anything
sophisticated; all I need is to check for a keypress so I can abort a
long, slow calculation loop. Can anybody out there help me out?

Raja Thiagarajan
(sthiagar@bronze.ucs.indiana.edu)
From: sl31+@andrew.cmu.edu (Stephen M. Lacy)
Newsgroups: comp.os.os2.programmer
Subject: Re: GCC/2 2.2.2
Date: 6 Oct 92 07:58:05 GMT
Article-I.D.: andrew.keoPSB600WB2RBPsoy
Distribution: world
Organization: Junior, Math/Computer Science, Carnegie Mellon, Pittsburgh, PA

Excerpts from netnews.comp.os.os2.programmer: 6-Oct-92 GCC/2 2.2.2 by
Matt Kievit@abcd.Houghto 
> So the output looks like
> 1
> 0
>  
> Enter a number:
> You entered: 1
>  
> Enter a number:
> You entered: 0

The default setting in gcc for streams is to have I/O buffering enabled
(just like UNIX) so, what you'll want to do is put these lines in the
front of your main somewhere:

setbuf(stdin,NULL);
setbuf(stdout,NULL);
setbuf(stderr,NULL);

You don't have to do stderr, but it makes things a little nice if your
print your debugging messages to stderr.  If you don't like this
solution, there is another one: every time you write sometime out, or
want to read something in, use the fflush(stdin) or fflush(stdout)
calls, which should do basically the same thing.  Those get to be a
pain, though.  Hope this helps...

Steve


"When you wake up with me, I'll be your glass of water." -Crowded House
From: john.navas@uttsbbs.uucp (John Navas) 
Newsgroups: comp.os.os2.programmer
Subject: Re: Utils dont work in a
Date: 5 Oct 92 09:37:00 GMT
Distribution: world
Organization: The Transfer Station BBS, Danville, CA - 510-837-4610/837-5591
Reply-To: john.navas@uttsbbs.uucp (John Navas) 

azzarito@cse.fau.edu (Doug Azzarito) writes:

 > Do you know how OS/2 implements DOS emulation?  When you run DOS,
 > you're running "REAL" DOS.  It's not OS/2 recoded to look like DOS.
 > The DOS emulation runs in real mode in the vdm, and only flips back
 > to protect mode to access system services.

My understanding is that the normal DOS support in OS/2 2.0 consists
of real mode stubs lifted from DOS 5.0 that call protected mode OS/2
services; i.e., OS/2 does *emulate* DOS.  However, you do have an
option to boot real DOS in a virtual machine, which is a different
matter entirely.

Best regards,
John
From: john.navas@uttsbbs.uucp (John Navas)
Newsgroups: comp.os.os2.programmer
Subject: Re: I need info about IBM
Date: 3 Oct 92 12:00:00 GMT
Article-I.D.: uttsbbs.1786.18.uupcb
Reply-To: john.navas@uttsbbs.uucp (John Navas)
Distribution: world
Organization: The Transfer Station BBS, Danville, CA - 510-837-4610/837-5591

kkt@philabs.philips.com (Kim-Kiat Tan) writes:

 > If I remember right, the article also said that the license for the
 > software [DAP PDK] expire sometimes in Dec., does it mean that for
 > the following update, we need to pay again ? What I want to know is
 > what it will cost me to get the DAP and all the updates up to and
 > including the final release of the new version of OS 2 ?

There reportedly will be a second beta release on CD-ROM about a month
or so after the first.  Whether or not there will be another HUGE $15
charge I cannot say.  ;-)  And John Soyring has said that there will
be a continuing DAP beta program after that.  :-)

I think the expiration date is mostly a matter of IBM wanting to keep
developers on the latest version.  This is, after all, a beta program.

 > I don't enjoy start developing software for it and then later
 > realize that I have to pay a much higher price to get the final
 > version.

Where's the beef?  ;-)  The DAP PDK CD-ROM is an incredible deal!  And
the "new version" of OS/2 is a Service Pak that you will be able to
download if you wish, assuming that you are licensed ($80 bucks or so
if you're not).  Bless you, IBM -- the future looks bright for OS/2!

Best regards,
John
From: sangjoon@phoenix.Princeton.EDU (Sangjoon Kim)
Newsgroups: comp.os.os2.programmer
Subject: EPM key definition help needed
Date: 27 Sep 92 05:25:22 GMT
Article-I.D.: Princeto.1992Sep27.052522.26029
Distribution: na
Organization: Princeton University
Originator: news@nimaster

I downloaded the EPM 5.51 files from software.watson.ibm.com several
days ago and I am trying to redefine some of the keys to behave like
EMACS. (I hope it's allowed. :-) )

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?

Thank you in advance.







-- 
Sangjoon Kim
Dept. of Economics          sangjoon@phoenix.princeton.edu
Princeton University        (609) 258-3999, (609) 258-4806
Newsgroups: comp.os.os2.programmer
From: so-ecs@stekt.oulu.fi (Derek Heino Jr)
Subject: WIN1012 Maximum heap size reached...HELP !!!
Organization: University of Oulu, Dept. of EE, Finland
Distribution: comp.os.os2.programmer
Date: Wed, 30 Sep 1992 09:31:29 GMT

What is this, I ask myself when the above mentioned (subject) error
displays when I am tryin to LM_INSERTITEM:s to a combobox.
After inserting item I check the result from WinSendMsg(), which is
LIT_MEMERROR, I call WinGetErrorInfo() and display the error info on
screen. The complete error info is:
	WIN1012W Maximum heap size reached: 65532 bytes
This occurs when I am inserting item no. 1891.
Is there a way to increment heap size for the combobox, or any other
way to fix this, so that I can insert all 1981 items.

ps. How can I control the sizing of window.

-thunder...
--
 ===Derek Heino Jr=========================so-ecs@stekt.oulu.fi===
   When I feel myself slowing down , I know for sure that I've been
here before, 'cause if it isn't an action replay, what else could it be.
			  -=* THUNDER *=-
Newsgroups: comp.os.os2.programmer
From: joiner@exa.cs.umn.edu (Jay K. Joiner)
Subject: Re: How to "makeinfo for gcc.tex" ?
Organization: University of Minnesota
Date: Mon, 5 Oct 1992 02:43:16 GMT

In <1992Oct4.142822.29904@monu6.cc.monash.edu.au> sci240s@monu6.cc.monash.edu.au (Wey Jing HO) writes:

>As instructed by the install.doc that comes with EMX-0.8e, one can create
>infor files for GCC manual and etc by using makeinfo, as given below. My
>problem is I can't find such a program call makeinfo in the EMX distribution.
>Can anyone please tell me where I can find such a program?


Gnuinfo from ftp-os2 includes makeinfo.  I have used it to make info
files for gcc2.1 (not emx).