🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #1157

Re: file magic number

#1157
From: David Messer
Date: Mon, 29 Oct 1990 05:34
10 lines
953 bytes
In article <41719@eerie.acsu.Buffalo.EDU> haozhou@acsu.buffalo.edu (hao zhou) writes:
 >Can anybody out there tell me how to figure out the file magic number
 >on unix? If possible, can somebody post a piece of sample code?

What do you mean by "the" file magic number?  Each file type
(that uses them) has it's own magic number.  Take a look at
/etc/magic (on SysV) to get some examples.
-- 
How can you tell if Bush is lying?   | David Messer       dave@Lynx.MN.Org -or-
      Watch his lips...              | Lynx Data Systems  ...!bungia!viper!dave
Technical Details
Message-ID: <4055@viper.Lynx.MN.Org>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!timbuk!cs.umn.edu!quest!viper!dave
References: <41719@eerie.acsu.Buffalo.EDU>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!timbuk!cs.umn.edu!quest!viper!dave
From: dave@viper.Lynx.MN.Org (David Messer)
Newsgroups: comp.unix.programmer
Subject: Re: file magic number
Message-ID: <4055@viper.Lynx.MN.Org>
Date: 29 Oct 90 05:34:22 GMT
References: <41719@eerie.acsu.Buffalo.EDU>
Reply-To: dave@viper.Lynx.MN.Org (David Messer)
Organization: Lynx Data Systems, Eagan, MN
Lines: 10