summaryrefslogtreecommitdiffstats
path: root/include/portability.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:45:40 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 07:45:40 +0000
commit07d7f4cfa4b10de87a31b68191036ff446add675 (patch)
tree7162524d8aaf1aef62d2f4fa51f595ed113981ff /include/portability.h
parentAdding upstream version 2.1.6. (diff)
downloadpacemaker-07d7f4cfa4b10de87a31b68191036ff446add675.tar.xz
pacemaker-07d7f4cfa4b10de87a31b68191036ff446add675.zip
Adding upstream version 2.1.7.upstream/2.1.7
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'include/portability.h')
-rw-r--r--include/portability.h41
1 files changed, 1 insertions, 40 deletions
diff --git a/include/portability.h b/include/portability.h
index 932642d..368f887 100644
--- a/include/portability.h
+++ b/include/portability.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2001-2021 the Pacemaker project contributors
+ * Copyright 2001-2023 the Pacemaker project contributors
*
* The version control history for this file may have further details.
*
@@ -27,45 +27,6 @@
# endif
# endif
-/* Prototypes for libreplace functions */
-
-# ifndef HAVE_DAEMON
- /* We supply a replacement function, but need a prototype */
-int daemon(int nochdir, int noclose);
-# endif
-
-# ifndef HAVE_SETENV
- /* We supply a replacement function, but need a prototype */
-int setenv(const char *name, const char *value, int why);
-# endif
-
-# ifndef HAVE_STRERROR
- /* We supply a replacement function, but need a prototype */
-char *strerror(int errnum);
-# endif
-
-# ifndef HAVE_STRCHRNUL
- /* We supply a replacement function, but need a prototype */
-char *strchrnul(const char *s, int c_in);
-# endif
-
-# ifndef HAVE_ALPHASORT
-# include <dirent.h>
-int alphasort(const void *dirent1, const void *dirent2);
-# endif
-
-# ifndef HAVE_STRNLEN
-size_t strnlen(const char *s, size_t maxlen);
-# else
-# define USE_GNU
-# endif
-
-# ifndef HAVE_STRNDUP
-char *strndup(const char *str, size_t len);
-# else
-# define USE_GNU
-# endif
-
# if HAVE_DBUS
# ifndef HAVE_DBUSBASICVALUE
# include <stdint.h>