Kamal Marhubi
c381997c0a
linux: Add splice(2), tee(2), vmsplice(2)
2016-02-14 23:41:57 -05:00
Kamal Marhubi
4680d50a8a
linux: Add sendfile(2)
2016-02-12 21:12:14 -05:00
Kamal Marhubi
c33ba2908e
signal: Allow raw_pointer_derive on SigAction struct
...
This will fix the build on pre-1.6.0 Rust.
2016-02-08 19:18:36 -05:00
Philipp Matthias Schaefer
1204b5f985
Let SigHandler derive Clone and Copy
...
and thereby make it usable.
2016-02-04 21:39:32 +01:00
Philipp Matthias Schaefer
645e37d22e
Handle SA_SIGINFO flag in the constructor.
...
If someone creates so many SigAction structs, that a few extra
instructions per object creation create a performance problem,
we could still provide an unsafe variant, that let's the user take
care of the flag.
2016-02-04 19:06:19 +01:00
Philipp Matthias Schaefer
9938df625c
Account for the different signal handler types.
2016-02-04 19:06:19 +01:00
Philipp Matthias Schaefer
645c48f289
Add comment on IPv6 address endianness.
2016-02-04 18:19:23 +01:00
Frank Denis
d5da7dcf93
IPv6 addresses are always in big endian order
...
no matter what the architecture is.
2016-02-04 18:05:27 +01:00
Stanisław Pitucha
9382f342a3
Implement SO_ACCEPTCONN sockopt
...
Only known on linux, nacl, freebsd
2016-02-01 09:17:05 +11:00
Stanisław Pitucha
c65d354805
Add SO_TYPE handling in getsockopt
2016-02-01 09:17:04 +11:00
Philipp Matthias Schaefer
98352705b3
Convert MSG_ flags to bitflags! type.
2016-01-29 22:51:44 -05:00
Frank Denis
dc61f352f6
Add support for SO_{RCV,SND}BUF(FORCE)? sockopts
2016-01-29 16:48:08 -05:00
arcnmx
cdb5eac697
cfg out MAP_32BIT on non-x86
2016-01-29 12:25:52 -05:00
Philipp Matthias Schaefer
360c1a439e
Rename to MapFlags and MsFlags.
2016-01-28 20:51:47 +01:00
Philipp Matthias Schaefer
501e59ff84
Convert MS_ flags to bitflags! type.
2016-01-28 20:50:04 +01:00
Philipp Matthias Schaefer
85482abfde
Convert PROT_ flags to bitflags! type.
2016-01-28 20:46:55 +01:00
Philipp Matthias Schaefer
1d5c77ce28
Convert MAP_ flags to bitflags! type.
2016-01-28 20:46:55 +01:00
Philipp Matthias Schaefer
53cae89c68
Convert CLONE_ flags to bitflags! type.
2016-01-28 20:46:55 +01:00
Kamal Marhubi
745c79164a
Use sockaddr_nl from libc
2016-01-28 10:33:44 -05:00
Alexander Polakov
02cb854372
Derive all the things
...
as suggested by @kamalmarhubi
2016-01-28 10:33:44 -05:00
Alexander Polakov
b45c505dd8
Fix style suggestions regarding #cfg
...
as pointed out by @kamalmarhubi
2016-01-28 10:33:43 -05:00
Alexander Polakov
9eccfc2bd8
Netlink bits
2016-01-28 10:33:43 -05:00
arcnmx
f167e8f2f3
Move errno::Result back to crate root
2016-01-28 00:46:19 -05:00
arcnmx
136bb454d9
Errno::result()
2016-01-28 00:44:44 -05:00
Kamal Marhubi
62809fb6f0
Avoid stack allocation in with_nix_path for Option::None
2016-01-27 21:37:25 -05:00
Kamal Marhubi
d0881f63ec
Bring back mount
...
Fixes https://github.com/carllerche/nix-rust/issues/85
2016-01-27 21:37:25 -05:00
Kamal Marhubi
25ea210ef9
Implement NixPath for Option<&T> where T: NixPath
2016-01-27 21:37:25 -05:00
Kamal Marhubi
9f7c9fb25b
Implement NixPath for str and OsStr
...
This is a stop gap improvement until the NixPath reform is figured out.
refs #221
2016-01-27 17:58:08 -05:00
Kamal Marhubi
44098d9566
Use the net module unconditionally
...
The functions defined are POSIX and should exist on all platforms nix
supports.
2016-01-27 17:18:58 -05:00
Kamal Marhubi
75d038b5ce
Use NixPath for if_nametoindex
2016-01-27 16:15:30 -05:00
Marc Brinkmann
d391523c0e
Use function name as it is used in C.
2016-01-27 15:10:42 -05:00
Marc Brinkmann
5d0871c9f0
Added note regarding naming.
2016-01-27 15:10:42 -05:00
Marc Brinkmann
9363aea144
Use nix::Result explicitly.
2016-01-27 15:10:42 -05:00
Marc Brinkmann
263ddf878f
Changed Error type to nix::Error.
2016-01-27 15:10:42 -05:00
Marc Brinkmann
939e4aa77a
Do not use extern, but if_nametoindex from libc instead.
2016-01-27 15:10:42 -05:00
Marc Brinkmann
4a2de56c6a
Added if_nametoindex (and necessary module based on Cs net/if.h)
2016-01-27 15:10:42 -05:00
arcnmx
e8f014da57
Fix an indent
2016-01-25 21:58:23 -05:00
arcnmx
9df7dc1586
Normalize tabs to spaces
2016-01-25 21:06:03 -05:00
Kamal Marhubi
7dddd91a57
Implement NixPath for CStr
...
This makes NixPath more versatile while waiting to see if there will be
a NixPath overhaul.
Refs https://github.com/carllerche/nix-rust/issues/221
2016-01-25 17:53:29 -05:00
Utkarsh Kukreti
cec5c6157b
Add everything from poll.h.
2016-01-25 17:50:39 -05:00
Philipp Matthias Schaefer
5700e39180
Use libc constants for signals.
2016-01-21 21:00:58 +01:00
arthurprs
c4257f8a76
improve bsd unixes ipv6 support
2016-01-18 21:29:39 -08:00
User Vagrant
c35e7f8781
Update to libc 0.2.4
2016-01-18 21:29:39 -08:00
User Vagrant
8d4d60fdda
Disable IPV6_ADD_MEMBERSHIP on freebsd
2016-01-18 21:29:38 -08:00
Mattis Marjak
cafd7c96f1
allow improper_ctypes for size_t
2016-01-18 21:29:38 -08:00
Mattis Marjak
49798be4d4
fix on mac
2016-01-18 21:29:38 -08:00
Mattis Marjak
73dd2e05b8
update libc to 0.2.2
2016-01-18 21:29:38 -08:00
Philipp Matthias Schaefer
c2c052f98c
Add POSIX function raise()
2016-01-18 11:53:10 -08:00
Philipp Matthias Schaefer
e295907ee6
Publish SockFlags from nix::sys::signal.
...
This brings them in alignment with other things republished from
the OS specific nix::sys::signal::signal.
2016-01-18 11:22:56 -08:00
Kamal Marhubi
0fca8b3607
Fix name of MNT_DETACH flag
2016-01-18 11:21:46 -08:00