Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys make the data arguments of *setxattr(2) const, as in Linux
details: https://anonhg.NetBSD.org/src/rev/0e38ee48dc0b
branches: trunk
changeset: 767429:0e38ee48dc0b
user: drochner <drochner%NetBSD.org@localhost>
date: Mon Jul 18 11:28:24 2011 +0000
description:
make the data arguments of *setxattr(2) const, as in Linux
(is this an official NetBSD API or should it be COMPAT_LINUX only?)
diffstat:
sys/kern/syscalls.master | 8 ++++----
sys/sys/xattr.h | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (48 lines):
diff -r 504d70e04304 -r 0e38ee48dc0b sys/kern/syscalls.master
--- a/sys/kern/syscalls.master Mon Jul 18 08:58:38 2011 +0000
+++ b/sys/kern/syscalls.master Mon Jul 18 11:28:24 2011 +0000
@@ -1,4 +1,4 @@
- $NetBSD: syscalls.master,v 1.249 2011/06/26 17:05:24 christos Exp $
+ $NetBSD: syscalls.master,v 1.250 2011/07/18 11:28:24 drochner Exp $
; @(#)syscalls.master 8.2 (Berkeley) 1/13/94
@@ -718,13 +718,13 @@
374 COMPAT_50 MODULAR RUMP { int|sys||pollts(struct pollfd *fds, u_int nfds, \
const struct timespec50 *ts, const sigset_t *mask); }
375 STD RUMP { int|sys||setxattr(const char *path, \
- const char *name, void *value, size_t size, \
+ const char *name, const void *value, size_t size, \
int flags); }
376 STD RUMP { int|sys||lsetxattr(const char *path, \
- const char *name, void *value, size_t size, \
+ const char *name, const void *value, size_t size, \
int flags); }
377 STD RUMP { int|sys||fsetxattr(int fd, \
- const char *name, void *value, size_t size, \
+ const char *name, const void *value, size_t size, \
int flags); }
378 STD RUMP { int|sys||getxattr(const char *path, \
const char *name, void *value, size_t size); }
diff -r 504d70e04304 -r 0e38ee48dc0b sys/sys/xattr.h
--- a/sys/sys/xattr.h Mon Jul 18 08:58:38 2011 +0000
+++ b/sys/sys/xattr.h Mon Jul 18 11:28:24 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xattr.h,v 1.3 2008/04/28 20:24:11 martin Exp $ */
+/* $NetBSD: xattr.h,v 1.4 2011/07/18 11:28:24 drochner Exp $ */
/*-
* Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -59,9 +59,9 @@
#include <sys/cdefs.h>
__BEGIN_DECLS
-int setxattr(const char *, const char *, void *, size_t, int);
-int lsetxattr(const char *, const char *, void *, size_t, int);
-int fsetxattr(int, const char *, void *, size_t, int);
+int setxattr(const char *, const char *, const void *, size_t, int);
+int lsetxattr(const char *, const char *, const void *, size_t, int);
+int fsetxattr(int, const char *, const void *, size_t, int);
ssize_t getxattr(const char *, const char *, void *, size_t);
ssize_t lgetxattr(const char *, const char *, void *, size_t);
Home |
Main Index |
Thread Index |
Old Index