Jump to content

Extracting information from LIB files: Difference between revisions

From EDM2
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
The IBM OS/2 Warp Toolkit has several .LIB files. This is some quick tutorial on how to get information from this files.
The IBM OS/2 Warp Toolkit includes several import library (LIB) files. This is some quick tutorial on how to get information from these files.


==Using LIB.EXE==
==Using LIB.EXE==
LIB.EXE is included on Microsoft Library Manager contained in [http://hobbes.nmsu.edu/h-search.php?key=c7os2.zip c7os2.zip].  
The Microsoft Library Manager (LIB.EXE) is contained in [https://hobbes.nmsu.edu/?search=Microsoft_C7_OS2_1992-05-07.zip Microsoft_C7_OS2_1992-05-07.zip].  


To get some information on what os2386.lib contains you can call:
To get some information on what [[OS2386.LIB]] contains, you can call:
 
:<tt>LIB OS2386.LIB, OS2386.LST</tt>
lib.exe os2386.lib,os2386.lst


It will generate the os2386.lst text file with something similar to:
It will generate the os2386.lst text file with something similar to:
  DDF32BEGINLIST....DDF32BEGINLIST    DDF32BITMAP.......DDF32BITMAP
  DDF32BEGINLIST....DDF32BEGINLIST    DDF32BITMAP.......DDF32BITMAP
  DDF32ENDLIST......DDF32ENDLIST      DDF32HYPERTEXT....DDF32HYPERTEXT
  DDF32ENDLIST......DDF32ENDLIST      DDF32HYPERTEXT....DDF32HYPERTEXT
DDF32INFORM.......DDF32INFORM      DDF32INITIALIZE...DDF32INITIALIZE
DDF32LISTITEM.....DDF32LISTITEM    DDF32METAFILE.....DDF32METAFILE
DDF32PARA.........DDF32PARA        DDF32SETCOLOR.....DDF32SETCOLOR
DDF32SETFONT......DDF32SETFONT      DDF32SETFONTSTYLE..DDF32SETFONTSTYLE
DDF32SETFORMAT....DDF32SETFORMAT    DDF32SETTEXTALIGN..DDF32SETTEXTALIGN
DDF32TEXT.........DDF32TEXT        DDFBEGINLIST......DDFBEGINLIST
  ...
  ...
IBM Library Manager (LIB.EXE) was shipped with [[IBM C Set/2]] and later compiler products.
:<tt>LIB /LISTLEVEL:2 OS2386.LIB, OS2386.LST</tt>
00004:Dos32ForceDelete (OFFSET:0x00000100, SIZE:0x0000003e):


==Using EMXIMP.EXE==
==Using EMXIMP.EXE==
There is also a way to get information from a lib file using emximp.exe (included on eComStation) :  
There is also a way to get information from an import library file using EMXIMP.EXE ([https://hobbes.nmsu.edu/download/pub/os2/dev/tools/toolkits/EMX_0-9d.zip EMX_0-9d.zip] or "yum install libc-devel"):  
 
:<tt>emximp -o os2386.imp os2386.lib</tt>
emximp -o os2386.imp os2386.lib
 
It will generate something like:


It will generate something like:
  ;
  ;
  ; os2386.imp (created by emximp)
  ; os2386.imp (created by emximp)
Line 36: Line 30:
  DosForceDelete          DOSCALLS 110 ?
  DosForceDelete          DOSCALLS 110 ?
  Dos32ForceDelete        DOSCALLS 110 ?
  Dos32ForceDelete        DOSCALLS 110 ?
DosKillThread          DOSCALLS 111 ?
  ...
Dos32KillThread        DOSCALLS 111 ?
  .....
 


[[Category:]]
[[Category:Without Category]]

Latest revision as of 22:58, 10 May 2023

The IBM OS/2 Warp Toolkit includes several import library (LIB) files. This is some quick tutorial on how to get information from these files.

Using LIB.EXE

The Microsoft Library Manager (LIB.EXE) is contained in Microsoft_C7_OS2_1992-05-07.zip.

To get some information on what OS2386.LIB contains, you can call:

LIB OS2386.LIB, OS2386.LST

It will generate the os2386.lst text file with something similar to:

DDF32BEGINLIST....DDF32BEGINLIST    DDF32BITMAP.......DDF32BITMAP
DDF32ENDLIST......DDF32ENDLIST      DDF32HYPERTEXT....DDF32HYPERTEXT
...

IBM Library Manager (LIB.EXE) was shipped with IBM C Set/2 and later compiler products.

LIB /LISTLEVEL:2 OS2386.LIB, OS2386.LST
00004:Dos32ForceDelete (OFFSET:0x00000100, SIZE:0x0000003e):

Using EMXIMP.EXE

There is also a way to get information from an import library file using EMXIMP.EXE (EMX_0-9d.zip or "yum install libc-devel"):

emximp -o os2386.imp os2386.lib

It will generate something like:

;
; os2386.imp (created by emximp)
;
; -------- os2386.lib --------
DOSPTRACE               DOSCALLS  12 ?
DOSISETRELMAXFH         DOSCALLS 108 ?
DOSIDEVIOCTL            DOSCALLS 109 ?
DosForceDelete          DOSCALLS 110 ?
Dos32ForceDelete        DOSCALLS 110 ?
...