summaryrefslogtreecommitdiff
path: root/src/unix/solarish
Commit message (Collapse)AuthorAgeFilesLines
* add major/minor on BSDs/illumosSteve Lau2023-04-201-0/+18
|
* Auto merge of #3171 - Toasterson:master, r=JohnTitor,pfmooneybors2023-04-201-1/+1
|\ | | | | | | | | | | | | | | | | | | | | fix: CMSG_HEADER_ALIGNMENT was not properly equal to the C Header file in illumos A small fix for illumos so we can add more archs to the definition. This aligns the defintions in libc with the corresponding C Headers. I ran all the steps it asked me and only got an issue with `cc1: note: unrecognized command-line option '-Wno-unknown-warning-option' may have been intended to silence earlier diagnostics` although that seems to me like I am using a different gcc that CI. This is part of the ARM work goin on at the moment. CC: `@richlowe` and `@jclulow` for coordination.
| * fix: CMSG_HEADER_ALIGNMENT was not properly equal to the C Header file in ↵Till Wegmueller2023-03-141-1/+1
| | | | | | | | | | | | illumos Signed-off-by: Till Wegmueller <toasterson@gmail.com>
* | Upstream a few more constants from rustix.Dan Gohman2023-04-181-0/+2
|/ | | | | | | | - And a definition for `RLIM64_INFINITY` on linux_like platforms. - Declare the `sync` function on Android and solarish. - Solaris: https://docs.oracle.com/cd/E26502_01/html/E29032/sync-2.html - Illumos: https://illumos.org/man/2/sync - Enable `FICLONE` and `FICLONERANGE` on more architectures.
* Solaris/Illumos: use correct types for getrandom(2) flagsJoe Richey2023-01-261-2/+2
| | | | | | | | | | | | | | | On Solaris (and any other platform that supports it), the `getrandom(2)` syscall has signature: ```rust fn getrandom(buf: *mut c_void, buflen: size_t, flags: c_uint) -> ssize_t; ``` so the flag constants (`GRND_NONBLOCK`, `GRND_RANDOM`, etc...) should be of type `c_uint`. I'm not sure if this sort of "bug fix" counts as a breaking change. Signed-off-by: Joe Richey <joerichey@google.com>
* Add ISO C functions atof, atol, atoll, strtoll, strtoullLegionMammal9782022-12-141-1/+0
|
* adding getopt_long for unixes.David Carlier2022-12-011-0/+15
|
* Auto merge of #2914 - SteveLauC:Wrong-getpwent_r-definition-on-solarish-os, ↵bors2022-11-032-14/+53
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r=JohnTitor fix wrong definitions of getpwent_r and getgrent_r on solarish os Closes #2908 * [man page for `getpwent_r`](https://illumos.org/man/3C/getpwnam) * [man page for `getgrent_r`](https://illumos.org/man/3C/getgrnam) You may find the definitions for `getpwnam_r/getpwuid_r/getgrnam_r/getgruid_r` exposed by `libc` are also wrong: ```c struct passwd *getpwnam_r(const char *name, struct passwd *pwd, char *buffer, int buflen); ``` ```rust pub fn getpwnam_r( name: *const ::c_char, pwd: *mut passwd, buf: *mut ::c_cha buflen: ::size_t, result: *mut *mut passwd, ) -> ::c_int; ``` But actually they are **correct** as there are the POSIX-conforming definitions (see `Standard conforming` section of above man pages): ``` Standard conforming cc [ flag...] file... -D_POSIX_PTHREAD_SEMANTICS [ library... ] int getpwnam_r(const char *name, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result); int getpwuid_r(uid_t uid, struct passwd *pwd, char *buffer, size_t bufsize, struct passwd **result); ``` `getpwent_r/getgrent_r` don't get lucky, they do not have the POSIX-conforming alternatives. To double check this, I searched its [source code](https://github.com/illumos/illumos-gate/blob/master/usr/src/lib/libc/port/gen/getpwnam_r.c): ```shell $ rg "__posix_getpwnam_r" port/mapfile-vers 1582: __posix_getpwnam_r; port/gen/getpwnam_r.c 152:__posix_getpwnam_r(const char *name, struct passwd *pwd, char *buffer, $ rg "__posix_getpwent_r" $ ```
| * adopt the get[pw/gr]ent_r def used by FreeBSDSteve Lau2022-10-032-14/+53
| |
* | fix: Order of all `s_*!` macro callsFlorian Bartels2022-10-281-24/+24
| |
* | Auto merge of #2969 - pfmooney:illumos-aout, r=JohnTitorbors2022-10-231-2/+0
|\ \ | | | | | | | | | | | | | | | illumos: Remove obsolete (and private) a.out define This cleans up an obsolete definition which [has been removed](https://github.com/illumos/illumos-gate/commit/fec047081731fd77caf46ec0471c501b2cb33894#diff-33b9ac79706b16f65c95e909fde32771b388f896bee74a006d13fefdf877fe91L163) in upstream illumos, and thus is causing libc-test to fail on up-to-date machines.
| * | illumos: Remove obsolete (and private) a.out definePatrick Mooney2022-10-171-2/+0
| | |
* | | solarish: Fix libsendfile symbol dependencyPatrick Mooney2022-10-171-11/+12
|/ /
* | add faccessat on illumos/solaris and euidaccess on solarisSteve Lau2022-10-092-0/+4
| |
* | Auto merge of #2930 - devnexen:solarish_regset_amd64, r=JohnTitorbors2022-10-061-0/+31
|\ \ | |/ |/| | | solarish amd64 regset constants
| * solarish amd64 regset constantsDavid Carlier2022-09-281-0/+31
| |
* | mmap/madvise specific solaris additional flags.David Carlier2022-09-242-0/+6
|/
* Auto merge of #2901 - gco:tcp_keepcnt, r=JohnTitorbors2022-09-111-2/+2
|\ | | | | | | Solaris TCP_KEEPINTVL and TCP_KEEPCNT have wrong values
| * Solaris TCP_KEEPINTVL and TCP_KEEPCNT have wrong valuesgco2022-09-051-2/+2
| |
* | Auto merge of #2900 - gco:master, r=JohnTitorbors2022-09-103-2/+8
|\ \ | | | | | | | | | fcntl F_DUPFD_CLOEXEC has different values on Solaris and Illumos
| * | fcntl F_DUPFD_CLOEXEC has different values on Solaris and Illumosgco2022-09-053-2/+8
| |/
* | solarish SHM* flagsDavid Carlier2022-09-101-0/+8
|/
* solarish systems SOMAXCONN constantDavid Carlier2022-05-281-0/+2
|
* Fix values for Solarismaxfranke2022-04-121-4/+4
|
* Added SSM sockops for OSes that have support but were missing from libcmaxfranke2022-04-121-0/+10
|
* fixing illumos build for couple of structsDavid Carlier2022-03-151-11/+11
|
* solarish adding newdb constantsDavid Carlier2022-03-031-0/+9
|
* Auto merge of #2695 - devnexen:solarish_fcntl_update, r=Amanieubors2022-02-231-0/+8
|\ | | | | | | illumos add few fcntl consts
| * illumos add few fcntl constsDavid Carlier2022-02-231-0/+8
| |
* | solarish: Expose siginfo_t data as functionsPatrick Mooney2022-02-231-13/+172
| | | | | | | | | | | | This will bring illumos (and Solaris) functionality in line with the other UNIX (and UNIX-like) platforms, where unions often hamper access to those data fields.
* | solarish backtrace apiDavid Carlier2022-02-201-0/+4
|/
* solarish getisax/auxiliary vector constantsDavid Carlier2022-02-192-0/+76
|
* solarish lgrp api updateDavid Carlier2022-02-151-0/+10
|
* solarish systems dl_iterate_phdr supportDavid Carlier2022-02-143-0/+74
|
* processor_info for solarishDavid Carlier2022-02-121-0/+23
|
* solarish lgrp api subsetDavid Carlier2022-02-121-0/+66
|
* solarish systeminfoDavid Carlier2022-02-112-0/+24
|
* illumos: higher baud rates, more termios constantsJoshua M. Clulow2022-02-102-0/+19
| | | | | | | We added baud rate constants that are source compatible with Linux systems when used with the cfsetspeed() family, in: https://www.illumos.org/issues/13975
* solarish: Fix tests for subsequent additionsPatrick Mooney2022-02-101-1/+1
|
* illumos: fixes to get tests to passJoshua M. Clulow2022-02-101-2/+37
| | | | | | | Various small fixes to the tests to include all the required headers, and to add some constants that are now part of the "unix" semver list, and to drop "sethostid()" which is not something we have on our platform, etc.
* illumos: fixes for mcontext_t and related typesJoshua M. Clulow2022-02-102-11/+13
| | | | | | | | | | | | | | Some of the type information in the machine context types, with particular focus on the padding unions, was not quite right. It seems we have used the somewhat baroque "long double" in the system headers, and Rust does not have a type that matches that data layout. I have adjusted the structs to omit that member, but to be explicitly aligned to match the C version. I also gagged a test for the "fp_reg_set" member which is of an anonymous union type. Portions contributed by: Patrick Mooney <pmooney@pfmooney.com>
* illumos: sendfile(3EXT) is in libsendfile, not libcJoshua M. Clulow2022-02-101-0/+3
| | | | | | As per https://illumos.org/man/3EXT/sendfile a separate header and library are required to access sendfile() and sendfilev() on illumos systems.
* illumos: wrong values for F_OFD_*Joshua M. Clulow2022-02-101-5/+8
| | | | | | The test suite flagged that incorrect values for some fcntl(2) constants were added in #2083. I have fixed the values so that they are correct for 64-bit programs, which Rust programs always are on illumos.
* solaris based systems priv api flags updatesDavid Carlier2022-01-241-0/+8
|
* Auto merge of #2609 - devnexen:solarish_sol_filter, r=Amanieubors2022-01-041-0/+15
|\ | | | | | | illumos SOL_FILTER socket option.
| * illumos SOL_FILTER socket option.David Carlier2022-01-041-0/+15
| |
* | solarish couple of strings fn.David Carlier2021-12-241-0/+9
|/
* solarish add meminfoDavid Carlier2021-12-211-0/+8
|
* solarish systems couple of fn extensions.David Carlier2021-12-202-0/+30
|
* Add TIOCM_* constants for Illumos and Solaris.Maarten de Vries2021-11-071-0/+12
|