Commit Graph

26 Commits

Author SHA1 Message Date
Carl Lerche
3106b3ca37 Move nix::mq -> nix::mqueue to mirror header 2015-05-28 12:40:27 -07:00
Carl Lerche
74d1831880 Test sockopt const values 2015-05-21 15:02:12 -07:00
Markus Jais
f2ca2b0d3c added getpid and getppid 2015-05-19 20:38:52 +02:00
Markus Jais
a0073d1f9f cleaned up mq unit tests 2015-05-16 10:45:01 +02:00
Paul Osborne
a43613ac77 ioctl: implement generic support for the ioctl syscall and supporting functions
This commit provides a new implementation for ioctl that is much
more generic, allowing for clients to use send any manner of ioctl
requests at special files.  The implementation provides two main features
that help to raise the level of abstraction over that provided by libc.

1. The module now provides functions that provide the same functionality
   as the linux kernel _IO* macros.  These are used frequently in the
   linux kernel for building ops for ioctls.  The use of these helper
   functions are not required.
2. Functions are provided for the 3 main types of ioctl usage patterns
   (read, write, and execute).  For many subystems, the read() call
   which returns a Result<T> and the write calls taking a &T provide
   a nice interface.

All of the methods wrapping ioctl are unsafe and will probably need to
remain that way unless knowledge of the semantics of every possible
ioctl call are added to the nix library.  The best that exists for
ioctls are some conventions around the op, but even these conventions
are really only used for newer devices added to the kernel.

This change resolves #108
2015-05-12 22:25:22 -07:00
Skyler Hawthorne
ecbbf1a817 Add lstat 2015-05-08 14:11:44 -07:00
Qingping Hou
40539b5c23 feat: add execvpe 2015-05-05 05:23:05 -04:00
Markus Jais
8127b4dd6d Basic Posix MQ support 2015-04-27 13:37:18 -07:00
Florian Hartwig
e3d86a9ccd Add socketpair 2015-04-11 23:51:13 +02:00
Florian Hartwig
e5ae756203 'derive(Copy)' needs Clone now 2015-04-03 20:55:39 +02:00
Carl Lerche
ffc8826dfe Remove usage of std::num::Int 2015-04-01 20:35:24 -07:00
Carl Lerche
15256eb1c2 Track Rust nightly 2015-03-28 17:05:47 -07:00
Carl Lerche
c252b4d534 Use libc from crates.io 2015-03-25 18:41:57 -07:00
Carl Lerche
bf3d7c4939 Tweak conversion in test 2015-03-25 16:39:51 -07:00
Carl Lerche
0d5ea0b16d Track Rust master 2015-03-25 10:52:05 -07:00
Carl Lerche
47d2332c3c NixResult -> nix::Result; NixError -> nix::Error 2015-03-24 23:25:10 -07:00
Carl Lerche
2b60633c8b Track Rust nightlies 2015-03-19 15:08:45 -07:00
Carl Lerche
0e369e931f Fix deprecation warnings 2015-03-16 15:39:51 -07:00
kennytm
c5bc33200c Amend some files to make it compile on arm-linux-androideabi. 2015-03-13 16:40:28 -07:00
Markus Jais
b20b6c80cd added test for fstat 2015-03-13 16:11:19 -07:00
Carl Lerche
e8a58c83a5 Further SockAddr & NixPath cleanup 2015-02-27 11:14:38 -08:00
Carl Lerche
8a7cd5675d Large cleanup, mostly of socket functions 2015-02-25 12:24:43 -08:00
Carl Lerche
88988a31a0 Remove prefix from SockAddr variants 2015-02-22 20:50:34 -08:00
Carl Lerche
eb278aa4d7 Implement round trip SockAddr conversions 2015-02-22 12:57:01 -08:00
Carl Lerche
6af51aa232 Fix uio and add SockAddr conversions 2015-02-21 22:42:10 -08:00
Carl Lerche
60ccee778b Cleanup readv & writev + tests 2015-02-21 14:33:27 -08:00