From 93e5a67bd6ac06b42cf7b8312a38e73c62f270d8 Mon Sep 17 00:00:00 2001 From: tewk <tewk@unknown> Date: Wed, 19 Jun 2002 20:31:07 +0000 Subject: [PATCH] Header files for new slurmd implementation --- src/slurmd/get_mach_stat.h | 27 +++++++++++++++++++++++++++ src/slurmd/slurmd.h | 15 +++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 src/slurmd/get_mach_stat.h create mode 100644 src/slurmd/slurmd.h diff --git a/src/slurmd/get_mach_stat.h b/src/slurmd/get_mach_stat.h new file mode 100644 index 00000000000..32882f9bdc6 --- /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 00000000000..94b894d4179 --- /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 -- GitLab