blob: 385255f45cb5b1e3adfcb888d51f0ff5e0b7a768 [file] [log] [blame]
// Copyright 2020 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_LIB_NIX_PRIVATE_H_
#define SRC_LIB_NIX_PRIVATE_H_
#include <cerrno>
// Set errno to e, return -1
static inline int ERRNO(int e) {
errno = e;
return -1;
}
#endif // SRC_LIB_NIX_PRIVATE_H_