public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH 1/3] Added memfd_create lapi flags
Date: Tue, 28 Feb 2017 16:41:50 +0100	[thread overview]
Message-ID: <20170228154150.GA13574@rei.lan> (raw)
In-Reply-To: <1488283196-11397-2-git-send-email-jracek@redhat.com>

Hi!
> Signed-off-by: Jakub Racek <jracek@redhat.com>
> ---
>  include/lapi/memfd_create.h | 30 ++++++++++++++++++++++++++++++
>  1 file changed, 30 insertions(+)
>  create mode 100644 include/lapi/memfd_create.h
                                   ^
				   This should probably be named only
				   memfd.h

> diff --git a/include/lapi/memfd_create.h b/include/lapi/memfd_create.h
> new file mode 100644
> index 0000000..47c4cb8
> --- /dev/null
> +++ b/include/lapi/memfd_create.h
> @@ -0,0 +1,30 @@
> +/*
> + * Copyright (C) 2017  Red Hat, Inc.
> + * This program is free software; you can redistribute it and/or
> + * modify it under the terms of version 2 of the GNU General Public
> + * License as published by the Free Software Foundation.

We preffere GPLv2+ (with any later clausule) for any new code.

> + * This program is distributed in the hope that it would be useful,
> + * but WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> + *
> + * Further, this software is distributed without any warranty that it
> + * is free of the rightful claim of any third person regarding
> + * infringement or the like.  Any license provided herein, whether
> + * implied or otherwise, applies only to this software file.  Patent
> + * licenses, if any, provided herein do not apply to combinations of
> + * this program with other software, or any other product whatsoever.
> + */
> +
> +#ifndef __LAPI_MEMFD_H__
> +#define __LAPI_MEMFD_H__

Identifiers starting with underscore are reserved for system libraries
(mostly libc). We should not introduce new ones. And the old ones should
be fixed.

> +/* flags for memfd_create(2) (unsigned int) */
> +#ifndef MFD_CLOEXEC
> +# define MFD_CLOEXEC             0x0001U
> +#endif
> +#ifndef MFD_ALLOW_SEALING
> +# define MFD_ALLOW_SEALING       0x0002U
> +#endif
> +
> +#endif
> -- 
> 1.8.3.1
> 
> 
> -- 
> Mailing list info: https://lists.linux.it/listinfo/ltp

-- 
Cyril Hrubis
chrubis@suse.cz

  reply	other threads:[~2017-02-28 15:41 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-28 11:59 [LTP] [PATCH 0/3] Added memfd_create() testsuite Jakub Racek
2017-02-28 11:59 ` [LTP] [PATCH 1/3] Added memfd_create lapi flags Jakub Racek
2017-02-28 15:41   ` Cyril Hrubis [this message]
2017-02-28 11:59 ` [LTP] [PATCH 2/3] Added fcntl() and fallocate() " Jakub Racek
2017-02-28 15:43   ` Cyril Hrubis
2017-02-28 11:59 ` [LTP] [PATCH 3/3] Added port of memfd_create testsuite Jakub Racek
2017-02-28 15:59   ` Cyril Hrubis
2017-02-28 16:23     ` Jakub =?unknown-8bit?q?Ra=C4=8Dek?=

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170228154150.GA13574@rei.lan \
    --to=chrubis@suse.cz \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox