summaryrefslogtreecommitdiffhomepage
path: root/src/libPOSIXWrapper/POSIXKit/unistd.h
blob: cdaa6628053ccf6e61daa55a54bc100996b56f15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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_UNISTD_H
#define LIBPOSIX_POSIXKIT_UNISTD_H

#include <libSystem/SystemKit/System.h>

/// @file Unistd.h
/// @brief POSIX Standard Header for NeKernel.

#define _POSIX_SOURCE __POSIX_SOURCE__
#define _XOPEN_SOURCE __XOPEN_SOURCE__

IMPORT_C SInt64 write(SizeT count,
		    SInt32 fd, Void* data, SizeT sz);

IMPORT_C SInt64 read(SizeT count,
		    SInt32 fd, Void* data, SizeT sz);

#endif  // LIBPOSIX_POSIXKIT_UNISTD_H