Skip to contentSkip to conversation

ioctl: add and ship public header

PATCH New David Disseldorp 1 participant 1 message Jun 5, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ioctl: add and ship public header

The header currently only exposes the CIFS_IOC_COPYCHUNK_FILE interface, but is still useful.

---
 Makefile.am |  2 ++
 ioctl.h     | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 36 insertions(+)
 create mode 100644 ioctl.h
Makefile.am +2 -0
index 92da8b1..3d1bd3a 100644
@@ -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
new file mode 100644
index 0000000..0ae831c
@@ -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