home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / os2 / apps / 7901 < prev    next >
Encoding:
Text File  |  1992-11-06  |  1.2 KB  |  27 lines

  1. Newsgroups: comp.os.os2.apps
  2. Path: sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!decwrl!netcomsv!netcom.com!xtifr
  3. From: xtifr@netcom.com (Chris Waters)
  4. Subject: Re: UNIX 'file' program for OS/2?
  5. Message-ID: <1992Nov5.231649.14862@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. References: <1daie3INN79v@iskut.ucs.ubc.ca> <1992Nov5.193250.6913@midway.uchicago.edu>
  8. Date: Thu, 5 Nov 1992 23:16:49 GMT
  9. Lines: 16
  10.  
  11. In <1992Nov5.193250.6913@midway.uchicago.edu> roe2@ellis.uchicago.edu (Cave Newt) writes:
  12.  
  13. >Unfortunately, you really *must* dig out the OS/2 structure in the
  14. >program itself, not via a magic file, since the "meat" is not at a
  15. >fixed location (only a pointer to it is).  OS/2 programs look like
  16. >DOS programs if you don't make use of that pointer...
  17.  
  18. Well, but the following entries in *my* /etc/magic seem to work ok:
  19.  
  20. 0               short           0x5A4D          DOS executable
  21. >0x18           short           0x40            -- OS/2 format
  22.  
  23. BTW, the MKS toolkit includes the file program.
  24. -- 
  25. Chris Waters    | the insane don't | "Don't you boys know NICE songs?"
  26. xtifr@netcom.COM| need disclaimers |                 -- Joe's mama
  27.