ioctl: add and ship public header
Subsystems (3)
PATCH 1/1 ioctl: add and ship public header
The header currently only exposes the CIFS_IOC_COPYCHUNK_FILE interface, but is still useful.
Signed-off-by David Disseldorp <[email protected]>
--- Makefile.am | 2 ++ ioctl.h | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 ioctl.h
Makefile.am +2 -0
@@ -8,6 +8,8 @@ mount_cifs_LDADD = $(LIBCAP) $(CAPNG_LDADD) $(RT_LDADD) man_MANS = mount.cifs.8 include_HEADERS = cifsidmap.h +cifsincludedir = $(includedir)/cifs +cifsinclude_HEADERS = ioctl.h bin_PROGRAMS = sbin_PROGRAMS =
ioctl.h new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright (C) 2014 SUSE Linux Products GmbH. All Rights Reserved. +* +* This library is free software; you can redistribute it and/or modify +* it under the terms of the GNU Lesser General Public License as published +* by the Free Software Foundation; either version 2.1 of the License, or +* (at your option) any later version. +* +* This library is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See +* the GNU Lesser General Public License for more details. +* +* You should have received a copy of the GNU Lesser General Public +* License along with this library; if not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __CIFS_IOCTL_ +#define __CIFS_IOCTL_ +#include <asm/types.h> +#include <linux/ioctl.h> + +#ifdef __cplusplus +extern "C" { +#endif + +#define CIFS_IOCTL_MAGIC 0xCF +#define CIFS_IOC_COPYCHUNK_FILE _IOW(CIFS_IOCTL_MAGIC, 3, int) + +#ifdef __cplusplus +} +#endif + +#endif
Signature · 1 line
1.8.4.5