summaryrefslogtreecommitdiff
path: root/src/unix/solarish
Commit message (Collapse)AuthorAgeFilesLines
...
* solarish sendfilev fn flavordc2021-10-311-0/+13
|
* sendfile fn for solarish systemsdc2021-10-301-0/+3
|
* solarish add process pflags api.DC2021-10-251-0/+12
|
* solarish add thr_self fnDC2021-10-031-0/+2
|
* pthread_getname_np/pthread_setname_np for solarishDC2021-09-261-0/+2
|
* solarish adding missing processor bind query constants.DC2021-09-021-0/+5
|
* Add preadv/pwritev for illumos.Luqman Aden2021-08-311-0/+4
|
* solarish adding ucontext structDC2021-08-272-1/+210
|
* Auto merge of #2350 - rtzoeller:solarish_scheduler, r=JohnTitorbors2021-08-191-0/+16
|\ | | | | | | | | | | Add sched_get/setparam and sched_get/setscheduler to Solarish Also define scheduling constants for illumos.
| * Add sched_get/setparam and sched_get/setscheduler to SolarishRyan Zoeller2021-08-171-0/+16
| | | | | | | | Also define scheduling constants.
* | Auto merge of #2329 - devnexen:getsethostid_unix, r=JohnTitorbors2021-08-151-0/+3
|\ \ | |/ |/| | | | | | | adding gethostid/sethostid to most unixes (redox still unimplemented at the moment).
| * adding gethostid/sethostid to most unixes (redox still unimplemented atDavid CARLIER2021-08-131-0/+3
| | | | | | | | the moment).
* | sched_get_priority_max/min apply to all BSDs and SolarisRyan Zoeller2021-08-121-0/+2
|/
* solarish add getgrouplistDC2021-08-081-0/+6
|
* solarish getexecname additionDavid Carlier2021-08-021-0/+2
|
* FD_ISSET: take a *const fd_set instead of *mut fd_setAlan Somers2021-07-121-1/+1
| | | | | | | | | FD_ISSET does not modify its fd_set argument, so it may as well take a const pointer. AFAICT the only reason to take a *mut pointer is because the Linux man page documents it that way (though since glibc implements it as a macro, the constedness is undefined). But since libc implements it directly rather than calling a (nonexistent on most platforms) C function, we're defining the API ourselves.
* solaris adding few cpu affinity related functionsDavid Carlier2021-06-131-0/+7
|
* solaris based systems updateDavid Carlier2021-06-122-0/+43
| | | | basis to do cpu affinity with some illumos specifics.
* Fix styleYuki Okushi2021-04-064-183/+43
|
* Constify `CMSG_SPACE` for all the targetsJohnTitor2021-03-301-6/+8
|
* Replace `x86_64-sun-solaris` with `x86_64-pc-solaris`Yuki Okushi2021-03-021-1/+1
|
* Add several IPsec related optionsJason King2021-02-271-0/+7
|
* Additional solaris fcntl valuesJason King2021-02-272-0/+16
|
* Add O_DIRECTORY to solarishSean Klein2021-02-161-0/+1
|
* Auto merge of #2042 - pfmooney:illumos-portnotify, r=JohnTitorbors2021-01-271-0/+5
|\ | | | | | | | | | | Add port_notify struct for illumos and Solaris This adds a missing struct for configuring event ports notifications. The `libc-test` suite passes on illumos (OmniOSCE) and is assumed to pass on Solaris, given that the interface has been present since Oracle forked from OpenSolaris.
| * Add port_notify struct for illumos and SolarisPatrick Mooney2021-01-221-0/+5
| |
* | Add timer interface for illumos and SolarisPatrick Mooney2021-01-221-0/+21
|/
* add missing TCP socket options for illumosJoshua M. Clulow2020-11-252-1/+19
| | | | | The socket2 crate now depends on TCP_MAXSEG, and the rest of the options may as well come along for the ride.
* Add additional TCP options; fix TCP_KEEPIDLEJason King2020-10-303-3/+8
|
* Add additional solarish TCP optionsJason King2020-10-301-0/+3
|
* pthread_getattr_np is not present on illumosPatrick Mooney2020-10-042-4/+5
|
* Use safe_f! consistently across platformsDaniil Bondarev2020-09-121-10/+13
| | | | | | | | | | | | The pr #1870 introduced safe_f! macro, which made some functions like WIFEXITED and WEXITSTATUS const and safe on linux_like platform only, which causes inconsistency when trying to use those functions in crates compiled across multiple platforms, as using unsafe on those functions will generate unused_unsafe warning on linux platforms and lack of unsafe block will fail compilation on non-linux platforms. To avoid the inconsistency, this commit applies the same macro for all the same functions on other platforms too.
* add pthread_getattr_np() and pthread_attr_getstack() support for illumos and ↵Petr Sumbera2020-09-091-0/+9
| | | | Solaris systems
* add openpty and forkpty implementation for illumos systemsJoshua M. Clulow2020-08-052-0/+174
| | | | | | | | 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.
* 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.
* Expose EPOLLEXCLUSIVE on illumos platformPatrick Mooney2020-07-172-2/+1
| | | | | | | Initially the EPOLLEXCLUSIVE definition was hidden on the illumos platform as it lacked explicit support. After further review, it was concluded that EPOLLEXCLUSIVE can safely be considered a no-op, when not fully implemented by the OS, making it safe for use on illumos.
* Merge pull request #1792 from jasonbking/cmsgYuki Okushi2020-06-271-0/+56
|\
| * Add ancillary socket data accessor functions for solarish OSesJason King2020-06-261-0/+56
| |
* | illumos: Add eventfd supportPatrick Mooney2020-06-091-0/+6
| |
* | solarish: Add missing constantsPatrick Mooney2020-06-081-0/+3
|/
* remove SmartOS constants not applicable to illumos or SolarisJoshua M. Clulow2020-05-261-4/+0
| | | | | | | | SmartOS is a downstream distribution of illumos, and carries a number of additional patches that are not commonly available in other illumos distributions. They are also not found in Oracle Solaris. With these removed, the libc tests pass on a stock illumos system running OpenIndiana.
* Re-define `__priority_which`s as c_uint in linux-gnuYuki Okushi2020-05-211-0/+4
|
* Merge pull request #1716 from pfmooney/illumos-targetYuki Okushi2020-04-113-98/+153
|\ | | | | Split up Solaris and illumos targets
| * Split up Solaris and illumos targetsPatrick Mooney2020-04-033-98/+153
| |
* | fix cfmakeraw() for illumos and SolarisJoshua M. Clulow2020-04-041-6/+21
|/ | | | | | | | | | | | | | | | | | This change fixes two issues. First, the current cfmakeraw() implementation in this crate appears to be making a stack copy of the input "struct termios" before modifying it, rather than correctly modifying the original through the pointer. Before this modification the routine did not, thus, set the flags for raw mode. Second, we address the default settings of the MIN and TIME terminal options. On at least FreeBSD and Linux systems, the modern default value for MIN appears to be 1; i.e., block and wait for at least one input byte. On most Solaris and illumos systems, the MIN control character slot overlaps with EOF, and thus has a default value of 4. This breaks at least the examples in the "termion" crate, and probably quite a lot of other software written first and foremost for Linux systems. We need to force the MIN value to 1 while switching to raw mode.
* Add accept4() for NetBSD, Illumos and SolarisTorbjørn Birch Moltu2020-03-211-0/+6
| | | | | | | | | | | | | References: * NetBSD (became available with 8.0): http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/sys/socket.h?annotate=1.129&only_with_tag=MAIN http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libc/sys/accept4.c?annotate=1.2&only_with_tag=MAIN * Illumos: https://illumos.org/man/3socket/accept https://github.com/illumos/illumos-gate/blob/master/usr/src/uts/common/sys/socket.h https://github.com/illumos/illumos-gate/blob/master/usr/src/lib/libsocket/socket/weaks.c * Solaris: https://docs.oracle.com/cd/E88353_01/html/E37843/accept-3c.html
* Add missing AT_ constantsThomas Hurst2020-03-141-0/+4
| | | | | | Add AT_EACCESS to Linux, Solaris, and Fuchsia. Add AT_SYMLINK_FOLLOW, AT_REMOVEDIR, and _AT_TRIGGER to Solaris.
* Solarish: missing declaration of port_send and port_sendnVita Batrla2020-03-091-0/+12
|
* Add <sys/timex.h> declarations for Solaris/IllumOSDaniel Fox Franke2020-03-011-0/+82
|
* Remove unnecessary parenthesisVickenty Fesunov2020-02-121-70/+70
| | | | | This triggers a warning on a recent nightly, which in turn breaks CI due to `#![deny(warnings)]` in libc-test/build.rs