syscall-d 0.1.0

syscall interface for D


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

syscall-d Build Status

Raw syscall interface for D.

Prerequirements

  • DMD D Compiler >= 2.067.0

  • Linux/OSX with x86_64 arch support only

Build

$ cd syscall.d
$ dub build --build=release

Example

import syscall : syscall, WRITE;

ulong write(ulong fd, string buf)
{
  return syscall(WRITE, fd, cast(ulong) buf.ptr, cast(ulong) buf.length);
}

void main()
{
  ulong stdout = 1;
  write(stdout, "Hello\n");
}
Authors:
  • kubo39
Dependencies:
none
Versions:
0.4.0 2017-Jan-30
0.3.0 2016-Dec-27
0.2.0 2016-Apr-23
0.1.0 2016-Jan-31
~master 2020-May-08
Show all 6 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 231 downloads total

Score:
0.2
Short URL:
syscall-d.dub.pm