summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Auto merge of #612 - shawnanastasio:master, r=alexcrichtonbors2017-06-131-0/+1
|\ | | | | | | | | | | Add unix seteuid() Adds prototype for unix seteuid() as defined [here](http://pubs.opengroup.org/onlinepubs/009695399/functions/seteuid.html).
| * 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-084-0/+25
|\ | | | | | | | | | | | | 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-073-4/+6
| | | | | | | | Make changes to reflect this
| * add a number of syscallsAndrew Salmon2017-06-073-0/+23
| | | | | | | | | | vfork, wait4, getresuid, getresgid, personality, vhangup, swapon, swapoff, getdomainname, setdomainname, iopl, ioperm
* | Auto merge of #607 - humenda:master, r=alexcrichtonbors2017-06-041-0/+3
|\ \ | | | | | | | | | Add x86_64 module to uclibc/mod.rs
| * | Add x86_64 module to uclibc/mod.rsSebastian Humenda2017-06-041-0/+3
| | |
* | | Auto merge of #591 - humenda:master, r=alexcrichtonbors2017-06-012-1/+313
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add experimental L4re support This PR 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. Thanks to TobiasSchaffner for providing his patched version, to verify some assumptions.
| * | 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-304-3/+131
|\ \ | | | | | | | | | | | | | | | | | | | | | 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-293-58/+100
| | | | | | | | | | | | 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.
| * | Updated cargo.lockDaniel McKenna2017-05-241-5/+5
| | | | | | | | | | | | Forgot to update cargo.lock before prior commit.
| * | Fixed style issues and reverted version number.Daniel McKenna2017-05-242-2/+2
| | | | | | | | | | | | Fixed trailing whitespace in x86.rs and reverted the minor version number in the Cargo.toml
| * | Updated cargo.lock and toml for release.Daniel McKenna2017-05-232-3/+3
| | |
| * | 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.
* | | Auto merge of #606 - kubo39:add-SC_NPROCESSORS_CONF-to-linux, r=alexcrichtonbors2017-05-291-0/+1
|\ \ \ | | | | | | | | | | | | Add _SC_NPROCESSORS_CONF on Linux
| * | | Add _SC_NPROCESSORS_CONF on LinuxHiroki Noda2017-05-291-0/+1
|/ / /
* | | Auto merge of #605 - Uplifting:unix, r=alexcrichtonbors2017-05-287-1/+32
|\ \ \ | | |/ | |/| | | | | | | | | | 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-262-0/+16
| | |
* | | Auto merge of #604 - Uplifting:posix, r=alexcrichtonbors2017-05-273-0/+17
|\ \ \ | |/ / | | | | | | | | | | | | 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-263-10/+4
| | | | | | | | | | | | | | | | | | | | _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-192-2/+7
|\ | | | | | | | | | | | | | | 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.
| * Use NOCANCEL variants for close on MacBryant Mairs2017-05-182-2/+7
| | | | | | | | | | | | The default 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.
* | Auto merge of #597 - PlasmaPower:bump-version, r=alexcrichton0.2.23bors2017-05-192-16/+16
|\ \ | | | | | | | | | | | | | | | Bump to 0.2.23 I've added a bunch of constants and xattr support for macos. We've also got preliminary support for uclibc with #578.
| * | Bump to 0.2.23Lee Bousfield2017-05-182-16/+16
|/ /
* | Auto merge of #594 - PlasmaPower:linux-enoattr, r=alexcrichtonbors2017-05-182-0/+9
|\ \ | |/ |/| | | | | | | Add ENOATTR for Linux It's defined differently for OSX and *BSD, so having a Linux definition is helpful for cross-platform code.
| * Add ENOATTR for LinuxLee Bousfield2017-05-182-0/+9
| |
* | Auto merge of #593 - PlasmaPower:bsd-at-fdcwd, r=alexcrichtonbors2017-05-161-0/+2
|\ \ | |/ |/| | | Add AT_FDCWD for FreeBSD
| * Add AT_FDCWD for FreeBSDLee Bousfield2017-05-151-0/+2
|/
* Auto merge of #578 - cactorium:master, r=alexcrichtonbors2017-05-086-8/+2757
|\ | | | | | | | | | | Steps towards support for musl-unknown-linux-uclibc Hello! I've been working towards resolving https://github.com/rust-lang/libc/issues/361 , this PR compiles successfully with a newish compiler (with some minor fixes in `gcc`, `ctest`), and all the tests pass for `libc-ctest`. Basically most of the undefined functions, constants, and structs were just removed from the ctest, and then any constants that weren't correct were fixed. Would it make more sense to conditionally remove them from libc? I wasn't sure when it was appropriate to skip the test for it instead of removing the function/constants, so I just removed all the tests for now because that was a little easier than hunting them down. I'm also guessing the way some of the constants were conditionally set wasn't the correct style, would you guys have any advice on how to do it more correctly? Lemme know how it looks!
| * Remove MAP_HUGETLB from mips-unknown-linux-uclibcKelvin Ly2017-05-062-5/+3
| |