HDTenEightyP/NetNews huggingface dataset:
From: ghenniga@NMSU.Edu
Subject: Re: TCP/IP Socket library for OS/2?
Reply-To: ghenniga@NMSU.Edu
Organization: New Mexico State University - Electromagnetics Group
Date: Wed, 12 Aug 1992 19:07:58 GMT


>In article <GHENNIGA.92Aug11153538@ampere.ampere> ghenniga@NMSU.Edu writes:
>>
>>I remember someone mentioning that they were writing a PD socket library for
>>OS/2 2.0 and IBM's TCP/IP 1.2(1). Any new news on a release date for this?
>>I really hate having to log in to a Unix machine to use gnus to read news
>>and I think the tcp.c file gnus uses is very simple and a socket library for
>>OS/2 would allow me to port it to the OS/2 port of GNU Emacs!
>>
>>Thanks for any info,
>>Gary
>>(ghenniga@NMSU.Edu)
>
>I've got IBM TCP/IP v1.1 and it comes with socket libraries in the base 
>package.  What more were you looking for? 
>Also, TCP/IP v1.2 comes with a newsreader application.

The copy I've seen did NOT come with the socket libraries. My understanding
is that you have to purchase the "Programming Libraries" as a separate
package for TCP/IP 1.2. Anyway I searched the hard drive just in case and 
the only *.lib files have nothing to do with TCP/IP and the only *sock*.*
files are header files that came with GCC. Unless I'm missing something I
think the assumption that 1.2 has a socket library is incorrect.
	As for the news reader that came with it. I have NEVER gotten it to
work satisfactorily. I'll read one group and nothing I try allows me to read
any other group. Also, I am of course familiar with gnus.
	Anyway, the question still stands: What happened to the free socket
library someone here was considering writing?

Gary Hennigan
+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=++=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
+= PhD Student, Computational Electromagnetics  | Member: Utilitarian  +=
+= New Mexico State University                  | .signature club      +=
+= Phone: (505)646-4808                          ----------------------+=
+= email: ghenniga@NMSU.Edu                                            +=
From: feustel@netcom.com (David Feustel)
Newsgroups: comp.os.os2.programmer
Subject: Re: SHORT, USHORT, and other absurdities
Date: 22 Aug 92 14:15:06 GMT
Organization: DAFCO: OS/2 Software Support & Consulting

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;

Also, I would have liked WORD, HWORD and DWORD as length specifiers
where WORD is the register size. Oh Well...
-- 
Dave Feustel N9MYI <feustel@netcom.com>
---
Given Civil Seizure, from the DEA's point of view, winning the War on
Drugs would be killing the Goose that lays golden eggs.

The Drug War is a government-sponsored, taxpayer-financed,
full-employment program for psycho/socio-paths, wannabees and
gonnabees.
Newsgroups: comp.os.os2.programmer
From: bergstro@src.honeywell.com (Pete Bergstrom)
Subject: Using Toolkit with GCC - Any problems?
To: comp.os.os2.programmer
Posted-Date: Tue, 18 Aug 92 08: 23:08 CDT
Organization: Honeywell Systems & Research Center
Date: Tue, 18 Aug 1992 13:23:08 GMT
Received-Date: Tue, 18 Aug 92 08: 23:10 CDT

gogol@diku.dk (Peter Skov Knudsen) wrote:

>I'm considering buying the Developer's Toolkit, but before I do
>I want to make sure that it will do what I excpect it to do. So
>could anyone out there help with the following:
>
>1) I'm told that the Developer's Toolkit comes with the required libraries
>and header files to exploit the full OS/2 2.0 API. Now I don't want to
>invest the $$$ in C Set/2, so is it possible to use the Toolkit with
>GCC 2.1 in any sensible manner. Do I just replace the headers in
>/gnu/os2-include with the ones from the Toolkit, copy the Toolkit's libraries
>to /gnu/lib and start developing, or is there more to it? Anybody with experience
>using the Toolkit with GCC 2.1, please comment on how seamlessly the two
>integrate.

The only other thing I had to do was edit all of the header files to
include an 'asm("x")' at the end of the prototype for each and all
functions x.  If someone could tell me how to do a diff that others
could use to patch *their* header files, I'll upload my changes to
ftp-os2. 

>2) What exactly does the Workframe/2 do. Sadly, in Denmark there's no
>special offer on the Developer's Workbench, so I have to buy the Toolkit
>and Workframe/2 seperately. I just asked about the prices, and it shows
>that I have to bleed aprox. $125 for Workframe/2. What does it do that
>justifies this price?

My opinion is that it's mostly a "Pretty Make".  Of course, in the
U.S., it contains the LIB.exe program that the Toolkit doesn't, so
I'll probably have to buy the workframe just to use that.

>I know that this propably belongs in the FAQ, but I couldn't find any
>detailed information - especially 1) is a bit unclear. Any comments
>will be mostly appreciated.

A lot of what IBM's up to is unclear and needs to be fixed.
Fortunately, a lot of IBMers lurk in this newsgroup and I hope
they're communicating some of these more significant gaffes to the
right people to be fixed.

Pete
Newsgroups: comp.os.os2.programmer
From: jsykes@dadd.ti.com (Jonathan Sykes)
Subject: OS/2 2.0 LIB Format
Reply-To: jsykes@dadd.ti.com
Organization: Texas Instruments Inc
Date: Thu, 13 Aug 1992 17:54:11 GMT

I've just received my copy of the OS/2 developers toolkit - unfortunately it
doesn't contain a LIB.EXE command. I am willing to write one if someone can
describe the format of the .LIB files? I'm planning to use the toolkit with
gcc/2.

---
           __o
           \<,
_________()/ ()_______________________________________________________________
Jon Sykes                                                   jsykes@dadd.ti.com
Design Automation Div.                                          (214) 997-2916
Texas Instruments Inc. Dallas, Tx.
From: KENKAHN@PKSMRVM.VNET.IBM.COM ("Kenneth A. Kahn")
Newsgroups: comp.os.os2.programmer
Subject: Re: Process/Thread Memory Sharing
Date: 15 Aug 92 10:13:59 GMT

Organization: Staff of IBM Fellow - NetWork Computing
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 <1992Aug15.003258.24311@elroy.jpl.nasa.gov> Les Hartzman writes:
>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?

Remember that a process is nothing more than a single application.  A thread
is logically just a subroutine that happens to be running asynchronously at
the same time as the main program (thread 1; e.g. main function in C).  All
threads have access to the program's Global storage pointed to by it's DS.
If any thread, including thread 1, happens to allocate more storage using an
API like DosAllocSeg or DosAllocShrSeg, all threads have access to that new
storage.  The on;y 'trick' is in order to access the allocated storage you
have to store the Selector to it in a global area (or you could store an
actual pointer that you create via MAKEP or similar).

In general, resources created by threads, e.g. Storage, Queues, File Handles,
are accessable by the entire owning process.
Xref: sparky comp.os.os2.programmer:4329 comp.os.os2.misc:27759
From: uma@natinst.com (Uma Arunkumar)
Newsgroups: comp.os.os2.programmer,comp.os.os2.misc
Subject: C Set/2
Date: 19 Aug 92 20:38:11 GMT
Organization: National Instruments, Austin, TX



****************** C Set/2   QUESTION ************************
I am trying to compile a Microsoft C 6.0 C program 
in C Set/2 version 1.00.

   The program compiles without errors in MSC 6.0.  But
   it is giving errors at one point.

 (i)  There is a structure like the one below in "prog1a.h":
   struct {
          short a;
          short b;
          short (* fun_name)();
   } command;

  (ii) There is an array of structures in "prog1.c"
       which has the above structure type.
       I am initializing the array of structures.
       commands cmd_array[] = { 
                              {1,    2,   Test1}
                              {3,    4,   Test2}
   };

  (iii) The problem arises in initializing.  Test1 and Test2 are given
        prototypes in a file called "prog1b.h" as
        
        extern short Test1(short p, short q, short r);
        extern short Test2(short x, short y);

  (iv) When I compile giving the command 
            icc /c /w3 /o+ prog1.c prog1a.h prog1b.h

       I get the following error messages:

       1. error EDC0227 : The return types of the functionm pointers are incompatible.
       2. informational EDC0140: Operand has type pointer to _Optlink function returning signed short integer.
       3. informational EDC0140: Operand has type _Optlink function returning signed short integer.

       WHAT DOES THIS MEAN?
       How should I initialize a table with function pointers?
       In MSC 6.0, the function name evaluates into pointer expression.
       How about C Set/2?
       What is wrong in the above code?


I WOULD HIGHLY APPRECIATE SOME HELP.

Thanks in advance.

My Email address is uma@natinst.com.

uma.
From: jamshid@ut-emx.uucp (Jamshid Afshar)
Newsgroups: comp.os.os2.programmer
Subject: Re: Whats wrong with floor()?
Summary: %lf is not a correct printf() argument specifier
Date: 20 Aug 92 22:09:31 GMT
Reply-To: jamshid@emx.utexas.edu
Followup-To: comp.lang.c
Organization: The University of Texas at Austin; Austin, Texas

Followups directed to comp.lang.c.

In article <1992Aug16.164006.2345@panix.com> os2man@panix.com (Larry Salomon Jr.) writes:
>>double tmp=33433.740234;
>>printf("%f %f",tmp,floor(tmp));
>>...
>
>This shouldn't have anything to do with it, but %f is for float types.  You
>should be using %lf.

That's a common misconception.  "%f" is correct for either float or
double parameters to printf().  Floats convert to double when passed
to a variadic function (eg, printf(const char*, ...)) or to an
unprototyped function.  In fact, ANSI C doesn't define a "%lf" for
printf(), so the following could crash on a very strict compiler:
	double d = 1.2;
	printf("%lf", d);  // error, "%lf" not valid for printf()
Because its such a common error, though, compilers just ignore the 'l'.

You *must* properly use %lf or %f for *scanf(), though.

Jamshid Afshar
jamshid@emx.utexas.edu
Newsgroups: comp.os.os2.programmer
From: GG.MPD@forsythe.stanford.edu (Michael Durket)
Subject: MKMSGF help
Organization: Stanford University, California, USA
Distribution: na
Date: Mon, 17 Aug 1992 18:41:40 GMT

Newsgroups: comp.os.os2.programmer
From: rb532@rbhp17.rbg.informatik.th-darmstadt.de ()
Subject: Bug in GCC / OS 2 ??
Date: Thu, 13 Aug 1992 09:49:11 GMT
Organization: TH Darmstadt
Keywords: GCC

Hi.

I have 2 problem.s.

The first is one bug of gcc (I think)
I wrote a program like this:

include <stdio>;

main()
{char c

  printf("begin of program");
  do { c = getchar ();
	printf("%d",c)}
   while (c != "X");
  printf("End");
}

(perhaps ther are some syntax Errors now, but this doesn't matter)
I compile this program with GCC 2.1.
The result is an executable file.
I run it, and it asks for input, until I press X, and then prints 
"begin of program", then prints the digits, and then prints the "end"
why is this disorder ?

The second is that the getch() is not in the library (I get an Error 
when I compile.

Is there an updatet lib for gcc 2.1, or how can I use the one from 
OS2 devlopment kit.

Thank you
Newsgroups: comp.os.os2.programmer
From: ddesroch@oracle.uucp (David DesRoches)
Subject: Re: Modifying Menu Items in OS/2? (probelm)
Keywords: OS/2, Menu, Programmingn
Organization: Oracle Corp., Redwood Shores CA
Date: Wed, 12 Aug 1992 22:20:19 GMT
X-Disclaimer: This message was written by an unauthenticated user
              at Oracle Corporation.  The opinions expressed are those
              of the user and not necessarily those of Oracle.

andreasg@nynexst.com (Andreas Girgensohn) writes:

>In article <1992Aug10.143156.16042@monu6.cc.monash.edu.au>
>mdonalds@monu6.cc.monash.edu.au (Michael Donaldson) writes:
>>[...]
>>p.s.  PM's on-line help manual points to WinQuerySetMenuItemText?  -- I've
>>      tried it and a linker error is spat out because it can not be found.

>I haven't tried it but I found the following in the file pmwin.h:

>#define WinSetMenuItemText(hwndMenu,id,psz) ((BOOL)WinSendMsg(hwndMenu,MM_SETITEMTEXT,MPFROMSHORT(id),MPFROMP(psz)))

>Andreas


WinSetMenuItemText() is a convenience macro for sending the MM_SETITEMTEXT
message to the menu which contains the item you want to change.

To query the item's text, send the MM_QUERYITEMTEXT message.  Unfortunately,
there is no convenience macro for the query operation.

The documentation for these two messages can be found in the online PM
reference under "Message Processing : Menu Control Window : Menu Control
Window Messages."


The function referred to, "WinQuerySetMenuItemText()" appears to be a typo
in the WinSetMenuItemText() example code in the online reference.  It certainly
violates the otherwise consistent Query/Set function and message naming
schemes.

Dave DesRoches





























































Newsgroups: comp.os.os2.programmer
From: bbs.dennis@tsoft.sf-bay.org (Dennis Yelle)
Subject: Is link386 slow, or what?
Organization: The TSoft BBS and Public Access Unix, +1 415 969 8238
Date: Thu, 20 Aug 1992 01:24:36 GMT

I am porting a DOS program to OS/2.
I successfully linked it for the first time today with LINK386.
It took 1 minute 13 seconds.
I went to OS/2's DOS command line, and compiled and linked
the same source code for DOS, and the LINK time was 5 seconds,
with MicroSoft's LINK 5.13.
Does anyone know how to speed up LINK386?

The code was compiled with IBM's C Set/2 compiler.
I build 3 .lib's and the link step links 5 .obj's with
my 3 .lib's plus IBM's .lib's.
The .lib's were created by IBM's LIB.EXE.
The LINK386 options are:

  LINK386 /a:16 /base:65536 /m /noi /pm:vio /st:0x1a000

I have "DISKCACHE=512,LW,32" in CONFIG.SYS.
I am running on a 33 Mhz 486 with 16 MB of RAM.

LINK386 produces a 150K .EXE file, and takes 1 min 13 seconds to do so.
While LINK386 is running, the disk drive light is on constantly, and
PULSE shows the system is about 20% busy.

Can anyone help???

--
Dennis Yelle (bbs.dennis@tsoft.sf-bay.org)
From: "stephen dawson" <stephen.dawson@canrem.com>
Newsgroups: comp.os.os2.programmer
Subject: os/2 programming book
Date: 13 Aug 92 20:30:07 EST
Reply-To: "stephen dawson" <stephen.dawson@canrem.com>
Distribution: comp
Organization: Canada Remote Systems

Choong Huei Seow writes

CH>I am looking for OS/2 2.0 programming manuals to supplement those
CH>offered by IBM, could anyone recommend a few ?

The OS/2 Technical Reference Library is superb, albeit pricy.

    STEPHEN         Look through the Windows and you will see OS/2!
    ^^^^^^^    :-)  Walking and chewing gum at the same time.

 stephen.dawson@canrem.com
 Entered 08-13-92 at 6:47pm in Downsview, Ontario

 * DeLuxe2/386 1.25 #3969 * I think, therefore I am 'dangerous.'
--
Canada Remote Systems  - Toronto, Ontario/Detroit, MI
World's Largest PCBOARD System - 416-629-7000/629-7044
From: landis@sugs.tware.com (Hale Landis)
Newsgroups: comp.os.os2.programmer
Subject: Where am I going wrong???? 
Distribution: world
Date: Mon, 17 Aug 92 19:12:28 GMT
Organization: SUGS

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
--------------------------------------------
Xref: sparky comp.os.os2.programmer:4351 comp.lang.c:12591
From: mn87504@cs.tut.fi (Naatula Mika)
Newsgroups: comp.os.os2.programmer,comp.lang.c
Subject: Re: malloc causes a segmentation violation!?
Date: 20 Aug 92 20:49:06 GMT
Organization: Tampere University of Technology

In article <chuckb.714275722@milton> chuckb@milton.u.washington.edu (Chuck Bass) writes:

> I am wondering if this is common among people who program in C.
> I haven't been programing in multiple environments (TurboC and
> an SGI workstation only).  I write code that runs on both and
> do *lots* of dynamic memory allocation.  Is this a bad habit,
> terrible habit, good habit?  It seems to me that a general
> program should be able to adjust to the required size
> dynamically.  

Usually a program must be able to to change dynamically the required
data size. The idea was NOT to make data allocation static but to make
dynamic allocation safer. That's why you should not call malloc
directly. 

-- 
             __   | Mika Naatula            Email: mic@cc.tut.fi
|\ //| ||  //  \  | Lindfrosinkatu 8 A 11          mn87504@cs.tut.fi
| \/ | || ||      | 33720 Tampere, FINLAND
|    | ||  \\__/  | 931-185 993
--
From: gogol@diku.dk (Peter Skov Knudsen)
Newsgroups: comp.os.os2.programmer
Subject: Using Toolkit with GCC - Any problems?
Date: 18 Aug 92 12:44:44 GMT
Organization: Department of Computer Science, U of Copenhagen

I'm considering buying the Developer's Toolkit, but before I do
I want to make sure that it will do what I excpect it to do. So
could anyone out there help with the following:

1) I'm told that the Developer's Toolkit comes with the required libraries
and header files to exploit the full OS/2 2.0 API. Now I don't want to
invest the $$$ in C Set/2, so is it possible to use the Toolkit with
GCC 2.1 in any sensible manner. Do I just replace the headers in
/gnu/os2-include with the ones from the Toolkit, copy the Toolkit's libraries
to /gnu/lib and start developing, or is there more to it? Anybody with experience
using the Toolkit with GCC 2.1, please comment on how seamlessly the two
integrate.

2) What exactly does the Workframe/2 do. Sadly, in Denmark there's no
special offer on the Developer's Workbench, so I have to buy the Toolkit
and Workframe/2 seperately. I just asked about the prices, and it shows
that I have to bleed aprox. $125 for Workframe/2. What does it do that
justifies this price?

I know that this propably belongs in the FAQ, but I couldn't find any
detailed information - especially 1) is a bit unclear. Any comments
will be mostly appreciated.

----------------------------------------------------------------
Peter S. Knudsen, email gogol@diku.dk
Computer science student, University of CopenhagenxBA    
Newsgroups: comp.os.os2.programmer
From: seg@Ingres.COM (scott e garfinkle)
Subject: Re: OS/2 2.0 LIB Format
Organization: Ingres, an Ask Company
Date: 16 Aug 92 22:56:13 GMT

In article <1992Aug13.175411.29093@csc.ti.com> jsykes@dadd.ti.com writes:
>I've just received my copy of the OS/2 developers toolkit - unfortunately it
>doesn't contain a LIB.EXE command. I am willing to write one if someone can
>describe the format of the .LIB files? I'm planning to use the toolkit with
>gcc/2.

1) The toolkit does come with LIB -- it's just that it's in the workframe
stuff.  Install workframe if only for the lib.

2)  The LIB format is the same as it's always been.  Only the .OBJ files
have changed somewhat.
Newsgroups: comp.os.os2.programmer,comp.os.os2.advocacy
From: orville%weyrich@tnet.com (Orville R. Weyrich)
Subject: Re: A question or three.
Reply-To: orville@weyrich.UUCP (Orville R. Weyrich)
Organization: Weyrich Computer Consulting
Distribution: na
Date: Mon, 17 Aug 92 01:22:04 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.
>
>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).
>

Is this the problem that I have when I try to copy, move, or shred a
large directory by dragging on the WPS? The system doesn't seem to want to
give me control back until it is finished.



orville

--------------------------------------       **********************************
Orville R. Weyrich, Jr.                          Weyrich Computer Consulting
Certified Data Processor                       POB 5782, Scottsdale, AZ 85261
Certified Systems Professional                      Voice: (602) 391-0821
Certified Computer Programmer                Internet: orville%weyrich@tnet.com
--------------------------------------       **********************************
Newsgroups: comp.os.os2.programmer
From: harris@garfield.catt.ncsu.edu (Michael Harris)
Subject: Re: Using fonts in several windows
Organization: North Carolina State University
Date: Wed, 19 Aug 1992 00:26:58 GMT

ekl@fics.uucp writes:

>In a PM program I am working on, I need to use a font in several
>windows.
>
>Is there any way I can use WinCreateLogFont *once* for my entire
>application, and then use a lLcid (local id) for all my windows?
>
>Or, do I have to use WinCreateLogFont once per window? (Which I
>don't want to, but...)

The LCID's are local to each window presentation space.
______________________________________________________________________________
     Michael Harris - harris@catt.ncsu.edu or harris@carvm3.vnet.ibm.com
 System Administrator, Computer & Technologies Theme Program, NC State Univ.
(My opinions are my own and do not represent those of NCSU or IBM Corporation)
Newsgroups: comp.os.os2.programmer,comp.os.os2.apps
From: ramdas@natinst.com (Malathi Ramdas)
Subject: Writing Device Drivers for OS/2 2.0
Organization: National Instruments, Austin, TX
Date: Fri, 21 Aug 1992 15:18:52 GMT


    I am in the process of writing an instrument control character based devcie
driver for OS/2 2.0. The device driver architecture under OS/2 2.0 is still
16-bit. Does that mean that I need to generate 16-bit device driver code. (ie:
generate code using a 16-bit compiler and 16-bit linker). Also, what would
be the address format of the data address in an IOCTL request packet passed by
the kernel on behalf of an application making a DosDevIOCtl API call to my
device driver? Would it be in a 16:16 (selector:offset) form or a 0:32 
address form (flat address)? Would it depend on whether the application is 
16-bit or 32-bit? From what I read all 16-bit processes  get tiled
into a flat virtual address space. I hope to hear that all virtual addresses
that gets passed to my driver is in a 0:32 bit form.
   Is there a 32-bit assembler that goes out with OS/2 2.0. I still have the
masm assembler that is 16-bit. I have not received anything along with toolkit



Newsgroups: comp.os.os2.programmer,comp.os.os2.networking,comp.os.os2.misc