HDTenEightyP/NetNews huggingface dataset:
From: june@f308.n133.z1.FIDONET.ORG (Ed June)
Newsgroups: comp.os.os2.programmer
Subject: Swap EE for TCP/IP?
Date: 16 Aug 92 10:28:46 GMT
Organization: FidoNet node 1:133/308 - Information Overloa, Riverdale GA


I have an unneeded virgin <unopened> copy of OS/2 EE on 5.25' disks.
Since I can't seem to $ell it, how 'bout trades?
I'd like to get TCP/IP or the IBM dev kit.
Anyone interested?


--  
Ed June

Fidonet:   1:133/308, Atlanta's OS/2 Users Group BBS, 404-471-1549
Internet:  ed_june@over.mind.org
Internet:  june@gisatl.fidonet.org
UUCP:      ...!emory!uumind!overmind!ed_june
UUCP :     ...!gatech!warlord!gisatl!308!june
Newsgroups: comp.os.os2.programmer,comp.lang.c
From: maniattb@cs.rpi.edu (Bill Maniatty)
Subject: Re: malloc causes a segmentation violation!?
Date: Tue, 18 Aug 1992 18:17:16 GMT

In article <1992Aug18.143135.6259@cc.tut.fi>, mn87504@cs.tut.fi (Naatula Mika) writes:
|> 
|> I wonder if this is a familiar bug to someone.
|> 
|> The problem is:
|> Sometimes my program causes a segmentation fault. If I drive it with
|> CVP I can find out (from calls sequence) that the error was caused by
|> malloc. To be exact, malloc calls an internal(?) function named
|> _searchseg() that fails. Any ideas what this function might be?
|> 
|> I use MSC 6.00 in OS/2 1.3 environment.
|> 
|> I write programs for Lotus Notes using Lotus Notes API libraries. (But
|> I think it is irrelevant to the promlem). 
|> The memory model used is Large.
Possibility - Bug is yours (very small I'm sure, but still possible)

Can you compile and link with a debugging version of malloc?
	(Some environments provide for one).

You might want to count number of mallocs/frees and trap on a free when
number malloced < number freed.

Verify that no access is made beyond the end of malloced structures.  Typically
malloc creates a linked list looking like the following:

	--------------------------------------------
	| malloc info a | user data | malloc info b|
	--------------------------------------------

The malloc info contains ptrs to other blocks in free/use chain, size information,
etc...  Please note that malloc info may be found at one end or the other of
the structure, and writing beyond the end of structure would trash it and corrupt
the heap.

Possibility Bug is in Notes Library (less likely, but also possible)_

Can you stub out calls.

Possibility Bug is in MSC 6.00 (less likely)

Try compiling and linking with competitor's compiler/older version

Possibility Hardware / OS bug

Try a different machine

|> 
|> My program uses a lot of dynamic memory allocation, but I am quite
|> sure that there is no bugs in my code. I have spent two days checking
|> out the memory allocation of this program.
|> 
|> -- 
|>              __   | Mika Naatula            Email: mic@cc.tut.fi
|> |\ //| ||  //  \  | Lindfrosinkatu 8 A 11          mn87504@cs.tut.fi
|> | \/ | || ||      | 33720 Tampere, FINLAND
|> |    | ||  \\__/  | 931-185 993

-- 
|
|	maniattb@cs.rpi.edu - in real life Bill Maniatty
|
From: roelofs@pan.arc.nasa.gov (Greg Roelofs)
Newsgroups: comp.os.os2.programmer
Subject: Re: SHORT, USHORT, and other absurdities
Date: 23 Aug 92 04:41:05 GMT
Organization: University of Chicago

feustel@netcom.com (David Feustel) writes:

>I've often wished that the following typdefs had been included in C:
>
>typedef unsigned char U08;
>typedef signed char  I08;
>typedef unsigned short int U16;
>typedef signed short int I16;
>typedef unsigned int U32;
>typedef int I32;
>Typedef unsigned long int U64;
>Typedef long int I64;
>typedef signed int I32;
>typedef float F32;
>typedef double F64;

But what will you do on a machine where shorts are 64 bits by default,
but can be 24 or 46 bits via a compiler switch?  Likewise for 64-bit
floats and 128-bit doubles?

Greg
Newsgroups: comp.os.os2.programmer,comp.os.os2.advocacy
From: brian%jaguar.cs.utah.edu@cs.utah.edu (Brian Sturgill)
Subject: Re: A question or three.
Date: 14 Aug 92 00:31:06 MDT
Organization: University of Utah CS Dept
Distribution: na

In article <1992Aug13.173409.25915@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:
...
>They have similar concepts, but the MS API makes you do more work.
>You have to call functions that, IMO, should be called automatically
>when the program loads.

Agreed, though NT fixes one important problem that PM still has.
If one PM app blocks to do something time consuming (instead of
using a thread) then all PM programs will be hung waiting for that
PM app to finish. This happens because PM has one global event queue.
Win32 has an event queue per process (like X does).

Brian
From: fattire@vnet.ibm.com (BJ Hargrave)
Date: Thu, 13 Aug 92 08:46:23 EDT
Newsgroups: comp.os.os2.programmer
Subject: Re: DosExecPgm Args Question
News-Software: UReply 3.0

In <13AUG199208152210@lims01.lerc.nasa.gov> Andy Brush @Sverdrup writes:
>I'm trying to DosExecPgm a program that requires command-line switches.
>The docs say that these args are placed in a "pointer to zero-terminated
>string*s*", and passed to the function.
>
>Well, that arg to DosExecPGm is typedef'ed as "char *PSZ", so I'm a little
>lost on how it points to more than one string.  I have tried a few of what
>I thought were possibilities, but no luck.
>
>Will someone post a code fragment which shows the correct way to load the
>argument string for DosExecPgm?

PSZ buff = "C:\\OS2\\CMD.EXE\0/C Echo Hello!";

rc = DosExecPgm ( NULL,                 /* Object name buffer         */
                  0,                    /* len of object name buffer  */
                  EXEC_SYNC,            /* execute synchronously      */
                  buff,                 /* arguments                  */
                  NULL,                 /* environment                */
                  (PRESULTCODES)&exec_rc,       /* return codes       */
                  buff );               /* program to execute         */

Notice the \0 after the program name. The last argument to DosExecPgm
uses the first SZ from buff for the program name and 4th argument to
DosExecPgm uses the first SZ as argv<0> and the second SZ as the
arguments to the program!

-----------------------------------------------------------------------
BJ Hargrave                     Internet: fattire@vnet.ibm.com
Boca Raton, FL                  IBMIPNet: bjhar@bjhar.bocaraton.ibm.com
Newsgroups: comp.os.os2.programmer
From: hsr@physics.ucla.edu (Harisankar Ramishan)
Subject: Re: A question or three.
Organization: UCLA Department of Physics
Distribution: na
Date: Fri, 14 Aug 92 21:53:55 GMT

In article <1992Aug14.003106.24719@hellgate.utah.edu> brian%jaguar.cs.utah.edu@cs.utah.edu (Brian Sturgill) writes:
>In article <1992Aug13.173409.25915@njitgw.njit.edu> dic5340@hertz.njit.edu (David Charlap) writes:
>...
>>They have similar concepts, but the MS API makes you do more work.
>>You have to call functions that, IMO, should be called automatically
>>when the program loads.
>
>Agreed, though NT fixes one important problem that PM still has.
>If one PM app blocks to do something time consuming (instead of
>using a thread) then all PM programs will be hung waiting for that
>PM app to finish. This happens because PM has one global event queue.
>Win32 has an event queue per process (like X does).
>
>Brian

Brian,

How does NT (or X) handle the problems of having multiple event queues? I
remember reading Dror and Lafore's discussions of the need for a single
event queue, and they offered the following situation:

	User clicks on an icon, and _knowing_ the application intimately,
	moves the mouse over to where a button WILL appear, clicks there.
	[ie., just like type ahead]. If you have multiple event queues,
	then you have no clue which process handles the second click.
	So the result is unpredictable.

	In the case of a single event queue, the process controls exactly
	what does happen. ie, it acts like a 'disable interrupts' 
	directive, till it is setup. If indeed the user is to be able to
	go and click somewhere and have another app take action, then
	the first process does this by immediately returning control to
	the system and proceeding via a second thread. Else, it keeps control.

So ... how IS the user protected in the case of multiple event queues? How
can he be assured that the time ordering of his mouse or keyboard actions
is preserved? For eg, 

	Suppose one icon backs up a log file, and another icon deletes
	the log file <stupid eg, but possible>. And the user rapidly
	but sequentially clicks first on the backup and then on the
	delete. How can he be assured that the backup happened BEFORE
	the delete? Or are we simply relying on the fact that computers
	are faster than people?

hari
hsr@uclaph.physics.ucla.edu
From: dic5340@hertz.njit.edu (David Charlap)
Newsgroups: comp.os.os2.programmer
Subject: Re: Help with gcc
Date: 12 Aug 92 22:30:47 GMT
Organization: New Jersey Institute of Technology, Newark, N.J.

In article <1992Aug11.181153.21134@news.columbia.edu> mig@cunixb.cc.columbia.edu (Meir I Green) writes:
>Also, what are other people doing about documentation?  Did you get
>nroff, or are you just turning all of it into a text file?

I'm using emacs to view them.  I made the .info files from the .texi
files.  I view the documentation from within the emacs info system.
-- 
   |)  David Charlap           "I don't even represent myself
  /|_  dic5340@hertz.njit.edu   sometimes so NJIT is right out!.
 ((|,)
  ~|~  Hi! I am a .signature virus, copy me into your .signature file.
Newsgroups: comp.os.os2.programmer
From: teague@a.cs.okstate.edu (Keith Teague)
Subject: Help using f2c 
Organization: Oklahoma State University
Date: Mon, 17 Aug 92 20:46:42 GMT

I have just installed f2c01.zoo from hobbes and am having trouble linking
using the emx version of the gcc 2.1 compiler. I am trying to compile a
fairly simple fortran program originally from vms and am getting four
errors at the link step.

The compile line is gcc -g -o gaussimg.exe gaussimg.c -lf77 -li77

The errors are

e:/apps/mex/lib//libi77.a(err.o): Undefined sysbol _DosSetFileSize referenced
from text segment

followed by the same message for (endfile.o) _DosSetFilePtr, then
(endfile.o) _DosSetFileSize, and finally (open.o) _DosQueryHType

Any help would be appreciated.

Keith Teague
Oklahoma State University

Newsgroups: comp.os.os2.programmer
From: benson@odi.com (Benson I. Margulies)
Subject: Re: Where am I going wrong???? 
Reply-To: benson@odi.com (Benson I. Margulies)
Organization: Object Design Inc., Burlington, MA
Date: Mon, 17 Aug 92 12:15:53 GMT

In article <713823955snx@sugs.tware.com> landis@sugs.tware.com (Hale Landis) writes:
>In article <1992Aug14.153224.26174@stortek.com> eldenbrg@stortek.com writes:
>  >
>  > I have been through the manuals and I cannot figure out how to get
>  > the number of lines and the number of columns defined for the screen
>  > in a non-pm program.
>  >
>Use the VioGetMode() call.


Those of us who come to OS/2 fresh in 2.0 have no such interface.
Rumor has it that 16 bit interfaces contain such things, but our doc
says nada.

-- 
Benson I. Margulies
From: robertson@physc1.byu.edu
Newsgroups: comp.os.os2.programmer
Subject: Re: Question and problem with GCC/2
Date: 20 Aug 92 23:15:27 GMT
Organization: Brigham Young University

In article <1992Aug19.212328.15304@talon.ucs.orst.edu>, hilmera@ucs.orst.edu (Andrew Hilmer) writes:
> Compiler: gcc/2 2.1
> Problem: problem and question about gcc/2
> 
> First the question. I have no trouble compiling and linking the
> sample1.c "hello world" program, but I am curious about the multiple
> prompts that link386 gave me. I just hit <enter> and the defaults
> seemed to work ok. I could find no on-line documentation of link386,
> of course. Is there some documentation of link386 available on the
> net? I am FLAT broke, so getting a shelf-full of IBM docs is not an
> option.
> 
  I also would like some  documentation of link386.  I am trying to run
  a REXX program that will automatically do the gcc compile and the link.
  I want it to not make me press return or enter the name of the .exe file
  the list file, the libraries, etc.

  I know that there are other things that link386 can do(from trying
  different parameters.  Please tell me where I can get some docs on
  link386.  I am a pooooor college student and will have trouble buying
  expensive docs.  But if there is no other source, I will pay.  What
  redbooks cover such info?  Thanks,

  Jim Robertson       robertson@physc1.byu.edu
Newsgroups: comp.os.os2.programmer
From: bergstro@src.honeywell.com (Pete Bergstrom)
Subject: Re: seeking LIB utility
To: comp.os.os2.programmer
Posted-Date: Fri, 14 Aug 92 09: 59:02 CDT
Organization: Honeywell Systems & Research Center
Date: Fri, 14 Aug 1992 14:59:02 GMT
Received-Date: Fri, 14 Aug 92 09: 59:03 CDT

From: plyon@emx.cc.utexas.edu (Paul Lyon)
>In article <1992Aug12.033230.14894@cs.brown.edu> wcn@cs.brown.edu (Wen-Chun Ni) writes:
>
>   It is sad that the ToolKit doesn't contain the lib utility. I had
>   made up my mind to buy it, but, after hearing this, I should
>   reconsider it. 
>
>I still haven't a clue why IBM did this, but lib.exe is in the
>Workframe/2 package. This is somewhat more expensive than the
>Developer's Toolkit, but by all that much (I recollect paying
>an extra $40).

I thought about buying WorkFrame/2, but I have an editor I like and
the other tools didn't excite me.  Also, the price of the toolkit was
$79, the price of the Workframe is $65, and the price of the
combination was about $155, so I decided to see if I needed it.
(The above prices are at Programmer's Paradise).

If my idea of using .dlls doesn't work well, I'll be buying a $65
library utility, I guess.

Pete
From: figueroa@SPUNKY.CS.NYU.EDU (Samuel A. Figueroa)
Newsgroups: comp.os.os2.programmer
Subject: Can't get gcc2.1 to work
Date: 18 Aug 92 15:24:16 GMT
Organization: New York University

I recently downloaded the gcc2.1 binaries (the one that uses the native
OS/2 linker), and while I am able to compile the "Hello world" sample
program without any problems, I can't figure out how to link it.  The
result of the two commands:

   GCC -c SAMPLE1.C
   LINK386 SAMPLE1;

is as follows:


Operating System/2 LX (Linear Executable) Linker
Version 2.00.000 Feb 25 1992
Copyright (C) IBM Corporation 1988-1992.
Copyright (C) Microsoft Corp. 1988-1992.
All rights reserved.


D:\GNU\LIB\LIBC.lib(gnulib3.obj) : error L2029: '___CTOR_LIST__' : unresolved external
D:\GNU\LIB\LIBC.lib(gnulib3.obj) : error L2029: '___DTOR_LIST__' : unresolved external

LINK386 : warning L4071: application type not specified; assuming WINDOWCOMPAT

There were 2 errors detected


Could someone please tell me what I am doing wrong?  As far as I know, I
installed gcc correctly according to the installation instructions (except
that I installed it on the D: drive instead of the C: drive; I copied the
SAMPLE1.C program to the C: drive and compiled it from there).
------------
Sam Figueroa (figueroa@cs.nyu.edu)
This is not a .signature virus.
Do NOT copy me into your .signature file!
From: dave@tgi.com (Dave Eldenburg)
Newsgroups: comp.os.os2.programmer
Subject: Where am I going wrong???? 
Distribution: world
Date: Tue, 18 Aug 92 00:55:48 GMT
Organization: Thistle Grove Ind. Inc.


Ok, ok, ok... I now know where I went wrong.  The Vio, Kbd, and Mou calls
can and should be used in OS/2 2.0.  I will start using them immediately.

Like William Hurt said in The Big Chill:

I was just trying to keep the conversation lively...

Really, thanks to all of you for your input.

Dave
---
-----------------------------------------------------------------------
Dave Eldenburg
Thistle Grove Industries, Inc.   *** Insert Humorous Message Here ***
dave@tgi.com
-----------------------------------------------------------------------
From: roong@pucs3.poly.edu (Roong-Ko Doong)
Newsgroups: comp.os.os2.programmer
Subject: Please upload ispell to hobbes
Keywords: ispell
Date: 20 Aug 92 18:08:20 GMT
Expires: Sep. 1, 1992
Organization: Polytechnic University

Thanks,

Roongko Doong
Newsgroups: comp.os.os2.programmer
From: hartzman@kilroy.Jpl.Nasa.Gov (Les Hartzman)
Subject: Process/Thread Memory Sharing
Followup-To: hartzman@kilroy.jpl.nasa.gov
Keywords: Process, thread, memory sharing
Organization: Jet Propulsion Laboratory, Pasadena, CA
Distribution: na
Date: Sat, 15 Aug 1992 00:32:58 GMT

Reading some OS/2 documentation indicates that threads created within a
single process may share that process' memory.  What is the process' memory?
Is it the process' global memory (e.g., variables defined outside of 'main'),
or is it an an actual memory object that is owned by the process?

IF it is a memory object that the process creates, how do the threads get
the address of the memory object?

Thanks.

Please email or post responses.

Les.


-- 
Les Hartzman                hartzman@kilroy.jpl.nasa.gov
Jet Propulsion Laboratory   M/S 238-528    (818) 354-5964
4800 Oak Grove Dr., Pasadena,  CA.  91109
From: steveh@goanna.cs.rmit.oz.au (Steven Hayes)
Newsgroups: comp.os.os2.programmer
Subject: Specifying little icon for system menu
Date: 17 Aug 92 14:51:40 GMT
Organization: Comp Sci, RMIT, Melbourne, Australia

I've noticed that some applications for PM have set their own 'small'
icon for the system menu at the top-left corner of a window, instead of 
letting PM dice up and use the normal sized icon associated with an 
application.  Since I find the special-purpose small icons more attractive, 
I'd like to know how to do it. Anyone know?

Steve
-- 
   Steven Hayes                                    |  steveh@rmit.edu.au
   Royal Melbourne Institute of Technology (RMIT)  |  +61 3 660-2693
Newsgroups: comp.os.os2.programmer
From: cdfannin@.ic.sunysb.edu (Chris D Fanning)
Subject: Re: Where am I going wrong???? 
Organization: State University of New York at Stony Brook
Date: Tue, 18 Aug 1992 06:53:39 GMT

In article <714078748snx@sugs.tware.com> landis@sugs.tware.com (Hale Landis) writes:
>While some of the readers/responders of this news thread have
>wandered off into the ozone, the basic question remains:  How do
>you access information about your non-PM session's virtual
>screen?
>
>Part of the answer may be found in Chapter 14 (Video PDD) of the
>OS/2 2.0 Technical Library:  Physical Device Driver Reference.  I
>have not read the entire chapter yet, but it may hold the key to
>the answer that Dave is searching for.
>
>--------------------------------------------
>Hale Landis                  Ph 408-423-4017
>tware!sugs!landis -or- landis@sugs.tware.com
>--------------------------------------------

I posted a question very similar to the one here.  I have documentation
from OS/2 1.1 and know about the 16-bit Vio calls.  However, there have
been many enhancements to them by version 1.3.  The thing that I wanted
to know was how to find out what the available screen modes were...

Things I know you can do with the Vio calls is find out the type of display
adapter you're using... this will answer my question on hardware that I'm
familiar with, but what about XYZ's display card that runs 80x25 mode in
800x600 resolution?  (What I wanted was to be able to generate cursor sizes
based on the resolution of the screen (block cursor, overbar cursor, etc..)
and the ability to use different text screen modes so I wouldn't have to
create tables of information for every display mode and adapter..)  Well,
no one was able to help me.. but I'm sure it can be done because the little
command line program "MODE" works just so well changing display modes.

Ok, I'm done whining... what type of information are you looking for?

(And, if anyone could lick my problem.. I'd REALLY appreciate it..!)

Chris
(Email to me might bounce... beware.)
Newsgroups: comp.os.os2.programmer
Subject: Re: Where am I going wrong????
From: jstewart@desire.wright.edu
Date: 17 Aug 92 16:44:54 EST
Organization: Wright State University 

In article <1992Aug15.230628.2317@stortek.com>, eldenbrg@stortek.com (Dave Eldenburg) writes:
> In article <713823955snx@sugs.tware.com> landis@sugs.tware.com (Hale Landis) writes:
>>In article <1992Aug14.153224.26174@stortek.com> eldenbrg@stortek.com writes:
>>  >
>>  > I have been through the manuals and I cannot figure out how to get
>>  > the number of lines and the number of columns defined for the screen
>>  > in a non-pm program.
>>  >
>>Use the VioGetMode() call.
> 
> I beleive this is an OS/2 1.x call and is only supported for migration.
> There is no referance to this or any other Vio call in the IBM Technical
> Doc.
> 
> Thanks anyway Hale, see you in a couple weeks...
> 
> Still seeking info.
> 
> Dave

	Interesting that this should be brought up.  It was my impression also
the the Vio calls only existed for migration purposes.  But if you take a peek
at the REXX library source code you will see that it uses this.  The REXX
source code was in the toolkit example programs I think.  Looks to me like IBM
is still using it:)

					John Stewart

Newsgroups: comp.os.os2.programmer
From: phbeh%Solomon.Technet.sg (Beh Pang Han)
Subject: Request info for CD-ROM driver interface
Organization: National University of Singapore
X-Newsreader: Tin 1.1 PL5
Date: Wed, 19 Aug 1992 03:35:30 GMT



Xref: sparky comp.os.os2.programmer:4268 comp.os.os2.networking:1009 comp.os.os2.misc:27545
Organization: University of Illinois at Chicago
Date: Monday, 17 Aug 1992 15:26:01 CDT
From: David James Alexander Hanley <U55870@uicvm.uic.edu>
Newsgroups: comp.os.os2.programmer,comp.os.os2.networking,comp.os.os2.misc
Subject: Communication between DOS windows

  I am writing a bbs program that will run under ms-dos and will require a
special term program.  To do this properly, it would seem easiest to hook
up two machines through the srial prot, and develop the bbs program on one,
the the term on the other.  However, I do not have two machines at my disposal,
so I have a problem.  I would like to use os2( I'm using it now anyways ) and
run the term program in one window, and the bbs program in another.  I can
develop the software this way, and worry about adding the serial/phone routines
when the bbs software is completely written/debugged.  Does anyone know of a
practical way to communicate between DOS windows in os2?  I need to send
information bolth ways, obviously, just like a bbs and term.  Thank you
for any help.


dave
From: spencer@jupiter.sun.csd.unb.ca (D. E. Spencer CSD)
Newsgroups: comp.os.os2.programmer
Subject: PM Term and Sytek.
Date: 12 Aug 92 18:41:26 GMT
Organization: University of New Brunswick

I have just begun using OS/2 PM Terminal .. and it works ok with a modem,
but I tried to use it with a sytek LAN  ... it can call the box ok, but
once a connection is established, the enter key will not respond ...
Control-m will act as it does, and I even tried to remap the enter key to
be an actual control m, but it would not allow me to change the keyboard
mapping.

Any one have a suggestion?

-- 
| |              |~\              | Dwight E. Spencer @ Comp. Services Center
|_|  _  _  _ ___ |_/  _      _    | University of New Brunswick
|~| |_ |_||_) |  | \ |_) |/ |_)   | Fredericton, New Brunswick, Canada
| | |_ | || \ |  |_/ | \ |\ | \   | Internet: spencer@jupiter.sun.csd.unb.ca
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps,comp.text.tex
From: ednstras@kraken.itc.gu.edu.au (Michael Strasser)
Subject: Re: OS/2 DVISCR problem (EmTeX)
Keywords: OS/2 DVISCR TeX EmTeX graphics
Organization: ITC, Griffith University, Brisbane, Australia
Date: 20 Aug 92 02:03:53 GMT

Tony,

I suggest switching to dvipm, which writes to a PM window.  That way your
output will work with whatever PM screen driver you're currently using.

I suppose that dvipm is widely available now, I haven't used TeX for 6
months or so (when it was still in beta release only).

I know this doesn't answer your question, but it relieves the problem.

-- 
Mike Strasser                       Internet: M.Strasser@edn.gu.edu.au.
Education Division                  Fidonet:  3:640/308.2@fidonet
Griffith University
Brisbane, Australia
Xref: sparky comp.os.os2.programmer:4349 comp.os.os2.misc:27856