Go to the documentation of this file.
18 #include <FreeNOS/System.h>
78 for (
Size i = 0; i < numRegions; i++)
108 if (regions[i].memorySize > regions[i].dataSize)
135 char *arguments =
new char[
PAGESIZE*2];
size_t strlcpy(char *dst, const char *src, size_t siz)
Copy src to string dst of size siz.
static Size copy(void *dest, const void *src, Size count)
Copy memory from one place to another.
static FileDescriptor * instance()
Retrieve the instance.
unsigned long ulong
Unsigned long number.
C int errno
The lvalue errno is used by many functions to return error values.
static void * set(void *dest, int ch, unsigned count)
Fill memory with a constant byte.
FileSystemClient provides a simple interface to a FileSystemServer.
#define PAGESIZE
ARM uses 4K pages.
unsigned long Address
A memory address.
#define PATH_MAX
Maximum file path length.
API::Result VMCtl(const ProcessID procID, const MemoryOperation op, Memory::Range *range=ZERO)
Prototype for user applications.
API::Result ProcessCtl(const ProcessID proc, const ProcessOperation op, const Address addr=0, const Address output=0)
Prototype for user applications.
unsigned int uint
Unsigned integer number.
const String * getCurrentDirectory() const
Get current directory String.
#define ARGV_SIZE
Maximum size of each argument.
Memory mapping for the kernel and user processes on the ARM architecture.
#define ENOEXEC
Executable file format error.
Address phys
Physical address.
Memory::Range range(Region region) const
Get memory range for the given region.
unsigned int Size
Any sane size indicator cannot go negative.
#define EFAULT
Bad address.
ProcessID pid_t
Used for process IDs and process group IDs.
unsigned char u8
Unsigned 8-bit number.
int spawn(Address program, Size programSize, const char *argv[])
Create a new process using in-memory image.
void * memset(void *dest, int ch, size_t count)
Fill memory with a constant byte.
Address virt
Virtual address.
@ UserArgs
< Used for copying program arguments and file descriptors
API::Result VMCopy(const ProcessID proc, const API::Operation how, const Address ours, const Address theirs, const Size sz)
Prototype for user applications.
Size size
Size in number of bytes.
Access access
Page access flags.