aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/extattr.h
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2000-01-19 06:07:34 +0000
committerRobert Watson <rwatson@FreeBSD.org>2000-01-19 06:07:34 +0000
commit8f0738756ccbc1f9f3afacb6876e9b2cc7f259bb (patch)
tree45f242ec0acbfff2b7194048cb0cc53441c2abb4 /sys/sys/extattr.h
parent9b0be035b8cb67fa5a035540479011ad64fb9fab (diff)
downloadsrc-8f0738756ccbc1f9f3afacb6876e9b2cc7f259bb.tar.gz
src-8f0738756ccbc1f9f3afacb6876e9b2cc7f259bb.zip
Fix bde'isms in acl/extattr syscall interface, renaming syscalls to
prettier (?) names, adding some const's around here, et al. Reviewed by: bde
Notes
Notes: svn path=/head/; revision=56272
Diffstat (limited to 'sys/sys/extattr.h')
-rw-r--r--sys/sys/extattr.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/sys/sys/extattr.h b/sys/sys/extattr.h
index 617214543768..d03d4fb78537 100644
--- a/sys/sys/extattr.h
+++ b/sys/sys/extattr.h
@@ -40,18 +40,24 @@
*/
#ifndef _SYS_EXTATTR_H_
-#define _SYS_EXTATTR_H_
+#define _SYS_EXTATTR_H_
+#ifdef _KERNEL
-#define EXTATTR_MAXNAMELEN NAME_MAX
+#define EXTATTR_MAXNAMELEN NAME_MAX
-#ifndef _KERNEL
+#else
+#include <sys/cdefs.h>
-int extattrctl(char *path, int cmd, char *attrname, caddr_t arg);
-int extattr_set_file(char *path, char *attrname, struct iovec *iovp,
- u_int iovcnt);
-int extattr_get_file(char *path, char *attrname, struct iovec *iovp,
- u_int iovcnt);
-int extattr_delete_file(char *path, char *attrname);
+struct iovec;
-#endif
-#endif /* _SYS_EXTATTR_H_ */
+__BEGIN_DECLS
+int extattrctl(const char *path, int cmd, const char *attrname, char *arg);
+int extattr_delete_file(const char *path, const char *attrname);
+int extattr_get_file(const char *path, const char *attrname,
+ struct iovec *iovp, unsigned iovcnt);
+int extattr_set_file(const char *path, const char *attrname,
+ struct iovec *iovp, unsigned iovcnt);
+__END_DECLS
+
+#endif /* !_KERNEL */
+#endif /* !_SYS_EXTATTR_H_ */