Sébastien Marie
6dc38681a6
use proper type of si_addr in siginfo_t
...
under openbsd it is a `caddr_t` which expand to `char *`.
as the size of the type change, adjust the padding too.
2015-12-23 11:03:13 +01:00
Sébastien Marie
b1a108c245
change sign for blksize_t
type under openbsd
2015-12-23 11:03:12 +01:00
Sébastien Marie
d732678ddc
change type size to match openbsd C
2015-12-23 11:03:12 +01:00
Sébastien Marie
c5eadb3293
remove backtrace() prototype that don't exists under
...
- openbsd
- bitrig
- netbsd
2015-12-23 11:03:12 +01:00
Sébastien Marie
5f75552056
change proto for getnameinfo()
...
arguments `hostlen' and `servlen' are `socklen_t' or `size_t' depending
the platform
- apple: I don't known, so I don't change the original definition (socklen_t)
- netbsd: socklen_t
- freebsd: size_t
- dragonfly: size_t
- openbsd: size_t
- bitrig: size_t
2015-12-23 11:03:12 +01:00
Sébastien Marie
3465481a8c
more proto change on openbsd
...
- sysctl: *mut -> *const
- mprotect: *const -> *mut
- remove sysctlbyname() that don't exists under openbsd
2015-12-23 11:03:11 +01:00
Sébastien Marie
040976b20f
change proto (uint -> int) for pthread_*_np() functions
...
- same prototype on bitrig and openbsd
- for netbsd, I did found it at all (?)
2015-12-23 11:03:11 +01:00
Sébastien Marie
27fd4f8661
rename syscalls constants to follow name under openbsd
2015-12-23 11:03:11 +01:00
Sébastien Marie
85008bd38e
drop undefined constants under openbsd
...
- IPV6_{ADD,DROP}_MEMBERSHIP
- HW_AVAILCPU
2015-12-23 11:03:11 +01:00
Sébastien Marie
15cb33670d
move Dl_info struct per system
...
- under openbsd and bitrig: dli_saddr member is *mut ::c_void
- under netbsd: it is *const ::c_void
2015-12-23 11:03:10 +01:00
Sébastien Marie
9e8707902f
there are no pw_fields
in struct passwd
under openbsd
2015-12-23 11:03:10 +01:00
Sébastien Marie
c618f366f3
add openbsd support to libc-test
2015-12-23 11:03:10 +01:00
Alex Crichton
fb83189000
Merge pull request #107 from brson/emscripten
...
Add emscripten support
2015-12-21 17:19:30 -08:00
Brian Anderson
9d014e9d40
Remove emscripten docs
2015-12-22 00:03:11 +00:00
Brian Anderson
7d1d57521a
Add emscripten support
2015-12-21 23:34:02 +00:00
Alex Crichton
e0c0bf439a
Merge pull request #109 from semarie/openbsd-si_addr
...
openbsd: map `si_addr` inside `struct siginfo_t`
2015-12-20 08:41:16 -08:00
Sébastien Marie
73a2dbce11
openbsd: map si_addr
inside struct siginfo_t
...
formally, under OpenBSD, `si_addr` is part of a C union. As we don't use
others members of the union inside `struct siginfo_t`, it should be safe
to directly map the field.
2015-12-20 06:58:07 +01:00
Alex Crichton
4b9b07c719
Merge pull request #88 from alexcrichton/update-android
...
Update the android CI image
2015-12-18 13:51:06 -08:00
Alex Crichton
881ef9b966
Update the android CI image
...
It's got a new toolchain which should hopefully support some more modern
definitions.
2015-12-18 13:15:09 -08:00
Alex Crichton
2c7e08c959
Merge pull request #108 from mmcco/sc
...
Add getentropy(2)'s syscall number as a const
2015-12-18 09:19:55 -08:00
Michael McConville
3d372e605a
Fix build by adding type prefix colons
2015-12-18 00:19:00 -05:00
Michael McConville
405e557d6c
Add getentropy(2)'s syscall number as a const
...
I'm not convinced that the NR_* naming scheme is ideal, but it's pretty
good.
I didn't recognize any other syscall numbers in the file, so I started a
new section.
2015-12-18 00:09:43 -05:00
Alex Crichton
31423a3e24
Merge pull request #106 from alexcrichton/bump
...
Bump to 0.2.4
2015-12-17 15:20:36 -08:00
Alex Crichton
ff38c3a121
Bump to 0.2.4
2015-12-17 14:44:50 -08:00
Alex Crichton
9863d5645f
Merge pull request #105 from alexcrichton/fix-bsd
...
Fix compiles on various BSDs
2015-12-17 13:58:05 -08:00
Alex Crichton
37b71423c9
Fix compiles on various BSDs
...
Also document them to prevent future regressions
2015-12-17 10:50:53 -08:00
Alex Crichton
3e1791cf98
Merge pull request #102 from fhahn/add-memrchr
...
Add binding for memrchr on Linux
2015-12-17 10:33:20 -08:00
Florian Hahn
6bb23a162c
Add binding for memrchr on Linux, FreeBSD, OpenBSD and NetBSD
2015-12-16 23:23:16 +01:00
Alex Crichton
ab53d5e957
Merge pull request #103 from alexcrichton/bump
...
Bump to 0.2.3
2015-12-16 13:01:09 -08:00
Alex Crichton
79d989996b
Bump to 0.2.3
2015-12-16 11:46:54 -08:00
Alex Crichton
0ac0bc0cce
Merge pull request #93 from alexcrichton/nix-additions
...
Add a load of constants/definitions from nix
2015-12-16 09:03:14 -08:00
Alex Crichton
8dce9ada5c
Add a load of constants/definitions from nix
...
This is a blanket import of lots of constants and function from nix-rust
2015-12-16 08:16:41 -08:00
Alex Crichton
4920c7e88a
Merge pull request #101 from maghoff/master
...
Expose functionality to get peer credentials for a Unix socket on Linux
2015-12-16 08:12:55 -08:00
Magnus Hoff
4b320654ba
Expose functionality to get peer credentials for a Unix socket on Linux
2015-12-16 11:23:54 +01:00
Alex Crichton
64da6d22ba
Merge pull request #98 from j16r/master
...
Add PATH_MAX for FreeBSDlike, defined in /usr/src/sys/sys/syslimits.h
2015-12-15 17:15:40 -08:00
John Barker
761f7bd5cd
Hoist PATH_MAX into src/bsd it's common to all the BSDs
2015-12-15 13:38:42 -05:00
John Barker
93d6e987ea
Add PATH_MAX for FreeBSDlike, defined in /usr/src/sys/sys/syslimits.h
2015-12-15 13:38:42 -05:00
Alex Crichton
a02fdc290c
Merge pull request #96 from polachok/shm
...
SysV shared memory APIs
2015-12-15 09:40:30 -08:00
Alexander Polakov
5ad78b8429
Merge branch 'master' into shm
2015-12-15 19:33:45 +03:00
Alexander Polakov
58501564c4
SysV shared memory APIs
2015-12-15 18:15:05 +03:00
Alex Crichton
e432357a37
Merge pull request #95 from dimbleby/path-max
...
Add PATH_MAX
2015-12-14 09:44:41 -08:00
David Hotham
8b296bd3a2
Add PATH_MAX
2015-12-12 12:11:20 +00:00
Alex Crichton
087b5a4202
Merge pull request #91 from alexcrichton/more-constants
...
Add KERN_PROC_* constants for OpenBSD
2015-12-03 13:29:09 -08:00
Alex Crichton
e0f3fe345b
Add KERN_PROC_* constants for OpenBSD
2015-12-03 11:44:55 -08:00
Alex Crichton
47f1439e0a
Merge pull request #90 from alexcrichton/more-constants
...
Add some constants for learning about cpus
2015-12-03 10:36:41 -08:00
Alex Crichton
cd24bbd3db
Add some constants for learning about cpus
2015-12-02 16:35:10 -08:00
Alex Crichton
6736e10c5c
Merge pull request #89 from alexcrichton/dirent-defns
...
Add dirent DT_* definitions
2015-12-02 13:38:28 -08:00
Alex Crichton
f811901267
Add dirent DT_* definitions
2015-12-02 10:56:56 -08:00
Alex Crichton
9042478bb4
Merge pull request #87 from polachok/xattr
...
Add getxattr()/setxattr() variations
2015-12-02 08:59:59 -08:00
Alexander Polakov
30baed0f7e
Add getxattr()/setxattr()/listxattr()/removexattr() variations
2015-12-02 12:22:01 +03:00