2006-06-07 12:54:04 +00:00
|
|
|
/* Local variables: */
|
|
|
|
/* c-file-style: "linux" */
|
|
|
|
/* End: */
|
|
|
|
|
|
|
|
#ifndef __DC_API_CONDOR_UTILS_H_
|
|
|
|
#define __DC_API_CONDOR_UTILS_H_
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
2006-08-24 13:01:03 +00:00
|
|
|
#include "condor_common.h"
|
|
|
|
|
|
|
|
|
|
|
|
extern void _DC_init_utils(void);
|
2006-06-07 12:54:04 +00:00
|
|
|
|
2006-08-23 09:34:46 +00:00
|
|
|
/* Usefull funcs */
|
2006-06-07 12:54:04 +00:00
|
|
|
extern int _DC_mkdir_with_parents(char *dn, mode_t mode);
|
2006-06-21 09:59:56 +00:00
|
|
|
extern int _DC_rm(char *name);
|
2006-08-23 09:34:46 +00:00
|
|
|
|
|
|
|
/* Message passing utilities */
|
2006-06-22 12:13:06 +00:00
|
|
|
extern int _DC_create_message(char *box,
|
|
|
|
char *name,
|
|
|
|
const char *message,
|
|
|
|
char *msgfile);
|
|
|
|
extern int _DC_nuof_messages(char *box, char *name);
|
2006-06-23 08:40:20 +00:00
|
|
|
extern char *_DC_message_name(char *box, char *name);
|
|
|
|
extern char *_DC_read_message(char *box, char *name, int del_msg);
|
2006-06-07 12:54:04 +00:00
|
|
|
|
2006-08-25 11:07:11 +00:00
|
|
|
extern char *_DC_state_name(DC_WUState state);
|
2006-09-06 12:48:54 +00:00
|
|
|
extern char *_DC_quote_string(char *str);
|
2006-08-25 11:07:11 +00:00
|
|
|
|
2006-06-07 12:54:04 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* End of condor/condor_utils.h */
|