mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
zipl/src: make blsdir variable global instead of local
It is used by the next patch. Specifically, ->filter() and ->sort() callbacks of the scandir(3) accept only short names of directory entries to be filtered/sorted, while we need to know absolute names to perform filtering/sorting. Signed-off-by: Eduard Shishkin <edward6@linux.ibm.com> Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
e9bf141264
commit
ebc3384b9f
+3
-1
@@ -116,12 +116,14 @@ struct scan_token {
|
||||
} content;
|
||||
};
|
||||
|
||||
extern const char *blsdir;
|
||||
|
||||
/* Determines which keyword may be present in which section */
|
||||
extern enum scan_key_state scan_key_table[SCAN_SECTION_NUM][SCAN_KEYWORD_NUM];
|
||||
|
||||
|
||||
int scan_file(const char* filename, struct scan_token** array);
|
||||
int scan_bls(const char* blsdir, struct scan_token** token, int scan_size);
|
||||
int scan_bls(struct scan_token **token, int scan_size);
|
||||
void scan_free(struct scan_token* array);
|
||||
char* scan_keyword_name(enum scan_keyword_id id);
|
||||
int scan_check_defaultboot(struct scan_token* scan);
|
||||
|
||||
Reference in New Issue
Block a user