Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/kubo39/syscall.cr

syscall interface for Crystal
https://github.com/kubo39/syscall.cr

Last synced: 12 days ago
JSON representation

syscall interface for Crystal

Lists

README

        

# syscall.cr [![Build Status](https://secure.travis-ci.org/kubo39/syscall.cr.svg?branch=master)](http://travis-ci.org/kubo39/syscall.cr)

Raw syscall interface for Crystal. Linux/OSX with x86_64 support only.

## Example

```crystal
include Syscall

str = "Hello!\n"
syscall(WRITE, 1_u64, str.to_unsafe, str.bytesize.to_u64)
```