92dd3e71f9
Reviewed-on: https://github.com/dlang/druntime/pull/3348 gcc/d/ChangeLog: * typeinfo.cc (TypeInfoVisitor::visit (TypeInfoDeclaration *)): Don't layout m_arg1 and m_arg2 fields. libphobos/ChangeLog: * Makefile.in: Regenerate. * configure: Regenerate. * libdruntime/MERGE: Merge upstream druntime e4aae28e. * libdruntime/Makefile.am (DRUNTIME_DSOURCES): Refresh module list. (DRUNTIME_DSOURCES_BIONIC): Add core/sys/bionic/err.d. (DRUNTIME_DSOURCES_DARWIN): Add core/sys/darwin/err.d, core/sys/darwin/ifaddrs.d, core/sys/darwin/mach/nlist.d, core/sys/darwin/mach/stab.d, and core/sys/darwin/sys/attr.d. (DRUNTIME_DSOURCES_DRAGONFLYBSD): Add core/sys/dragonflybsd/err.d. (DRUNTIME_DSOURCES_FREEBSD): Add core/sys/freebsd/err.d. (DRUNTIME_DSOURCES_LINUX): Add core/sys/linux/err.d. (DRUNTIME_DSOURCES_NETBSD): Add core/sys/netbsd/err.d. (DRUNTIME_DSOURCES_OPENBSD): Add core/sys/openbsd/err.d. (DRUNTIME_DSOURCES_POSIX): Add core/sys/posix/locale.d, core/sys/posix/stdc/time.d, core/sys/posix/string.d, and core/sys/posix/strings.d. (DRUNTIME_DSOURCES_SOLARIS): Add core/sys/solaris/err.d. (DRUNTIME_DSOURCES_WINDOWS): Add core/sys/windows/sdkddkver.d, and core/sys/windows/stdc/time.d * libdruntime/Makefile.in: Regenerate. * libdruntime/gcc/sections/elf_shared.d (sizeofTLS): New function. * testsuite/libphobos.thread/fiber_guard_page.d: Use __traits(getMember) to get internal fields.
25 lines
610 B
D
25 lines
610 B
D
module core.sys.linux.unistd;
|
|
|
|
public import core.sys.posix.unistd;
|
|
|
|
version (linux):
|
|
extern(C):
|
|
nothrow:
|
|
@system:
|
|
|
|
// Additional seek constants for sparse file handling
|
|
// from Linux's unistd.h, stdio.h, and linux/fs.h
|
|
// (see http://man7.org/linux/man-pages/man2/lseek.2.html)
|
|
enum {
|
|
/// Offset is relative to the next location containing data
|
|
SEEK_DATA = 3,
|
|
/// Offset is relative to the next hole (or EOF if file is not sparse)
|
|
SEEK_HOLE = 4
|
|
}
|
|
|
|
/// Prompt for a password without echoing it.
|
|
char* getpass(const(char)* prompt);
|
|
|
|
// Exit all threads in a process
|
|
void exit_group(int status);
|