Useful Ruby FFI bindings for libc
.
libc
:
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
$ gem install ffi-libc
gem.add_dependency 'ffi-libc', '~> 0.1'
gem 'ffi-libc', '~> 0.1'
Copyright (c) 2010-2021 Hal Brodigan
See {file:LICENSE.txt} for license information.