Files
alcove/c_src
Michael Santos 4ee88053e1 Add support for prctl(2)
Interface to prctl(2) so that seccomp mode can eventually be
added. Supporting prctl is tricky. prctl(2) has 5 arguments: an option
that sets the operation and 4 arg whose type and use is dependent on the
operation.

Usually only the second argument is used. The type of the second
argument can be:

* an unsigned long (the declared type)
* a pointer to char
* a pointer to int

Since a long will match the size of a pointer, this works. However,
passing in a integer when a pointer is expected may crash the process.

The return value is either the function result or written into the
pointed value, depending on the operation.

alcove uses an int (4 bytes) to represent the unsigned long. This may
overflow on 64-bit platforms (will be fixed!).
2014-03-10 17:12:07 -04:00
..
2014-03-09 09:23:55 -04:00
2014-03-10 17:12:07 -04:00
2014-03-08 13:53:56 -05:00
2014-03-08 13:53:56 -05:00
2014-03-08 13:53:56 -05:00
2014-03-09 14:57:58 -04:00
2014-03-10 17:12:07 -04:00
2014-03-10 17:12:07 -04:00
2014-03-02 08:59:33 -05:00
2014-03-09 16:17:50 -04:00
2014-03-09 16:17:50 -04:00
2014-03-02 08:59:33 -05:00