[PATCH v3 2/3] tests: add dup.test, dup2.test and dup3.test

Dmitry V. Levin ldv at altlinux.org
Wed Mar 9 23:19:11 UTC 2016


On Wed, Mar 09, 2016 at 02:07:05PM +0800, Fei Jie wrote:
[...]
> --- /dev/null
> +++ b/tests/dup.c
> @@ -0,0 +1,16 @@
> +#include <errno.h>
> +#include <stdio.h>
> +#include <unistd.h>
> +
> +int
> +main(void)
> +{
> +	const long int fd = (long int) 0xdeadbeefffffffff;
> +	int rc = dup(fd);

This looks like a remnant of the previous edition.
"dup" takes an integer so "fd" has to be "int" not long.


-- 
ldv
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.strace.io/pipermail/strace-devel/attachments/20160310/8cd2de9a/attachment.bin>


More information about the Strace-devel mailing list