summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #619 - gdf8gdn8:fixed-missing-epolloneshot-android, r=alexcrichtonbors2017-06-151-0/+1
|\ | | | | | | | | | | Fixed missing EPOLLONESHOT for android resolve #548
| * Fixed missing epoll one shotUwe Strempel2017-06-151-0/+1
| |
* | Auto merge of #618 - jcowgill:mips-cleanups, r=alexcrichtonbors2017-06-153-67/+75
|\ \ | |/ |/| | | | | | | 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.
| * Add missing struct flock to mips64James Cowgill2017-06-151-0/+8
| |
| * Add missing MIPS syscallsJames Cowgill2017-06-153-33/+39
| | | | | | | | | | In addition, move the syscalls to the mips module file because they are all identical in mips32 and mips64.
| * Move types common to mips32 and mips64 into the main mips moduleJames Cowgill2017-06-153-34/+28
| | | | | | | | As a result of this commit, glob64_t will be added to mips64.
* | Add dirfd on netbsdJörg Thalheim2017-06-141-0/+9
|/
* Auto merge of #611 - vityafx:add-pthread-priority-functions, r=alexcrichtonbors2017-06-132-0/+8
|\ | | | | | | | | | | | | | | | | | | 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.
| * Move pthread_setschedprio into the linux submoduleVictor Polevoy2017-06-132-3/+2
| |
| * Disable pthread_setschedprio for androidVictor Polevoy2017-06-131-0/+1
| |
| * Move pthread_setschedprio to not-bsdVictor Polevoy2017-06-132-2/+2
| |
| * Build fix for non-bsdVictor Polevoy2017-06-132-6/+6
| |
| * Add schedule params & priority pthread functionsVictor Polevoy2017-06-091-0/+8
| |
* | Auto merge of #571 - Mic92:dirfd, r=alexcrichtonbors2017-06-135-0/+6
|\ \ | | | | | | | | | add dirfd on unix
| * | add dirfd on unixJörg Thalheim2017-06-135-0/+6
| | |
* | | Add unix seteuid()Shawn Anastasio2017-06-091-0/+1
| | | | | | | | | | | | Adds prototype for unix seteuid() as defined here: http://pubs.opengroup.org/onlinepubs/009695399/functions/seteuid.html
* | | Auto merge of #608 - Uplifting:unix, r=alexcrichtonbors2017-06-083-0/+20
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | add a number of linux syscalls vfork, wait4, getresuid, getresgid, personality, vhangup, swapon, swapoff, getdomainname, setdomainname, iopl, ioperm
| * | move some functions not in androidAndrew Salmon2017-06-072-3/+3
| | |
| * | sys/io.h only in linux x86_64Andrew Salmon2017-06-072-3/+3
| | | | | | | | | | | | Make changes to reflect this
| * | add a number of syscallsAndrew Salmon2017-06-072-0/+20
| | | | | | | | | | | | | | | vfork, wait4, getresuid, getresgid, personality, vhangup, swapon, swapoff, getdomainname, setdomainname, iopl, ioperm
* | | Add x86_64 module to uclibc/mod.rsSebastian Humenda2017-06-041-0/+3
| |/ |/|
* | Add experimental L4re supportSebastian Humenda2017-06-012-1/+313
| | | | | | | | | | | | | | | | | | | | | | 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.
* | Auto merge of #599 - xd009642:master, r=alexcrichtonbors2017-05-302-0/+127
|\ \ | | | | | | | | | | | | | | | | | | | | | 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 issues in test and struct names.Daniel McKenna2017-05-292-58/+99
| | | | | | | | | | | | 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 style issues and reverted version number.Daniel McKenna2017-05-241-1/+1
| | | | | | | | | | | | Fixed trailing whitespace in x86.rs and reverted the minor version number in the Cargo.toml
| * | Added missing linux/user.h structures.Daniel McKenna2017-05-232-0/+86
| | | | | | | | | | | | Added equivalents for user_regs_struct and user_struct from linux/user.h for x86 and x86_64.
* | | Add _SC_NPROCESSORS_CONF on LinuxHiroki Noda2017-05-291-0/+1
| | |
* | | Auto merge of #605 - Uplifting:unix, r=alexcrichtonbors2017-05-286-1/+31
|\ \ \ | | |/ | |/| | | | | | | | | | fill out common unix syscalls i'm expecting a few build failures, particularly from brk/sbrk.
| * | move functions to linuxAndrew Salmon2017-05-272-5/+4
| | | | | | | | | | | | hopefully that fixes build errors
| * | add ::timeval to settimeofdayAndrew Salmon2017-05-274-4/+4
| | |
| * | make modifications for proper build.Andrew Salmon2017-05-276-6/+11
| | |
| * | add unix utilities assumed portable (expecting build failures)Andrew Salmon2017-05-262-0/+11
| | |
| * | sys/times.h, setreuid/setregid, and sigpendingAndrew Salmon2017-05-261-0/+15
| | |
* | | Auto merge of #604 - Uplifting:posix, r=alexcrichtonbors2017-05-272-0/+16
|\ \ \ | |/ / | | | | | | | | | | | | Fill in sys/sem.h as well as getitimer and setitimer struct semun is not implemented and neither is semtimedop.
| * | remove semid_dsAndrew Salmon2017-05-261-8/+0
| | |
| * | remove struct fields because build failureAndrew Salmon2017-05-261-4/+5
| | |
| * | Merge branch 'posix' of https://github.com/Uplifting/libc into posixAndrew Salmon2017-05-261-0/+3
| |\ \
| | * \ Merge branch 'master' into posixAndrew Salmon2017-05-261-0/+3
| | |\ \
| * | | | fix overflow linesAndrew Salmon2017-05-261-2/+4
| |/ / / | | | | | | | | | | | | overflow lines caused style build failure
| * | | typo in sem_flgAndrew Salmon2017-05-261-1/+1
| | | | | | | | | | | | | | | | somehow i didn't catch this on my machine...oversight
| * | | remove getitimer and setitimerAndrew Salmon2017-05-262-10/+3
| | | | | | | | | | | | | | | | | | | | _GNU_SOURCE works differently than other libraries and creates function pointer issues
| * | | fill out sys/sem.hAndrew Salmon2017-05-261-0/+17
| | | | | | | | | | | | | | | | semget, semop, semctl; semtimedop not implemented and struct semun not defined
| * | | add getitimer and setitimerAndrew Salmon2017-05-261-0/+11
| | | | | | | | | | | | | | | | also struct itimerval, which is necessary for the implementation
* | | | Auto merge of #602 - Razican:unistd_sync, r=alexcrichtonbors2017-05-262-0/+3
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | Added the sync() function from unistd.h This fixes #601.
| * | | Fixed targets without the sync() functionRazican2017-05-263-2/+3
| | | |
| * | | Added the sync() function from unistd.hRazican2017-05-251-0/+2
| | |/ | |/|
* | | Auto merge of #603 - Uplifting:master, r=alexcrichtonbors2017-05-251-1/+3
|\ \ \ | | |/ | |/| | | | | | | | | | Add gmtime() Also slightly modified argument name for localtime.
| * | Add gmtime()Andrew Salmon2017-05-251-1/+3
| |/ | | | | | | Also slightly modified argument name for localtime.
* | Fix docs on nightlyAlex Crichton2017-05-251-0/+3
|/
* Auto merge of #596 - Susurrus:master, r=alexcrichtonbors2017-05-191-1/+3
|\ | | | | | | | | | | | | | | 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.