Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ magic(5) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

ar(1)

chatr(1)

ld(1)

a.out(5)

ar(5)

model(5)

MAGIC(5)

NAME

magic − magic numbers for HP-UX implementations

SYNOPSIS

#include <magic.h>

HP-UX COMPATIBILITY

Level: Use: HP-UX/RUN ONLY
Header: HP-UX/DEVELOPMENT

Origin: HP

DESCRIPTION

Magic.h localizes all information about HP-UX "magic numbers" in one file, and thus facilitates uniform treatment of magic numbers.  This file specifies the location of the magic number in a file (always the start of the file) and the structure of the magic number:

 struct magic_number
  {
   unsigned short system_id;
   unsigned short file_type;
  };
typedef struct magic_number MAGIC;

Magic.h includes definitions for the system IDs of all HP machines running HP-UX, and file types that are common to all implementations.  There may be additional implementation-dependent file types.  The predefined file types are:

 /* for object code files */
#define RELOC_MAGIC   0x106   /* relocatable only */
#define EXEC_MAGIC    0x107   /* normal executable */
#define SHARE_MAGIC   0x108   /* shared executable */

HARDWARE DEPENDENCIES

Series 200:
The following additional file type is defined:

#define DEMAND_MAGIC0x10B

SEE ALSO

ar(1), chatr(1), ld(1), a.out(5), ar(5), model(5). 

BUGS

Cpio files use a different form of magic number that is incompatible with magic(5). 
 
 

Hewlett-Packard  —  last mod. May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026