summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #1866 from joshtriplett/master0.2.75Yuki Okushi2020-08-201-1/+1
|\ | | | | libc 0.2.75
| * libc 0.2.75Josh Triplett2020-08-181-1/+1
| |
* | Merge pull request #1855 from jedbrown/masterYuki Okushi2020-08-202-1/+15
|\ \
| * | add fmemopen, open_memstream, and open_wmemstream for POSIX.1-2008Jed Brown2020-08-192-1/+15
|/ / | | | | | | Skip test on aarch64 due to https://github.com/rust-lang/libc/issues/1765
* | Merge pull request #1864 from sajattack/psp-correctionsYuki Okushi2020-08-201-9/+16
|\ \ | | | | | | PSP: A few corrections to types and function signatures
| * | PSP: A few corrections to types and function signaturesPaul Sajna2020-08-191-9/+16
| | |
* | | Merge pull request #1863 from ifreund/aarch64-musl-ucontext_tYuki Okushi2020-08-201-0/+18
|\ \ \ | |/ / |/| | Add ucontext_t for aarch64-unknown-linux-musl
| * | Add ucontext_t for aarch64-unknown-linux-muslIsaac Freund2020-08-191-0/+18
| | |
* | | Merge pull request #1865 from JohnTitor/cloudabi-tier3Yuki Okushi2020-08-192-3/+2
|\ \ \ | |_|/ |/| | Move `x86_64-unknown-cloudabi` to tier 3 check
| * | Move `x86_64-unknown-cloudabi` to tier 3 checkYuki Okushi2020-08-192-3/+2
|/ /
* | Merge pull request #1861 from joshtriplett/p_pidfdYuki Okushi2020-08-192-0/+14
|\ \
| * | Define P_PIDFD, used with waitidJosh Triplett2020-08-182-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | Linux defines a waitid type `P_PIDFD`, for use with process file descriptors (`pidfd`). Add that constant. In libc-test, add linux/wait.h to the Linux-specific and Android-specific headers, to get the definition. Exclude it on Android and musl for now, though, as the versions in CI don't have it yet.
* | | Merge pull request #1862 from fornwall/android-regexYuki Okushi2020-08-172-0/+71
|\ \ \ | |_|/ |/| |
| * | Add regex.h to libc-test for AndroidFredrik Fornwall2020-08-161-0/+1
| | |
| * | Expose regex.h for AndroidFredrik Fornwall2020-08-121-0/+70
| | |
* | | Merge pull request #1859 from joshtriplett/w_exitcodeYuki Okushi2020-08-141-0/+8
|\ \ \
| * | | Add W_STOPCODE to construct a stop codeJosh Triplett2020-08-101-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On Linux, `sys/wait.h` defines a `W_STOPCODE` macro to construct a stop code from the signal number of a stopping signal. Provide an equivalent function. Suggested-by: Ivan Tham <pickfire@riseup.net>
| * | | Add W_EXITCODE to construct an exit codeJosh Triplett2020-08-091-0/+4
| | |/ | |/| | | | | | | | | | | | | On Linux, `sys/wait.h` defines a `W_EXITCODE` macro to construct an exit code from a return value and a signal number. Provide an equivalent function.
* | | Merge pull request #1856 from BasixKOR/win-execlYuki Okushi2020-08-131-0/+29
|\ \ \ | |_|/ |/| | Add execl* functions on Windows
| * | Add execl* functions on WindowsBasix2020-08-121-0/+29
|/ /
* | Merge pull request #1858 from joshtriplett/siginfo-pid-uidYuki Okushi2020-08-115-0/+105
|\ \ | | | | | | Expose si_pid and si_uid from siginfo_t as functions
| * | siginfo: Provide functions for si_utime and si_stimeJosh Triplett2020-08-101-0/+10
| | | | | | | | | | | | | | | The SIGCHLD variant of the siginfo structure also provides fields for user and system time; expose those as well.
| * | siginfo: In the struct used to access sifields, don't name the first 3 fieldsJosh Triplett2020-08-101-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | The first 3 fields of `siginfo_t` have different orders on MIPS. When casting `siginfo_t` to a different type to access the fields of the `sifields` union, avoid giving names to the first three fields, since they're only present for memory layout and shouldn't be accessed from the casted structure type.
| * | Expose si_pid, si_uid, and si_status from siginfo_t as functionsJosh Triplett2020-08-105-0/+97
| |/ | | | | | | | | | | | | | | | | | | On Linux, siginfo_t cannot expose these fields directly due to https://github.com/rust-lang/libc/issues/716 , so expose them as functions, just like si_addr and si_value. In order to get alignment correct on both 32-bit and 64-bit architectures, define an sifields union that includes a pointer field, to ensure that it has the same alignment as a pointer.
* | Merge pull request #1860 from joshtriplett/cldYuki Okushi2020-08-111-0/+7
|\ \ | | | | | | Add CLD_ constants
| * | Add CLD_ constantsJosh Triplett2020-08-091-0/+7
| |/ | | | | | | | | These constants appear in the si_code field of a SIGCHLD signal or waitid-returned siginfo value.
* | Merge pull request #1857 from fabiim/add-pthread-from-mach-threadYuki Okushi2020-08-111-0/+3
|\ \ | |/ |/| Add mac/ios pthread_from_mach_thread_np
| * Add mac/ios pthread_from_mach_thread_npFábio Botelho2020-08-091-0/+3
|/ | | | | | | | | | | | Allows us to get a pthread id from a match thread id. From pthread.h [1]: ``` __API_AVAILABLE(macos(10.5), ios(2.0)) _Nullable pthread_t pthread_from_mach_thread_np(mach_port_t); ``` [1] - https://opensource.apple.com/source/libpthread/libpthread-416.40.3/pthread/pthread.h.auto.html
* Merge pull request #1854 from jclulow/illumos-openptyYuki Okushi2020-08-073-0/+175
|\ | | | | add openpty and forkpty implementation for illumos systems
| * add openpty and forkpty implementation for illumos systemsJoshua M. Clulow2020-08-053-0/+175
| | | | | | | | | | | | | | | | At time of writing, illumos systems do not provide an implementation of the openpty() and forkpty() wrappers provided on some other UNIX systems. While we expect to grow an implementation, it seems prudent to provide a compatibility routine here first to unblock illumos support in the popular nix crate.
* | Merge pull request #1851 from DarkKirb/masterYuki Okushi2020-08-065-1/+46
|\ \
| * | Add DevkitPPC supportDark Kirb2020-08-055-1/+46
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | DevkitPPC does not support unix sockets natively, meaning that bindings to these functions was removed for powerpc targets with "nintendo" as vendor. Suggested target json files: Nintendo Gamecube: ``` { "arch": "powerpc", "data-layout": "E-m:e-p:32:32-i64:64-n32", "dynamic-linking": false, "env": "newlib", "executables": true, "has-elf-tls": false, "has-rpath": true, "linker-flavor": "gcc", "llvm-target": "powerpc-eabi", "max-atomic-width": 32, "os": "dolphin", "target-c-int-width": "32", "target-endian": "big", "target-family": "unix", "target-mcount": "_mcount", "target-pointer-width": "32", "vendor": "nintendo" } ``` Nintendo Wii: ``` { "arch": "powerpc", "data-layout": "E-m:e-p:32:32-i64:64-n32", "dynamic-linking": false, "env": "newlib", "executables": true, "has-elf-tls": false, "has-rpath": true, "linker-flavor": "gcc", "llvm-target": "powerpc-eabi", "max-atomic-width": 32, "os": "revolution", "target-c-int-width": "32", "target-endian": "big", "target-family": "unix", "target-mcount": "_mcount", "target-pointer-width": "32", "vendor": "nintendo" } ```
* | Merge pull request #1853 from coolreader18/nameinfo-constsYuki Okushi2020-08-051-0/+7
|\ \ | |/ |/| Add more constants for getnameinfo on android
| * Add more constants for getnameinfocoolreader182020-08-021-0/+7
| |
* | Merge pull request #1852 from jclulow/illumos-ucredYuki Okushi2020-08-031-0/+33
|\ \ | |/ |/| add ucred(3C) support for illumos and Solaris systems
| * add ucred(3C) support for illumos and Solaris systemsJoshua M. Clulow2020-08-011-0/+33
|/ | | | | | | This series of routines allows the caller to determine the credentials of another process by pid, or of the process on the remote end of a UNIX domain socket. The ucred_t is an opaque object with accessor routines, and must be freed through ucred_free(3C) after use.
* Merge pull request #1849 from nbaksalyar/personalityYuki Okushi2020-07-312-0/+15
|\ | | | | Add sys/personality.h constants for Linux
| * Add sys/personality.h constants for LinuxNikita Baksalyar2020-07-292-0/+15
|/
* Merge pull request #1845 from MrAwesome/patch-10.2.74Yuki Okushi2020-07-291-1/+1
|\ | | | | Bump version to 0.2.74
| * Bump version to 0.2.74Glenn Hope2020-07-271-1/+1
| | | | | | This includes changes which will allow us to successfully build `libstd` for the PSP.
* | Merge pull request #1844 from asomers/CTL_P1003_1B_MAXIDYuki Okushi2020-07-292-0/+5
|\ \ | | | | | | Deprecate CTL_P1003_1B_MAXID
| * | Deprecate CTL_P1003_1B_MAXIDAlan Somers2020-07-272-0/+5
| | | | | | | | | | | | | | | It's been removed in FreeBSD 13 (svn r363622), and never had any legitimate use outside of the base system anyway.
* | | Merge pull request #1843 from amanda-tait/fuchsia-cmsgYuki Okushi2020-07-281-0/+55
|\ \ \ | |_|/ |/| |
| * | Fix style in CMSG_* "macros" for fuchsiaamanda-tait2020-07-271-5/+6
| | | | | | | | | | | | | | | | | | This change addresses two style errors found in PR review: * indent and linebreak in CMSG_NXTHDR * prefer `0 as *mut cmsghdr` over `core::ptr::nul_mut()`
| * | Add CMSG_* "macro" support to FuchsiaAmanda Tait2020-07-271-0/+54
| | | | | | | | | | | | | | | | | | | | | This change defines and implements functions for the Fuchsia platform corresponding to the C library CMSG_* macros, used for processing socket control messages sent or received using the recv_msg(2)/send_msg(2) syscalls.
* | | Merge pull request #1842 from MrAwesome/psp_copy_clone_macrosYuki Okushi2020-07-282-1414/+1238
|\ \ \ | |_|/ |/| | Create macros for defining Copy/Clone on enums and struct(), use for psp
| * | Create macros for defining Copy and Clone on psp's enums and parenthetical ↵Glenn Hope2020-07-272-1414/+1238
|/ / | | | | | | | | | | | | | | structs Fix styling Re-run CI
* | Merge pull request #1841 from JohnTitor/freebsd11Yuki Okushi2020-07-271-1/+1
|\ \ | | | | | | Update FreeBSD 11 to 11.4-RELEASE
| * | Update FreeBSD 11 to 11.4-RELEASEYuki Okushi2020-07-271-1/+1
|/ /
* | Merge pull request #1840 from JohnTitor/suppress-lintYuki Okushi2020-07-272-11/+13
|\ \