nasm/rdoff/rdlar.h
H. Peter Anvin 3ef4f00d5a lib: split library into stdlib and nasmlib; header handling fixes
Split lib/ into nasmlib/ (for nasm-specific functions) and stdlib/
(for replacements for C library functions which may be missing.)

Rename the ersatz inttypes.h to nasmint.h so we can use a simple test
in compiler.h instead of dealing with include path magic.

Remove tests in configure.in for ancient missing functions (which will
break the build anyway.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
2016-03-08 12:20:02 -08:00

37 lines
883 B
C

/*
* rdlar.h - definitions of new RDOFF library/archive format.
*/
#ifndef RDOFF_RDLAR_H
#define RDOFF_RDLAR_H 1
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
/* For non-POSIX operating systems */
#ifndef HAVE_GETUID
# define getuid() 0
#endif
#ifndef HAVE_GETGID
# define getgid() 0
#endif
#define RDLAMAG 0x414C4452 /* Archive magic */
#define RDLMMAG 0x4D4C4452 /* Member magic */
#define MAXMODNAMELEN 256 /* Maximum length of module name */
struct rdlm_hdr {
uint32_t magic; /* Must be RDLAMAG */
uint32_t hdrsize; /* Header size + sizeof(module_name) */
uint32_t date; /* Creation date */
uint32_t owner; /* UID */
uint32_t group; /* GID */
uint32_t mode; /* File mode */
uint32_t size; /* File size */
/* NULL-terminated module name immediately follows */
};
#endif