diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 18:54:19 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2022-01-16 19:29:10 +0100 |
commit | dd3048b2e483f66571cfa1b2ccebb2091b9ad990 (patch) | |
tree | e8cc587d06c15befd9ab7212938bb0e05a029c23 /libtrivfs | |
parent | 2e38095efd8cad7fe6feb95dbeb276b7a4287f05 (diff) | |
download | hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.tar.gz hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.tar.bz2 hurd-dd3048b2e483f66571cfa1b2ccebb2091b9ad990.zip |
Make RPC input array parameters const
This follows mig's cf4bcc3f1435 ("Also add const qualifiers on server
side")
Diffstat (limited to 'libtrivfs')
-rw-r--r-- | libtrivfs/dir-link.c | 2 | ||||
-rw-r--r-- | libtrivfs/dir-lookup.c | 2 | ||||
-rw-r--r-- | libtrivfs/dir-mkdir.c | 2 | ||||
-rw-r--r-- | libtrivfs/dir-rename.c | 4 | ||||
-rw-r--r-- | libtrivfs/dir-rmdir.c | 2 | ||||
-rw-r--r-- | libtrivfs/dir-unlink.c | 2 | ||||
-rw-r--r-- | libtrivfs/file-exec.c | 32 | ||||
-rw-r--r-- | libtrivfs/file-set-trans.c | 2 | ||||
-rw-r--r-- | libtrivfs/fsys-forward.c | 2 | ||||
-rw-r--r-- | libtrivfs/fsys-getroot.c | 4 | ||||
-rw-r--r-- | libtrivfs/fsys-set-options.c | 2 | ||||
-rw-r--r-- | libtrivfs/fsys-stubs.c | 6 | ||||
-rw-r--r-- | libtrivfs/io-restrict-auth.c | 4 | ||||
-rw-r--r-- | libtrivfs/io-write.c | 2 | ||||
-rw-r--r-- | libtrivfs/trivfs.h | 2 |
15 files changed, 35 insertions, 35 deletions
diff --git a/libtrivfs/dir-link.c b/libtrivfs/dir-link.c index f5a8c735..b2b90f97 100644 --- a/libtrivfs/dir-link.c +++ b/libtrivfs/dir-link.c @@ -20,7 +20,7 @@ kern_return_t trivfs_S_dir_link (struct trivfs_protid *dir, mach_port_t reply, mach_msg_type_name_t reply_type, - struct trivfs_protid *file, char *name, int excl) + struct trivfs_protid *file, const_string_t name, int excl) { if (!file) return EOPNOTSUPP; diff --git a/libtrivfs/dir-lookup.c b/libtrivfs/dir-lookup.c index 73aff5c4..0a62d496 100644 --- a/libtrivfs/dir-lookup.c +++ b/libtrivfs/dir-lookup.c @@ -23,7 +23,7 @@ kern_return_t trivfs_S_dir_lookup (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - char *filename, + const_string_t filename, int flags, mode_t mode, retry_type *retry_type, diff --git a/libtrivfs/dir-mkdir.c b/libtrivfs/dir-mkdir.c index d39bd3f8..28ed02c5 100644 --- a/libtrivfs/dir-mkdir.c +++ b/libtrivfs/dir-mkdir.c @@ -20,7 +20,7 @@ kern_return_t trivfs_S_dir_mkdir (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - char *name, mode_t mode) + const_string_t name, mode_t mode) { return cred ? ENOTDIR : EOPNOTSUPP; } diff --git a/libtrivfs/dir-rename.c b/libtrivfs/dir-rename.c index d68233ec..60690c23 100644 --- a/libtrivfs/dir-rename.c +++ b/libtrivfs/dir-rename.c @@ -20,8 +20,8 @@ kern_return_t trivfs_S_dir_rename (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - char *name, - struct trivfs_protid *cred2, char *name2, int excl) + const_string_t name, + struct trivfs_protid *cred2, const_string_t name2, int excl) { if (!cred) return EOPNOTSUPP; diff --git a/libtrivfs/dir-rmdir.c b/libtrivfs/dir-rmdir.c index a4d320c4..62b3ca2e 100644 --- a/libtrivfs/dir-rmdir.c +++ b/libtrivfs/dir-rmdir.c @@ -20,7 +20,7 @@ kern_return_t trivfs_S_dir_rmdir (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - char *name) + const_string_t name) { return cred ? ENOTDIR : EOPNOTSUPP; } diff --git a/libtrivfs/dir-unlink.c b/libtrivfs/dir-unlink.c index a6ef9b0c..c59a9253 100644 --- a/libtrivfs/dir-unlink.c +++ b/libtrivfs/dir-unlink.c @@ -20,7 +20,7 @@ kern_return_t trivfs_S_dir_unlink (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - char *name) + const_string_t name) { return cred ? ENOTDIR : EOPNOTSUPP; } diff --git a/libtrivfs/file-exec.c b/libtrivfs/file-exec.c index a0a2a50c..2121a3c0 100644 --- a/libtrivfs/file-exec.c +++ b/libtrivfs/file-exec.c @@ -24,19 +24,19 @@ trivfs_S_file_exec (trivfs_protid_t exec_file, mach_msg_type_name_t replyPoly, mach_port_t exec_task, int flags, - data_t argv, + const_data_t argv, mach_msg_type_number_t argvCnt, - data_t envp, + const_data_t envp, mach_msg_type_number_t envpCnt, - portarray_t fdarray, + const_portarray_t fdarray, mach_msg_type_number_t fdarrayCnt, - portarray_t portarray, + const_portarray_t portarray, mach_msg_type_number_t portarrayCnt, - intarray_t intarray, + const_intarray_t intarray, mach_msg_type_number_t intarrayCnt, - mach_port_array_t deallocnames, + const_mach_port_array_t deallocnames, mach_msg_type_number_t deallocnamesCnt, - mach_port_array_t destroynames, + const_mach_port_array_t destroynames, mach_msg_type_number_t destroynamesCnt) { return EOPNOTSUPP; @@ -48,21 +48,21 @@ trivfs_S_file_exec_paths (trivfs_protid_t exec_file, mach_msg_type_name_t replyPoly, mach_port_t exec_task, int flags, - string_t path, - string_t abspath, - data_t argv, + const_string_t path, + const_string_t abspath, + const_data_t argv, mach_msg_type_number_t argvCnt, - data_t envp, + const_data_t envp, mach_msg_type_number_t envpCnt, - portarray_t fdarray, + const_portarray_t fdarray, mach_msg_type_number_t fdarrayCnt, - portarray_t portarray, + const_portarray_t portarray, mach_msg_type_number_t portarrayCnt, - intarray_t intarray, + const_intarray_t intarray, mach_msg_type_number_t intarrayCnt, - mach_port_array_t deallocnames, + const_mach_port_array_t deallocnames, mach_msg_type_number_t deallocnamesCnt, - mach_port_array_t destroynames, + const_mach_port_array_t destroynames, mach_msg_type_number_t destroynamesCnt) { return EOPNOTSUPP; diff --git a/libtrivfs/file-set-trans.c b/libtrivfs/file-set-trans.c index 5a011184..02a679f0 100644 --- a/libtrivfs/file-set-trans.c +++ b/libtrivfs/file-set-trans.c @@ -25,7 +25,7 @@ trivfs_S_file_set_translator (struct trivfs_protid *cred, int actflags, int passflags, int oldtransflags, - data_t trans, + const_data_t trans, size_t translen, mach_port_t existing) { diff --git a/libtrivfs/fsys-forward.c b/libtrivfs/fsys-forward.c index f1480d16..4e4e2703 100644 --- a/libtrivfs/fsys-forward.c +++ b/libtrivfs/fsys-forward.c @@ -33,7 +33,7 @@ trivfs_S_fsys_forward (mach_port_t server, mach_port_t reply, mach_msg_type_name_t replytype, mach_port_t requestor, - data_t argz, size_t argz_len) + const_data_t argz, size_t argz_len) { return EOPNOTSUPP; } diff --git a/libtrivfs/fsys-getroot.c b/libtrivfs/fsys-getroot.c index 6542ab16..446f9ff0 100644 --- a/libtrivfs/fsys-getroot.c +++ b/libtrivfs/fsys-getroot.c @@ -31,8 +31,8 @@ trivfs_S_fsys_getroot (struct trivfs_control *cntl, mach_port_t reply_port, mach_msg_type_name_t reply_port_type, mach_port_t dotdot, - uid_t *uids, size_t nuids, - uid_t *gids, size_t ngids, + const id_t *uids, size_t nuids, + const id_t *gids, size_t ngids, int flags, retry_type *do_retry, string_t retry_name, diff --git a/libtrivfs/fsys-set-options.c b/libtrivfs/fsys-set-options.c index 033f5dcc..ca5a9458 100644 --- a/libtrivfs/fsys-set-options.c +++ b/libtrivfs/fsys-set-options.c @@ -26,7 +26,7 @@ error_t trivfs_S_fsys_set_options (struct trivfs_control *cntl, mach_port_t reply, mach_msg_type_name_t reply_type, - data_t data, mach_msg_type_number_t len, + const_data_t data, mach_msg_type_number_t len, int do_children) { if (cntl) diff --git a/libtrivfs/fsys-stubs.c b/libtrivfs/fsys-stubs.c index 96b3d122..430ea382 100644 --- a/libtrivfs/fsys-stubs.c +++ b/libtrivfs/fsys-stubs.c @@ -59,11 +59,11 @@ kern_return_t __attribute__((weak)) trivfs_S_fsys_getfile (struct trivfs_control *cntl, mach_port_t reply, mach_msg_type_name_t replytype, - uid_t *genuids, + const uid_t *genuids, size_t ngenuids, - uid_t *gengids, + const uid_t *gengids, size_t ngengids, - data_t handle, + const_data_t handle, size_t handlesize, mach_port_t *file, mach_msg_type_name_t *filetype) diff --git a/libtrivfs/io-restrict-auth.c b/libtrivfs/io-restrict-auth.c index 6c807f17..38ab06a7 100644 --- a/libtrivfs/io-restrict-auth.c +++ b/libtrivfs/io-restrict-auth.c @@ -40,8 +40,8 @@ trivfs_S_io_restrict_auth (struct trivfs_protid *cred, mach_msg_type_name_t replytype, mach_port_t *newport, mach_msg_type_name_t *newporttype, - uid_t *uids, size_t nuids, - uid_t *gids, size_t ngids) + const uid_t *uids, size_t nuids, + const uid_t *gids, size_t ngids) { unsigned int i; error_t err; diff --git a/libtrivfs/io-write.c b/libtrivfs/io-write.c index 31e05548..74cbb32b 100644 --- a/libtrivfs/io-write.c +++ b/libtrivfs/io-write.c @@ -24,7 +24,7 @@ kern_return_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, - data_t data, + const_data_t data, mach_msg_type_number_t datalen, off_t off, mach_msg_type_number_t *amt) diff --git a/libtrivfs/trivfs.h b/libtrivfs/trivfs.h index 1295fe17..4b96f224 100644 --- a/libtrivfs/trivfs.h +++ b/libtrivfs/trivfs.h @@ -287,7 +287,7 @@ typedef struct trivfs_control *trivfs_control_t; kern_return_t trivfs_S_io_write (trivfs_protid_t io_object, mach_port_t reply, mach_msg_type_name_t replyPoly, - data_t data, + const_data_t data, mach_msg_type_number_t dataCnt, loff_t offset, vm_size_t *amount); |