syscall.cr

Version, currently master branch1 version
  • master branchlatestNov 18, 2019

github.com/kubo39/syscall.cr

syscall interface for Crystal

17 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  syscall.cr:
    github: kubo39/syscall.cr
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.31.1
License
MIT
Author
Hiroki Noda <kubo39@gmail.com>

Dependencies

This version declares no dependencies.

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)
```