blob: ea2067b386ed5d288dcca0ad730aee9c293e8bc2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// SPDX-License-Identifier: Apache-2.0
// Copyright 2026, Amlal El Mahrouss (amlal@nekernel.org)
// Licensed under the Apache License, Version 2.0 (see LICENSE file)
// Official repository: https://github.com/ne-foss-org/nekernel
#ifndef LIBPOSIX_POSIXKIT_POSIX_H
#define LIBPOSIX_POSIXKIT_POSIX_H
#include <libSystem/SystemKit/System.h>
/// @file POSIX.h
/// @brief POSIX definitions header for the NeSystem.
/// @brief Please use these macros to specify whether your function is thread safe or not.
#define PTHREAD_UNSAFE __THREAD_UNSAFE
#define PTHREAD_SAFE __THREAD_SAFE
#define _POSIX_SOURCE __POSIX_SOURCE__
#define _XOPEN_SOURCE __XOPEN_SOURCE__
PTHREAD_UNSAFE IMPORT_C SInt64 write(SizeT count, SInt32 fd, Void* data, SizeT sz);
PTHREAD_UNSAFE IMPORT_C SInt64 read(SizeT count, SInt32 fd, Void* data, SizeT sz);
#endif // LIBPOSIX_POSIXKIT_POSIX_H
|