Skip to content
Snippets Groups Projects
Commit 70be2b4a authored by Morris Jette's avatar Morris Jette
Browse files

burst_buffer: Move function static

parent d37629ba
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,12 @@ ...@@ -70,6 +70,12 @@
/* For possible future use by burst_buffer/generic */ /* For possible future use by burst_buffer/generic */
#define _SUPPORT_GRES 0 #define _SUPPORT_GRES 0
static void _bb_job_del2(bb_job_t *bb_job);
static uid_t * _parse_users(char *buf);
static int _persist_match(void *x, void *key);
static void _persist_purge(void *x);
static char * _print_users(uid_t *buf);
/* Translate comma delimitted list of users into a UID array, /* Translate comma delimitted list of users into a UID array,
* Return value must be xfreed */ * Return value must be xfreed */
static uid_t *_parse_users(char *buf) static uid_t *_parse_users(char *buf)
...@@ -161,7 +167,7 @@ extern void bb_clear_cache(bb_state_t *state_ptr) ...@@ -161,7 +167,7 @@ extern void bb_clear_cache(bb_state_t *state_ptr)
while (job_current) { while (job_current) {
xassert(job_current->magic == BB_JOB_MAGIC); xassert(job_current->magic == BB_JOB_MAGIC);
job_next = job_current->next; job_next = job_current->next;
bb_job_del2(job_current); _bb_job_del2(job_current);
job_current = job_next; job_current = job_next;
} }
} }
...@@ -1086,8 +1092,8 @@ extern bool bb_free_alloc_rec(bb_state_t *state_ptr, bb_alloc_t *bb_alloc) ...@@ -1086,8 +1092,8 @@ extern bool bb_free_alloc_rec(bb_state_t *state_ptr, bb_alloc_t *bb_alloc)
* -1 for no limit (asynchronous) * -1 for no limit (asynchronous)
* status OUT - Job exit code * status OUT - Job exit code
* Return stdout+stderr of spawned program, value must be xfreed. */ * Return stdout+stderr of spawned program, value must be xfreed. */
char *bb_run_script(char *script_type, char *script_path, extern char *bb_run_script(char *script_type, char *script_path,
char **script_argv, int max_wait, int *status) char **script_argv, int max_wait, int *status)
{ {
int i, new_wait, resp_size = 0, resp_offset = 0; int i, new_wait, resp_size = 0, resp_offset = 0;
pid_t cpid; pid_t cpid;
...@@ -1336,7 +1342,7 @@ extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id) ...@@ -1336,7 +1342,7 @@ extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id)
xassert(bb_job->magic == BB_JOB_MAGIC); xassert(bb_job->magic == BB_JOB_MAGIC);
bb_job->magic = 0; bb_job->magic = 0;
*bb_pjob = bb_job->next; *bb_pjob = bb_job->next;
bb_job_del2(bb_job); _bb_job_del2(bb_job);
return; return;
} }
bb_pjob = &bb_job->next; bb_pjob = &bb_job->next;
...@@ -1345,7 +1351,7 @@ extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id) ...@@ -1345,7 +1351,7 @@ extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id)
} }
/* Delete a bb_job_t record. DOES NOT UNLINK FROM HASH TABLE */ /* Delete a bb_job_t record. DOES NOT UNLINK FROM HASH TABLE */
extern void bb_job_del2(bb_job_t *bb_job) static void _bb_job_del2(bb_job_t *bb_job)
{ {
int i; int i;
......
...@@ -279,10 +279,6 @@ extern bb_job_t *bb_job_alloc(bb_state_t *state_ptr, uint32_t job_id); ...@@ -279,10 +279,6 @@ extern bb_job_t *bb_job_alloc(bb_state_t *state_ptr, uint32_t job_id);
/* Delete a bb_job_t record, hashed by job_id */ /* Delete a bb_job_t record, hashed by job_id */
extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id); extern void bb_job_del(bb_state_t *state_ptr, uint32_t job_id);
/* Delete a bb_job_t record. DOES NOT UNLINK FROM HASH TABLE */
extern void bb_job_del2(bb_job_t *bb_job);
//FIXME: DELETE THIS, MAKE STATIC IN COMMON.C
/* Return a pointer to the existing bb_job_t record for a given job_id or /* Return a pointer to the existing bb_job_t record for a given job_id or
* NULL if not found */ * NULL if not found */
extern bb_job_t *bb_job_find(bb_state_t *state_ptr, uint32_t job_id); extern bb_job_t *bb_job_find(bb_state_t *state_ptr, uint32_t job_id);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment