summaryrefslogtreecommitdiff
path: root/lib/libc/hidden
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2015-10-04 07:57:22 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2015-10-04 07:57:22 +0000
commitb2bd57201872ed964eec75f70750368392de057d (patch)
treeda46015ecce2af186a250b1dc9030b6efcdfaa42 /lib/libc/hidden
parent306ba9c92fbf5e3b4bc8ed389789dc9d1e96fe76 (diff)
Wrap <spawn.h> to make all the symbols there weak
Diffstat (limited to 'lib/libc/hidden')
-rw-r--r--lib/libc/hidden/spawn.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/lib/libc/hidden/spawn.h b/lib/libc/hidden/spawn.h
new file mode 100644
index 00000000000..baad9b256da
--- /dev/null
+++ b/lib/libc/hidden/spawn.h
@@ -0,0 +1,45 @@
+/* $OpenBSD: spawn.h,v 1.1 2015/10/04 07:57:21 guenther Exp $ */
+/*
+ * Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+#ifndef _LIBC_SPAWN_H_
+#define _LIBC_SPAWN_H_
+
+#include_next <spawn.h>
+
+PROTO_DEPRECATED(posix_spawn);
+PROTO_DEPRECATED(posix_spawn_file_actions_addclose);
+PROTO_DEPRECATED(posix_spawn_file_actions_adddup2);
+PROTO_DEPRECATED(posix_spawn_file_actions_addopen);
+PROTO_DEPRECATED(posix_spawn_file_actions_destroy);
+PROTO_DEPRECATED(posix_spawn_file_actions_init);
+PROTO_DEPRECATED(posix_spawnattr_destroy);
+PROTO_DEPRECATED(posix_spawnattr_getflags);
+PROTO_DEPRECATED(posix_spawnattr_getpgroup);
+PROTO_DEPRECATED(posix_spawnattr_getschedparam);
+PROTO_DEPRECATED(posix_spawnattr_getschedpolicy);
+PROTO_DEPRECATED(posix_spawnattr_getsigdefault);
+PROTO_DEPRECATED(posix_spawnattr_getsigmask);
+PROTO_DEPRECATED(posix_spawnattr_init);
+PROTO_DEPRECATED(posix_spawnattr_setflags);
+PROTO_DEPRECATED(posix_spawnattr_setpgroup);
+PROTO_DEPRECATED(posix_spawnattr_setschedparam);
+PROTO_DEPRECATED(posix_spawnattr_setschedpolicy);
+PROTO_DEPRECATED(posix_spawnattr_setsigdefault);
+PROTO_DEPRECATED(posix_spawnattr_setsigmask);
+PROTO_DEPRECATED(posix_spawnp);
+
+#endif /* !_LIBC_SPAWN_H_ */