[CRIU] Re: [RFC] fds TX/RX

Cyrill Gorcunov gorcunov at openvz.org
Fri Mar 16 09:37:08 EDT 2012


On Fri, Mar 16, 2012 at 05:29:47PM +0400, Cyrill Gorcunov wrote:
...
> diff --git a/include/syscall-codes.h b/include/syscall-codes.h
> index 86adf75..0c284b9 100644
> --- a/include/syscall-codes.h
> +++ b/include/syscall-codes.h
> @@ -35,6 +35,7 @@
>  #define __NR_wait4		61
>  #define __NR_kill		62
>  #define __NR_flock		73
> +#define __NR_getdents		78
>  #define __NR_unlink		87
>  #define __NR_setresuid		117
>  #define __NR_setresgid		119
> diff --git a/include/syscall.h b/include/syscall.h
> index 31a5d9a..0206ab9 100644
> --- a/include/syscall.h
> +++ b/include/syscall.h
> @@ -298,6 +298,11 @@ static always_inline long sys_flock(unsigned long fd, unsigned long cmd)
>  	return syscall2(__NR_flock, fd, cmd);
>  }
>  
> +static always_inline long sys_getdents(unsigned int fd, struct linux_dirent *dirent, unsigned int count)
> +{
> +	return syscall3(__NR_getdents, (long)fd, (long)dirent, (long)count);
> +}
> +
>  
> +struct linux_dirent {
> +	unsigned long	d_ino;
> +	unsigned long	d_off;
> +	unsigned short	d_reclen;
> +	char		d_name[256];
> +};
> +

These are redundant snippets remained from prototype, I'll drop it.

	Cyrill


More information about the CRIU mailing list