A few more AVX2 spec instructions
[nasm-cyr.git] / rdoff / rdlar.h
blobee00f2e809446ffc976f5a61c6db89ff49947af4
1 /*
2 * rdlar.h - definitions of new RDOFF library/archive format.
3 */
5 #ifndef RDOFF_RDLAR_H
6 #define RDOFF_RDLAR_H 1
8 #include <inttypes.h>
10 #ifdef HAVE_CONFIG_H
11 #include "config.h"
12 #endif
14 /* For non-POSIX operating systems */
15 #ifndef HAVE_GETUID
16 # define getuid() 0
17 #endif
18 #ifndef HAVE_GETGID
19 # define getgid() 0
20 #endif
22 #define RDLAMAG 0x414C4452 /* Archive magic */
23 #define RDLMMAG 0x4D4C4452 /* Member magic */
25 #define MAXMODNAMELEN 256 /* Maximum length of module name */
27 struct rdlm_hdr {
28 uint32_t magic; /* Must be RDLAMAG */
29 uint32_t hdrsize; /* Header size + sizeof(module_name) */
30 uint32_t date; /* Creation date */
31 uint32_t owner; /* UID */
32 uint32_t group; /* GID */
33 uint32_t mode; /* File mode */
34 uint32_t size; /* File size */
35 /* NULL-terminated module name immediately follows */
38 #endif