llvm-project/libc/src/spawn/posix_spawn_file_actions_init.cpp
Siva Chandra Reddy 28943d617a [libc] Add POSIX functions posix_spawn_file_actions_*.
Namely, posix_spawn_file_actions_addclose,
posix_spawn_file_actions_adddup2, posix_spawn_file_actions_addopen,
posix_spawn_file_actions_destroy, posix_spawn_file_actions_init have
been added.

Reviewed By: michaelrj, lntue

Differential Revision: https://reviews.llvm.org/D135603
2022-10-11 04:54:44 +00:00

25 lines
711 B
C++

//===-- Implementation of posix_spawn_file_actions_init -------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
#include "posix_spawn_file_actions_init.h"
#include "src/__support/common.h"
#include <spawn.h>
namespace __llvm_libc {
LLVM_LIBC_FUNCTION(int, posix_spawn_file_actions_init,
(posix_spawn_file_actions_t * actions)) {
actions->__front = nullptr;
actions->__back = nullptr;
return 0;
}
} // namespace __llvm_libc