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.5.0 2021-Dec-20
0.4.0 2017-Jan-30
0.3.0 2016-Dec-27
0.2.0 2016-Apr-23
0.1.0 2016-Jan-31
Show all 7 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 5 downloads this month

  • 30933 downloads total

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