A very simple and minimal implementation of fork is added. Future changes will add more functionality to satisfy POSIX and Linux requirements. An implementation of wait and a few support macros in sys/wait.h have also been added to help with testing the fork function. Reviewed By: lntue, michaelrj Differential Revision: https://reviews.llvm.org/D135131
17 lines
568 B
C
17 lines
568 B
C
//===-- Macros defined in sys/wait.h header file --------------------------===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef __LLVM_LIBC_MACROS_SYS_WAIT_MACROS_H
|
|
#define __LLVM_LIBC_MACROS_SYS_WAIT_MACROS_H
|
|
|
|
#ifdef __linux__
|
|
#include "linux/sys-wait-macros.h"
|
|
#endif
|
|
|
|
#endif // __LLVM_LIBC_MACROS_SYS_WAIT_MACROS_H
|