2024-03-05 11:06:29 +00:00
|
|
|
/***
|
|
|
|
Copyright (C) 2024 J Reece Wilson (a/k/a "Reece"). All rights reserved.
|
|
|
|
|
|
|
|
File: AuProcAddresses.UNIX.hpp
|
|
|
|
Date: 2024-3-5
|
|
|
|
Author: Reece
|
|
|
|
***/
|
|
|
|
#pragma once
|
|
|
|
|
2024-03-15 06:18:32 +00:00
|
|
|
// PosixOpen platform specific flags!
|
|
|
|
#include <fcntl.h>
|
|
|
|
|
2024-03-05 11:06:29 +00:00
|
|
|
namespace Aurora
|
|
|
|
{
|
2024-03-15 06:18:32 +00:00
|
|
|
void PosixDoForkHooks();
|
|
|
|
void PosixShutup();
|
|
|
|
void PosixTerminate();
|
2024-04-14 18:48:40 +00:00
|
|
|
void PosixFDYeetus();
|
2024-03-15 06:18:32 +00:00
|
|
|
|
|
|
|
int PosixOpen(const char *pathname, int flags, mode_t mode = 0);
|
2024-03-05 18:37:44 +00:00
|
|
|
|
|
|
|
AuUInt64 PosixGetOffset(int fd);
|
|
|
|
bool PosixSetOffset(int fd, AuUInt64 offset);
|
|
|
|
AuUInt64 PosixGetLength(int fd);
|
|
|
|
bool PosixRead (int fd, void *buf, AuUInt32 count, AuUInt32 *pRead);
|
|
|
|
bool PosixWrite (int fd, const void *buf, AuUInt32 count, AuUInt32 *pWritten);
|
2024-03-27 03:12:49 +00:00
|
|
|
void PosixWriteEoS (int fd);
|
|
|
|
|
|
|
|
int PosixUnlink (const char *pathname);
|
2024-03-05 11:06:29 +00:00
|
|
|
}
|