diff --git a/src/slurmd/get_mach_stat.h b/src/slurmd/get_mach_stat.h new file mode 100644 index 0000000000000000000000000000000000000000..32882f9bdc6a1213f44f87e1f01de6cd4aff00ef --- /dev/null +++ b/src/slurmd/get_mach_stat.h @@ -0,0 +1,27 @@ +#ifndef _GET_MACH_STAT_H +#define _GET_MACH_STAT_H +#define _SLURMD_H +#if HAVE_CONFIG_H +# include <config.h> +# if HAVE_INTTYPES_H +# include <inttypes.h> +# else +# if HAVE_STDINT_H +# include <stdint.h> +# endif +# endif /* HAVE_INTTYPES_H */ +#else /* !HAVE_CONFIG_H */ +# include <inttypes.h> +#endif /* HAVE_CONFIG_H */ +int get_procs(uint32_t *procs); +int get_mach_name(char *node_name); +int get_memory(uint32_t *real_memory); +int get_tmp_disk(uint32_t *tmp_disk); +#ifdef USE_OS_NAME +int get_os_name(char *os_name); +#endif +#ifdef USE_CPU_SPEED +int get_speed(float *speed); +#endif + +#endif diff --git a/src/slurmd/slurmd.h b/src/slurmd/slurmd.h new file mode 100644 index 0000000000000000000000000000000000000000..94b894d4179bc45893ab123e32eb8252c611c73e --- /dev/null +++ b/src/slurmd/slurmd.h @@ -0,0 +1,15 @@ +#ifndef _SLURMD_H +#define _SLURMD_H +#if HAVE_CONFIG_H +# include <config.h> +# if HAVE_INTTYPES_H +# include <inttypes.h> +# else +# if HAVE_STDINT_H +# include <stdint.h> +# endif +# endif /* HAVE_INTTYPES_H */ +#else /* !HAVE_CONFIG_H */ +# include <inttypes.h> +#endif /* HAVE_CONFIG_H */ +#endif