Update dependencies
[nasm/avx512.git] / rdoff / rdlib.h
blob62550248284f3bc04e4ca447f0fa2a3df9a26162
1 /*
2 * rdlib.h Functions for manipulating libraries of RDOFF object files.
3 */
6 struct librarynode {
7 char * name;
8 FILE * fp; /* initialised to NULL - always check*/
9 int referenced; /* & open if required. Close afterwards */
10 struct librarynode * next; /* if ! referenced. */
14 extern int rdl_error;
16 #define RDL_EOPEN 1
17 #define RDL_EINVALID 2
18 #define RDL_EVERSION 3
19 #define RDL_ENOTFOUND 4
21 int rdl_verify (const char * filename);
22 int rdl_open (struct librarynode * lib, const char * filename);
23 int rdl_searchlib (struct librarynode * lib,
24 const char * label, rdffile * f);
25 int rdl_openmodule (struct librarynode * lib, int module, rdffile * f);
27 void rdl_perror(const char *apname, const char *filename);