HDTenEightyP/NetNews huggingface dataset:
From: "mike frisch" <mike.frisch@canrem.com>
Subject: gcc files...
Reply-To: "mike frisch" <mike.frisch@canrem.com>
Organization: Canada Remote Systems
Distribution: comp
Date: 13 Nov 92 16:57:58 EST


     Can somebody email me a listing of all of the necessary files
(and their paths) for GCC 2.2.2 for OS/2?  I downloaded two 1.4 meg
archives thinking that I had all of the files only to find out that I
don't. When I try to compile a simple 'hello world' program, I'm told
that the lib STDIO.H can't find two files.  Sure enough, I looked in
STDIO.H and it's looking for two files that I don't have.

     Much thanks in advance!  I am looking to get some development
going, but I've had nothing but bad luck getting something to work for
me.

Mike.

+---------------------------------------------------------------------+
| Mike Frisch                          Usenet: mike.frisch@canrem.com |
| Newmarket, Ontario, Canada                                          |
+---------------------------------------------------------------------+

---
  OLX 2.2  Your sweet words suck the morning dew off the honeysuckle
--
Canada Remote Systems  - Toronto, Ontario
World's Largest PCBOARD System - 416-629-7000/629-7044
Newsgroups: comp.os.os2.programmer
From: tranx@wl.aecl.ca
Subject: ASK: How to send a character to serial port from OS/2 program ?
Organization: AECL RESEARCH
Date: Wed, 11 Nov 1992 21:13:31 GMT

A: I tried to write a program to communicate with my instrument through
   a serial port(eg. COM1). I have C Set/ 2 and Work Frame but I couldn't
   find a system call that allows me to "open COM1: for example" and return
   a handle. So that I can use this handle to send a character to this serial
   port. Would you like to help me out?
From: fred@oneup.gwinnett.com (Fred Christianson)
Newsgroups: comp.os.os2.programmer
Subject: children of frame windows
Summary: system is hanging when frame is closed
Date: 12 Nov 92 10:39:30 GMT
Article-I.D.: oneup.721564770fred.fred
Followup-To: comp.os.os2.programmer
Organization: One Up Corporation



--
 

I have a program which allows you to select any window on the desktop, 
and then creates other windows which are children of the selected window.  

In most cased, when the selected window is destroyed, my child windows
get destroyed.  But, if the selected window is a frame window the 
system hangs (or slows to a crawl) when the frame window is closed.  This
does not happen with any other type of window I've tried, but happens every
time with the frame window parent.

The only messages my windows get after the frame is destroyed, are

	WM_ADJUSTWINDOWPOS and WM_WINDOWPOSCHANGED.

No WM_DESTROY, or anything else.

Any ideas.


Thanks,
Fred Christianson (fred@oneup.gwinnett.com)
From: Mat.Kramer@f115.n282.z1.tdkt.kksys.com (Mat Kramer)
Sender: FredGate@tdkt.kksys.com
Newsgroups: comp.os.os2.programmer
Subject: OS2 Online support servic
Date: Thu, 12 Nov 1992 08:47:00 -0600

JS> A friend of mine is interested in getting online access to forums related t
JS> OS2 and
JS> OS2 programming.  At this point he is trying to gather information on the
JS> various
JS> services which are available i.e. compuserve, internet, etc... and the cost
JS> and value

IBM is putting a lot of "official" support into CompuServe:  there are 4 forums
(with high traffic), and the WWDAP (World-Wide Developers' Assistance
Program) which is implemented from CIS, I think.  Of course, it's expensive.
Another good source of information is IBMLINK, which is free if you join the
DAP, and has local access in SF, I'm sure.  Call IBM's developer support
"hotline" at 407-982-6408
.

 * KWQ/2 1.0C * 75746.2404@compuserve.com


 * Origin: (1:282/115)
Newsgroups: comp.os.os2.programmer
From: loekken@Xenon.Stanford.EDU (Jack Viktor Loekken)
Subject: gcc (emx version) and long filenames.
Organization: Computer Science Department, Stanford University.
Date: Sun, 8 Nov 1992 04:55:19 GMT

I am having trouble with gcc (emx version) and long filenames on
HPFS partition.

example :

#include <stdio.h>

void main()
{
FILE *f1,*f2,*f3,*f4;

	f1 = fopen ("this.file.already.exists","rb");
	f2 = fopen ("this_file_also_exists","rb");
	
	f3 = fopen ("this.file.should.be.created","wb");
	f4 = fopen ("so_should_this_file","wb");

	if (!f1)
	  printf ("\nUnable to open <this.file.already.exists>");

	if (!f2)
	  printf ("\nUnable to open <this_file_also_exists>");

	if (!f3)
	  printf ("\nUnable to create <this.file.should.be.created>");

	if (!f4)
	  printf ("\nUnable to create <so_should_this_file>");

	/** do some processing **/
	fcloseall();
}

The program prints out : 

	Unable to open <this.file.already.exists>

even (as the filename implies) it does exist. Also, instead
of creating the file 'this.file.should.be.created', it creates the
file 'this.fil.sho.be.cre'. The filenames that did not contain periods
were handled correctly.

The program was compiled with the command line :

gcc -o test.exe test.c

Then I tried the following compile commandline :

gcc -o test.exe test.c /emx/lib/io/open.c /emx/lib/sys/seterrno.c -los2

This time the program behaved correctly. Can anybody explain this ?
I assume that the I/O functions resides in the dll's, but I haven't
found out how to rebuild these. Anybody knows ?

Jack

Newsgroups: comp.os.os2.programmer
From: hwb@machnix.mathematik.uni-stuttgart.de (Harald Boegeholz)
Subject: redefining national language keys in EPM
Organization: Mathematisches Institut B, Universitaet Stuttgart, Germany
Distribution: comp
Date: Fri, 13 Nov 1992 17:13:21 GMT

Hello!


I am trying to redefine the Umlaut keys on my German keyboard for EPM
5.51.

Basically, I am trying to compile this with etpm:

def '*' =
   keyin 'something_else'

This works fine when * is a normal alphabetic character (e.g., 'a' -
'z'). But it fails when I use a German Umlaut character: etpm
complains about "invalid key name".

The EPM Technical Reference states that I can redefine "any printable
character whose ASCII value is between 0 and 255". So how do I
redefine the a-Umlaut key (ASCII 132), which is definitely printable
and between 0 and 255?


Thanks for any help
Harald
--
Harald Boegeholz |Home:       hwb@texnix.stgt.sub.org (read daily)
                 |University: hwb@machnix.mathematik.uni-stuttgart.de
                 |please don't send large (>100k) mail to my home address.
Newsgroups: comp.os.os2.programmer
From: jpenne@ee.ualberta.ca (Jerry Penner)
Subject: Re: DAP in Canada
Organization: University Of Alberta, Edmonton Canada
Date: Sat, 7 Nov 1992 09:02:31 GMT

Mark Kovarski <kovarski@zooid.guild.org> writes:

>This is to all Canadian users that are interested to join the IBM OS/2
>Developer Assistance Program (DAP). Once joined, you will receive the CD which
>will contain the beta OS/2, development tools, and much more. The package is
>available free of charge in Canada. No $15 or anything like that. Call
>946-3786 and ask for Ken Fadelle. He will send you the CD along with
 ^^^^^^^^

Is that a 1-800 number or what is the area code, please.  

>everything else.
-- 
Jerry Penner   jpenne@ee.ualberta.ca   Try a 1-line .sig today.
From: manne@Minsk.docs.uu.se (Magnus L|vkvist)
Newsgroups: comp.os.os2.programmer
Subject: DMA, help!
Date: 12 Nov 92 17:53:57 GMT
Organization: Uppsala University
NNTP-Posting-Host: minsk.docs.uu.se
Keywords: DMA device driver C

Im trying to write a device driver for a device that uses DMA to put a lot
of data into RAM. (On an ISA machine).

There is this problem with the OS/2 2.0 paged memory. How do I handle this?
Is there a way for me to allocate continous pieces of non-swappable 
physical memory in which the DMA puts the data?

Or should I use "scatter read" which I don't even know what it is and
haven't a clue how to implement. If this is the best solution where do I find
more information about it? And if this is the way to do it does it demand
something special from the hardware?


Any advice is very welcome!

Magnus
From: genshirt@aegsg.UUCP (E312 Genshirt)
Newsgroups: comp.os.os2.programmer
Subject: Booting-Problems with Kernel Debugger
Keywords: os2krnld
Date: 11 Nov 92 19:20:12 GMT
Organization: AEG-Seligenstadt, W. Germany


Booting kernel-debugger (IBM Dev. Toolkit 1.00) leads to the following
error-message:

Initializing D:\OS2\DLL\PMATM.DLL
GRE2006E PMERR_BASE_ERROR
GRE001S Firewall: SSLoadModule: bad doSSLoadModule

Ignoring the message results in:
...  bad DosFreeSeg

The PMATM.DLL File is dated with 03.19.92

Does anybody know what's wrong?

Thank you for any help

Thomas
From: gt4719b@prism.gatech.EDU (Dave Frascone)
Newsgroups: comp.os.os2.programmer
Subject: emx curses...
Date: 10 Nov 92 18:43:41 GMT
Organization: Georgia Institute of Technology



I just got emx with curses, but whenever I try a curses call,
I get a core dump.

I compile it like:

	gcc -o curstest.exe curstest.txt -lcurse -ltermc

Also, I have noticed that malloc runs MUCH slower with emx than with
the other version of gcc (2.2.2) with link386.  Why?


Dave


-- 
gt4719b@prism.gatech.edu
From: roe2@ellis.uchicago.edu (Cave Newt)
Newsgroups: comp.os.os2.programmer
Subject: Petzold returns!
Summary: latest PC Mag issue
Date: 10 Nov 92 01:19:14 GMT
Article-I.D.: midway.1992Nov10.011914.19474
Reply-To: roe2@midway.uchicago.edu
Organization: University of Chicago

Yes, I'm serious.  The current (24 Nov 92) issue of PC Magazine has
an Environments column by Petzold on OS/2 2.0 text and fonts.  There
isn't actually any code in this column, but he promises, "There are
many aspects to working with text and fonts under the OS/2 Presentation
Manager, and in the columns ahead I'll be touching on them all...."
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Those of us who had great fun puttering with Petzold's old '88/'89
columns will definitely look forward to the new ones.

Greg
From: KENKAHN@PKSMRVM.VNET.IBM.COM (Kenneth A. Kahn)
Date: Mon, 9 Nov 92 15:01:41 EST
Newsgroups: comp.os.os2.programmer
Subject: Re: How to access physical memory addresses
Organization: Staff of IBM Fellow - IBM Personal/370
Disclaimer: This posting represents the poster's views, not those of IBM
News-Software: UReply 3.0
X-X-From: KENKAHN@PKSMRVM.VNET.IBM.COM (Ken Kahn)

In <1992Nov9.165015.24602@msc.cornell.edu> Mike Thompson writes:
>I unfortunately bought a digitial I/O board which memory maps the chips rather
>than mapping them to I/O ports.  Consequently, I need to create a pointer to
>a specific physical memory address.
>
>Need:     Create a pointer to physical memory location 0x0CD400.
>Compiler: MSC 6.1 (also curious how to do with IBM CSET/2)
>
>Does anyone know how to create a pointer to a physical address in MSC 6.1.
>There is the MAKEP(seg,adr) function, but do I suspect the seg is a logical
>segment rather than a physical segment.  Also, how do I tell the operating
>system to let me bash away at low memory from my protected mode program.  Is
>there an equivalent of config.sys command and .def specification for port
>access?
>
>

The *ONLY* way to access physical memory in OS/2 is via a device driver.  If
the board did not come with such a DD, you will have to write one.

Newsgroups: comp.os.os2.programmer
From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
Subject: Need help on DosQueryProcAddr
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Tue, 10 Nov 1992 20:25:32 GMT

Hi,

I am currently working on the RCS 5.6.4 port to OS/2.
The original code was ported using Borland and MS C.
Both have a function called DosProcAddr that has
3 arguments. I am quite sure that this is the OS/2 emx
function DosQueryProcAddr. However, this function has
4 arguments. I inserted a dummy, and it compiles fine
except that it says:

ms/loginos2.c: In function `getlogin':
ms/loginos2.c:77: warning: passing arg 4 of `DosQueryProcAddr' from incompatible
 pointer type
ms/loginos2.c:88: warning: passing arg 4 of `DosQueryProcAddr' from incompatible
 pointer type

The code compiles and links fine, but I have no means of testing
whether the dynamic linking actually function, since I have
no netware stuff, to which it is supposed to link.

Can someone give me the syntax of this function call, maybe?

Erik



-- 
Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
----
   We are god, 'cause only we can create the idea of his existence
   in our holy brains...  (Yello)
From: bbm@po.CWRU.Edu (Brian B. Mathewson)
Newsgroups: comp.os.os2.programmer
Subject: What calls are 32-bits in OS/2 2.0?
Date: 12 Nov 1992 19:48:13 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Reply-To: bbm@po.CWRU.Edu (Brian B. Mathewson)
NNTP-Posting-Host: slc5.ins.cwru.edu


After learning that OS/2 does not have any 32-bit calls to support
character-mode interfaces (VIO calls), I want to know if this was
the only exception.

Are the Kbd and Mou functions have 32-bit counterparts?
(e.g. can you call them from 32-bit segments, and pass 32-bit
pointers instead of segment then offset...)

Are the Gpi and Win functions 32-bits?
Is the SOM 32-bit?

I know that all the Dos functions are 32-bit, but I only have
documentation on OS/2 1.x so I'm not sure about the rest.

Are there any plans to include 32-bit support for windowed and
full-screen character mode I/O?  From Ray Duncan's recent article
in PC Week I learned that NT has such support.  He suggested
that not including this feature was meant to force people to
program in PM.

Although I have seen example PM programs which are not too
difficult to set up, it's still a heck of a lot more work than
just calling a functions which print, or change the screen size,
etc.  It would be nice if they were 32-bit and could also have some
limited control over the window characteristics, like font size,
window size and position, etc.



-- 

Brian Mathewson   bbm@r2d2.eeap.cwru.edu
                  bbm at Cleveland Freenet
From: ochealth@unixg.ubc.ca (ochealth)
Newsgroups: comp.os.os2.programmer
Subject: Re: gcc (emx version) and long filenames.
Date: 8 Nov 1992 21:39:52 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
NNTP-Posting-Host: unixg.ubc.ca

In article <1992Nov8.045519.17076@CSD-NewsHost.Stanford.EDU> loekken@Xenon.Stanford.EDU (Jack Viktor Loekken) writes:
:I am having trouble with gcc (emx version) and long filenames on
:HPFS partition.
:
[ source example deleted ]

:The program prints out : 
:
:	Unable to open <this.file.already.exists>
:
:even (as the filename implies) it does exist. Also, instead
:of creating the file 'this.file.should.be.created', it creates the
:file 'this.fil.sho.be.cre'. The filenames that did not contain periods
:were handled correctly.

Nope. Sorry, you are imagining this :-) This does not happen.
Are you using EMX version 0.8e (ie the latest?) I've also got the service
pack installed, but I doubt if that would change anything.

:
:The program was compiled with the command line :
:
:gcc -o test.exe test.c
:
:Then I tried the following compile commandline :
:
:gcc -o test.exe test.c /emx/lib/io/open.c /emx/lib/sys/seterrno.c -los2
:
:This time the program behaved correctly. Can anybody explain this ?
:I assume that the I/O functions resides in the dll's, but I haven't
:found out how to rebuild these. Anybody knows ?

Maybe you have an old version of emx.dll or emxio.dll.
:
:Jack
:

-- 
______________________________________________________________________________
jpm: ochealth@unixg.ubc.ca         
                            Happily using OS/2 2.0 because MS Windows isNT ___
                                                      Insert VapourFeature ^^^
Newsgroups: comp.os.os2.programmer
From: ernst@opal.cs.tu-berlin.de (Ernst Kloecker)
Subject: Static variables in DLL's == shared memory ???
Organization: Techn. University of Berlin, Germany
Date: Wed, 11 Nov 1992 16:43:59 GMT

Hi,

If I load a DLL containing static variables at runtime and the same DLL
is loaded by another process, is the static data shared between the two
processes ? (Hopefully not ;-)


Cheers, Ernst.
--

-----------------------------------------------------------------------------
Ernst Kloecker      phone: ++49-30-6181635      e-mail: ernst@cs.tu-berlin.de
-----------------------------------------------------------------------------
Newsgroups: comp.os.os2.programmer
Subject: Shutting down code?
From: browland@vax1.umkc.edu
Date: Mon, 9 Nov 1992 13:46:02 GMT
Organization: University of Missouri - Kansas City

Question?
 Do any of you know how to shutdown OS/2 without user intervention?
 Something I could call from a REXX pgm or enter on command line?
 Source code, REXX cmd, ... or whatever ok.
 I have tried the DOSSHUTDOWN(01) routine on hobbes, but it crashes
 my machine and that of a coworkers also.

-robert

internet       browland@vax1.umkc.edu
at&t net       (913) 341-8768, (816) 767-2929    h/w
	
Newsgroups: comp.os.os2.programmer
From: ernst@opal.cs.tu-berlin.de (Ernst Kloecker)
Subject: Can semaphore survive process ?
Organization: Techn. University of Berlin, Germany
Date: Thu, 5 Nov 1992 16:08:28 GMT

Hi,

I want to use semaphores to protect critical regions in a multi tasking
application. A problem is that these tasks are only started when an external
event occurs (phone rings) and they are stopped by another external event
(hang up). Is it possible to establish semaphores which stay in effect as
long as the whole application (which consistes of sveral processes) is
running ?

Could I accomplish that by creating these semaphores in a "semaphore
manager process" which could also fulfill a watchdog function ?

Or could this kind of semaphore be created in shared memory ?

This question applies to both OS/2 1.3 and OS/2 2.0.


Thanks for any info, Ernst.
--

-----------------------------------------------------------------------------
Ernst Kloecker      phone: ++49-30-6181635      e-mail: ernst@cs.tu-berlin.de
-----------------------------------------------------------------------------
Newsgroups: comp.os.os2.programmer
From: smackinl01@cc.curtin.edu.au
Subject: Wanted: HPFS format
Organization: Curtin University of Technology
Date: Fri, 13 Nov 1992 02:11:07 GMT

Does anyone have, or know where to get, the specification of the HPFS filing
system? Is it available from IBM? Or is it somewhere mouldering away on a FTP
site?

The reason for asking is I'd like to write a driver for MS-DOS to let it see
an HPFS partition as a network drive, and also my brother would like to be able
to access the HPFS partition from Linux (a freeware 386 Unix).

So then - where does one obtain this information?

Anxiously awaiting all replies.....
Simon.
-- 
Masochism: "Hit me, hit me."
Sadism: "No."
From: adhir@cygnus.umd.edu (Alok Dhir)
Newsgroups: comp.os.os2.programmer
Subject: New V/Rexx programmer
Date: 13 Nov 92 05:28:41 GMT
Organization: /etc/organization

Hello all, I would like to do some programming in Rexx and have a few 
questions:  First of all, how can I create an editable text box to be used
for a text editor, using Rexx or Visual Rexx?  Second, how can I access
that neat little font used for the OS/2 2.0 Productivity apps like the
Calendar etc to be used in my Rexx programs... is there any way?

Is there a compiler for Rexx/Visual Rexx planned by anybody?  How about
visual programming languages...is there a Visual Basic for OS/2 planned
(or something similar)? 

Thanks for all the help...

-- 
 ============================================================================
 Al Dhir                      			   Technical Consulting Staff
 Internet: adhir@cygnus.umd.edu	  	 University of Maryland, College Park
 Bitnet:   adhir%cygnus.umd.edu@Interbit      (301) 405-1500 * (301) 405-3014
Newsgroups: comp.os.os2.programmer
From: db3l@ans.net (David Bolen)
Subject: Re: Static variables in DLL's == shared memory ???
Date: Wed, 11 Nov 1992 14:26:14 GMT
Organization: Advanced Network & Services, Inc. - Elmsford, NY

In article <1992Nov11.164359.2195@cs.tu-berlin.de> ernst@opal.cs.tu-berlin.de (Ernst Kloecker) writes:

>If I load a DLL containing static variables at runtime and the same DLL
>is loaded by another process, is the static data shared between the two
>processes ? (Hopefully not ;-)

It depends on how you define your DATA segments in your linker
definition file.  If you defined them as shared, then yes, all
processes using the DLL will see the same static storage.  If you
define it as nonshared (more typical) than each process will get it's
own copy.

Having them all share static data space can prove very convenient in
some cases, but you do have to be careful.

--
-- 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    \
\-----------------------------------------------------------------------/
From: redrooster@mavenry.UUCP
Newsgroups: comp.os.os2.programmer
Subject: Brief 2.5 & MSC 5.1B
X-CitNet-ID: 29617
Date: Thu, 05 Nov 92 05:10:15 GMT

1. I would like to make Brief 2.5 handle REXX in smart indent mode. any 
clue? 2. I'm looking for a copy of MSC 5.1B or MSC 6.0x any sellers?
From: tdukes@eng.auburn.edu (Todd J Dukes)
Newsgroups: comp.os.os2.programmer
Subject: Where do I send GCC/2 bug reports
Date: 12 Nov 92 23:23:45 GMT
Article-I.D.: helmholt.tdukes.921112172344
Organization: Auburn University Engineering

I am using the native OS/2 port of GCC 2.2.2 and am having a problem with
a virtual function creating a access violation where the same function 
non-virtual causes no problems. I haven't tried to isolate the problem yet
because I don't know who to contact if I find what is causing the bug.

Does anyone know who to contact with GCC 2.2.2 compiler bugs. Or if you
can show me how adding the virtual keyword to a function prototype can
cause a protection violation without being a compiler bug, I would appreciate
hearing that also.

Thanks
Todd
tdukes@eng.auburn.edu
Newsgroups: comp.os.os2.programmer
From: linstee@dutecaj.et.tudelft.nl (Erik van Linstee)
Subject: nmake and $*, $< and $?
Organization: Delft University of Technology, Dept. of Electrical Engineering
Date: Wed, 11 Nov 1992 11:11:24 GMT

I am just wondering why nmake doesn't support $< and $?
or does it? Mine can't seem to recognise them and gives
me a warning U4006: special macro undefined.

Erik


-- 
Erik van Linstee   |   Delft University of Technology   |   I'll be back ... 
----
   We are god, 'cause only we can create the idea of his existence
   in our holy brains...  (Yello)
Newsgroups: comp.os.os2.programmer
From: Mark Kovarski <kovarski@zooid.guild.org>
Subject: Re: DAP in Canada
Organization: ZOOiD BBS
Date: Tue, 10 Nov 1992 20:14:26 GMT

jpenne@ee.ualberta.ca (Jerry Penner) writes:
>Mark Kovarski <kovarski@zooid.guild.org> writes:
>
>>This is to all Canadian users that are interested to join the IBM OS/2
>>Developer Assistance Program (DAP). Once joined, you will receive the CD which
>>will contain the beta OS/2, development tools, and much more. The package is
>>available free of charge in Canada. No $15 or anything like that. Call
>>946-3786 and ask for Ken Fadelle. He will send you the CD along with
> ^^^^^^^^
>
>Is that a 1-800 number or what is the area code, please.  
>
>>everything else.
>-- 
>Jerry Penner   jpenne@ee.ualberta.ca   Try a 1-line .sig today.

Jerry,
it's 416-946-3786.
The number is in Toronto, Canada.