| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| |
| | |
Fixed missing EPOLLONESHOT for android
resolve #548
|
| | |
|
|\ \
| |/
|/|
| |
| |
| | |
Various MIPS cleanups
This PR contains a few cleanups to the MIPS part of the bindings. It mostly moves stuff out of `mips/mips32.rs` into `mips/mod.rs` which is identical between mips32 and mips64, mostly because mips64 is missing a number of syscalls. In addition, I add `struct flock` which was missing on mips64.
|
| | |
|
| |
| |
| |
| |
| | |
In addition, move the syscalls to the mips module file because they are
all identical in mips32 and mips64.
|
| |
| |
| |
| | |
As a result of this commit, glob64_t will be added to mips64.
|
|/ |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add schedule params & priority pthread functions
Fixes #609. Provides bindings to `pthread_getschedparam`, `pthread_setschedparam` and `pthread_setschedprio` functions.
P.S. My first PR in such a project.
P.P.S. `libc-test` crashed at building stage with a lot of errors, so I hope `travis` will do a check.
P.P.P.S. These functions are tested to work on Linux (Ubuntu 14.04) with my own crate. I will release it next week, it provides ability to control thread schedule policies and priorities.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
add dirfd on unix
|
| | | |
|
| | |
| | |
| | |
| | | |
Adds prototype for unix seteuid() as defined here: http://pubs.opengroup.org/onlinepubs/009695399/functions/seteuid.html
|
|\ \ \
| |_|/
|/| |
| | |
| | |
| | |
| | | |
add a number of linux syscalls
vfork, wait4, getresuid, getresgid, personality, vhangup,
swapon, swapoff, getdomainname, setdomainname, iopl, ioperm
|
| | | |
|
| | |
| | |
| | |
| | | |
Make changes to reflect this
|
| | |
| | |
| | |
| | |
| | | |
vfork, wait4, getresuid, getresgid, personality, vhangup,
swapon, swapoff, getdomainname, setdomainname, iopl, ioperm
|
| |/
|/| |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This commit introduces a UNIX-alike target for the l4re microkernel
operating system. While this system is not a UNIX system at all, it is
easiest to use the POSIX interface and hence benefit from common
definitions.
This version is a very early draft, only the basic data types have been
verified and most of the complex data types (structs and unions) have
not been ported yet.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Adding missing structs from linux/user.h
Adding structs from linux/user.h (or sys/user.h depending on OS version). This adds the linux user_regs_struct and user struct from sys/user.h into libc for x86 and x86_64. Also, bumping the version number.
As an aside, I was wondering if this was also the right place to add the bit offsets for the [EFLAGS register ](https://en.wikibooks.org/wiki/X86_Assembly/X86_Architecture#EFLAGS_Register)? These aren't defined anywhere in the linux system libraries instead the definition seems to just be in the x86 and x86_64 documentation but they are useful for anyone looking to interpret eflags. If libc is the right place for these constants I'd like the opportunity to add them before it's merged in. :)
|
| | |
| | |
| | |
| | | |
Fixed the issues that prevented the libc_tests that are generated from passing. Also, fixed struct names and types to be representative of the linux source files.
|
| | |
| | |
| | |
| | | |
Fixed trailing whitespace in x86.rs and reverted the minor version number in the Cargo.toml
|
| | |
| | |
| | |
| | | |
Added equivalents for user_regs_struct and user_struct from linux/user.h for x86 and x86_64.
|
| | | |
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | | |
fill out common unix syscalls
i'm expecting a few build failures, particularly from brk/sbrk.
|
| | |
| | |
| | |
| | | |
hopefully that fixes build errors
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | |
| | | |
Fill in sys/sem.h as well as getitimer and setitimer
struct semun is not implemented and neither is semtimedop.
|
| | | |
|
| | | |
|
| |\ \ |
|
| | |\ \ |
|
| |/ / /
| | | |
| | | |
| | | | |
overflow lines caused style build failure
|
| | | |
| | | |
| | | |
| | | | |
somehow i didn't catch this on my machine...oversight
|
| | | |
| | | |
| | | |
| | | |
| | | | |
_GNU_SOURCE works differently than other libraries and creates
function pointer issues
|
| | | |
| | | |
| | | |
| | | | |
semget, semop, semctl; semtimedop not implemented and struct semun not defined
|
| | | |
| | | |
| | | |
| | | | |
also struct itimerval, which is necessary for the implementation
|
|\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | |
| | | | |
Added the sync() function from unistd.h
This fixes #601.
|
| | | | |
|
| | |/
| |/| |
|
|\ \ \
| | |/
| |/|
| | |
| | |
| | | |
Add gmtime()
Also slightly modified argument name for localtime.
|
| |/
| |
| |
| | |
Also slightly modified argument name for localtime.
|
|/ |
|
|\
| |
| |
| |
| |
| |
| |
| | |
Use NOCANCEL variants for close on Mac
The default `close()` on OS X does not provide clear errors, instead the `$NOCANCEL` variants should be used. These are available as of OS X 10.6 onwards.
Fixes #595.
|