All Projects → postmodern → ffi-libc

postmodern / ffi-libc

Licence: MIT License
Useful Ruby FFI bindings for libc

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to ffi-libc

eta-ffi
A command line tool to automate the generation of ffi import code for the bindings of various Java libraries.
Stars: ✭ 19 (-40.62%)
Mutual labels:  ffi, ffi-bindings
cargo-valgrind
A cargo subcommand, that runs valgrind and displays its output in a helpful manner.
Stars: ✭ 66 (+106.25%)
Mutual labels:  ffi, ffi-bindings
rust-ffi-examples
FFI examples written in Rust
Stars: ✭ 42 (+31.25%)
Mutual labels:  ffi, ffi-bindings
cztop
CZMQ binding for Ruby
Stars: ✭ 30 (-6.25%)
Mutual labels:  ffi-bindings
odbc-rs
Rust ODBC FFI binding
Stars: ✭ 90 (+181.25%)
Mutual labels:  ffi-bindings
swift-bridge
swift-bridge facilitates Rust and Swift interop.
Stars: ✭ 260 (+712.5%)
Mutual labels:  ffi
unixstring
An FFI-friendly null-terminated byte string
Stars: ✭ 19 (-40.62%)
Mutual labels:  ffi
purescript-ffi-utils
A utility library for the purescript foreign function interface
Stars: ✭ 22 (-31.25%)
Mutual labels:  ffi
windigo
Windows API and GUI in idiomatic Go.
Stars: ✭ 187 (+484.38%)
Mutual labels:  ffi
generic-linked-in-driver
A generic non-blocking linked-in driver for interfacing Erlang and C
Stars: ✭ 46 (+43.75%)
Mutual labels:  ffi
PhpWebcam
This is a PHP library to capture webcam frames
Stars: ✭ 33 (+3.13%)
Mutual labels:  ffi
pybluemonday
pybluemonday is a library for sanitizing HTML very quickly via bluemonday.
Stars: ✭ 25 (-21.87%)
Mutual labels:  ffi
detect-libc
Node.js module to detect details of the C standard library (libc) implementation provided by a given Linux system
Stars: ✭ 33 (+3.13%)
Mutual labels:  libc
libserialport.dart
Serial Port for Dart
Stars: ✭ 51 (+59.38%)
Mutual labels:  ffi
PointerScript
Scripting language with pointers and native library access.
Stars: ✭ 26 (-18.75%)
Mutual labels:  ffi
mozilla-deepspeech-flutter
Mozilla DeepSpeech in flutter using Dart FFI
Stars: ✭ 23 (-28.12%)
Mutual labels:  ffi
lonlat bng
A multithreaded Rust library with FFI for converting WGS84 longitude and latitude coordinates into BNG (OSGB36) Eastings and Northings and vice versa (using OSTN15)
Stars: ✭ 20 (-37.5%)
Mutual labels:  ffi
winsafe
Windows API and GUI in safe, idiomatic Rust.
Stars: ✭ 110 (+243.75%)
Mutual labels:  ffi
rust-lang-interop
Rust language interoperability with other languages - C, C++ etc.
Stars: ✭ 53 (+65.63%)
Mutual labels:  ffi
cosmonim
A simple example to show how cosmopolitan libc can be used with Nim
Stars: ✭ 90 (+181.25%)
Mutual labels:  libc

ffi-libc

CI Code Climate

Description

Useful Ruby FFI bindings for libc.

Features

  • Provides common Structs used in libc:
    • {FFI::LibC::Ifaddrs}
    • {FFI::LibC::In6Addr}
    • {FFI::LibC::InAddr}
    • {FFI::LibC::SockaddrDL}
    • {FFI::LibC::SockaddrFamily}
    • {FFI::LibC::SockaddrIn6}
    • {FFI::LibC::SockaddrIn}
    • {FFI::LibC::Sockaddr}
    • {FFI::LibC::Timeval}
    • {FFI::LibC::Timezone}
    • {FFI::LibC::RUsage}
  • Binds to common functions and global variables in libc:
    • errno.h:
      • sys_errlist (BSD)
      • sys_nerr (BSD)
      • errno
    • unistd.h:
      • brk
      • sbrk
      • getpid
      • getppid
      • getuid
      • geteuid
      • getgid
      • getegid
    • stdlib.h:
      • calloc
      • malloc
      • free
      • realloc
      • getenv
      • putenv
      • unsetenv
      • clearenv
    • time.h:
      • time
    • sys/time.h:
      • gettimeofday
      • settimeofday
    • sys/resource.h / bits/resource.h:
      • getrusage
    • sys/mman.h:
      • mmap
      • munmap
    • string.h:
      • bzero
      • memset
      • memcpy
      • memcmp
      • memchr
      • memrchr
      • strcpy
      • strncpy
      • strlen
      • index
      • rindex
      • strchr
      • strrchr
      • strstr
      • strerror
    • stdio.h:
      • stdin
      • stdout
      • stderr
      • fopen
      • fdopen
      • freopen
      • fseek
      • ftell
      • rewind
      • fread
      • fwrite
      • fgetc
      • fgets
      • fputc
      • fputs
      • fflush
      • fclose
      • clearerr
      • feof
      • ferror
      • fileno
      • perror
    • netdb.h:
      • getnameinfo
    • ifaddrs.h:
      • getifaddrs
      • freeifaddrs

Requirements

Install

$ gem install ffi-libc

gemspec

gem.add_dependency 'ffi-libc', '~> 0.1'

Gemfile

gem 'ffi-libc', '~> 0.1'

License

Copyright (c) 2010-2021 Hal Brodigan

See {file:LICENSE.txt} for license information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].