Thread View: comp.unix.programmer
2 messages
2 total messages
Started by hao zhou
Sat, 20 Oct 1990 00:26
file magic number
Author: hao zhou
Date: Sat, 20 Oct 1990 00:26
Date: Sat, 20 Oct 1990 00:26
11 lines
701 bytes
701 bytes
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? Thanks in advance... -- HaoZ. -- Internet:haozhou@acsu.buffalo.edu BITNET:haozhou%acsu.buffalo.edu@UBVM.BITNET UUCP: uunet!acsu.buffalo.edu!haozhou
Re: file magic number
Author: David Messer
Date: Mon, 29 Oct 1990 05:34
Date: Mon, 29 Oct 1990 05:34
10 lines
953 bytes
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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads