dup3 syscall - atomic set O_CLOEXEC with dup2
Ed Schouten
ed at 80386.nl
Thu Jan 12 10:38:52 UTC 2012
Hi Kostik,
* Kostik Belousov <kostikbel at gmail.com>, 20120112 11:08:
> > +int
> > +sys_dup3(struct thread * const td, struct dup3_args * const uap) {
> The td and uap are not constant in the prototypes generated by
> makesyscalls.sh. This makes me seriosly wonder was the patch compiled at
> all.
This is because the parameters itself are const -- not the objects they
point to. e.g:
int foo(int);
int foo(const int i)
{
/* code here */
}
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20120112/f0fde3e8/attachment.pgp
More information about the freebsd-hackers
mailing list