rt.gc.cdgc.os

This module contains allocation functions for the garbage collector.

Members

Aliases

pid_t
alias pid_t = int
Undocumented in source.
pid_t (from tango.stdc.posix.unistd)
alias pid_t = int via public import tango.stdc.posix.unistd : pid_t, fork;
Undocumented in source.
pid_t (from tango.stdc.posix.unistd)
alias pid_t = int via public import tango.stdc.posix.unistd : pid_t, fork;
Undocumented in source.

Enums

HAVE_FORK
anonymousenum HAVE_FORK
Undocumented in source.
HAVE_FORK
anonymousenum HAVE_FORK
Undocumented in source.
HAVE_SHARED
anonymousenum HAVE_SHARED
Undocumented in source.
HAVE_SHARED
anonymousenum HAVE_SHARED
Undocumented in source.
HAVE_SHARED
anonymousenum HAVE_SHARED
Undocumented in source.
Vis
enum Vis

Visibility of the mapped memory.

WRes
enum WRes

Possible results for the wait_pid() function.

Functions

alloc
void* alloc(size_t nbytes, Vis vis)

Map memory.

alloc
void* alloc(size_t nbytes, Vis vis)
Undocumented in source. Be warned that the author may not have intended to support it.
alloc
void* alloc(size_t nbytes, Vis vis)
Undocumented in source. Be warned that the author may not have intended to support it.
alloc
void* alloc(size_t nbytes, Vis vis)
Undocumented in source. Be warned that the author may not have intended to support it.
dealloc
bool dealloc(void* base, size_t nbytes, Vis vis)

Unmap memory allocated with alloc().

dealloc
bool dealloc(void* base, size_t nbytes, Vis vis)
Undocumented in source. Be warned that the author may not have intended to support it.
dealloc
bool dealloc(void* base, size_t nbytes, Vis vis)
Undocumented in source. Be warned that the author may not have intended to support it.
dealloc
bool dealloc(void* base, size_t nbytes, Vis vis)
Undocumented in source. Be warned that the author may not have intended to support it.
fork
pid_t fork()
Undocumented in source. Be warned that the author may not have intended to support it.
fork (from tango.stdc.posix.unistd)
pid_t fork() via public import tango.stdc.posix.unistd : pid_t, fork;
Undocumented in source.
fork (from tango.stdc.posix.unistd)
pid_t fork() via public import tango.stdc.posix.unistd : pid_t, fork;
Undocumented in source.
wait_pid
WRes wait_pid(pid_t pid, bool block)

Wait for a process with PID pid to finish.

wait_pid
WRes wait_pid(pid_t pid, bool block)
Undocumented in source. Be warned that the author may not have intended to support it.
wait_pid
WRes wait_pid(pid_t , bool )
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

HAVE_FORK
auto HAVE_FORK;

Indicates if an implementation support fork().

HAVE_SHARED
auto HAVE_SHARED;

Indicates if an implementation support mapping shared memory.

PAGE_MASK
size_t PAGE_MASK;
Undocumented in source.

Meta

License

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, in both source and binary form, subject to the following restrictions:

o The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. o Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. o This notice may not be removed or altered from any source distribution.

Authors

Walter Bright, David Friedman, Sean Kelly, Leandro Lucarella