Skip to content

kubo39/syscall-d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

syscall-d Build Status

Raw syscall interface for D.

Supported Platforms

  • Linux-x86_64
  • Linux-x86
  • OSX-x86_64
  • FreeBSD-x86_64

Build

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

Example

import syscalld : syscall, WRITE;

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

void main()
{
    size_t stdout = 1;
    write(stdout, "Hello\n");
}

About

syscall interface for D.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 4

  •  
  •  
  •  
  •