diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2019-09-01 00:59:31 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-09-01 00:59:31 +0000 |
commit | 1186cf1d97d62105aa0f63cd3fce49f124e4e4c4 (patch) | |
tree | dad95f8a2c464a3b9e9924b84e0e293cd28cf673 /libnetfs | |
parent | c60fbb1eebb4bc2ff10c9ccfea05abc77db66067 (diff) | |
download | hurd-1186cf1d97d62105aa0f63cd3fce49f124e4e4c4.tar.gz hurd-1186cf1d97d62105aa0f63cd3fce49f124e4e4c4.tar.bz2 hurd-1186cf1d97d62105aa0f63cd3fce49f124e4e4c4.zip |
Use the data_t type defined in hurd_types.h.
* boot/boot.c: Replace char* with data_t.
* console-client/trans.c: Likewise.
* exec/exec.c: Likewise.
* ext2fs/storeinfo.c: Likewise.
* fatfs/inode.c: Likewise.
* fatfs/main.c: Likewise.
* isofs/inode.c: Likewise.
* libdiskfs/boot-start.c: Likewise.
* libdiskfs/dir-readdir.c: Likewise.
* libdiskfs/file-exec.c: Likewise.
* libdiskfs/file-get-fs-opts.c: Likewise.
* libdiskfs/file-get-trans.c: Likewise.
* libdiskfs/file-getfh.c: Likewise.
* libdiskfs/file-set-trans.c: Likewise.
* libdiskfs/fsys-forward.c: Likewise.
* libdiskfs/fsys-getfile.c: Likewise.
* libdiskfs/fsys-options.c: Likewise.
* libdiskfs/io-read.c: Likewise.
* libdiskfs/io-write.c: Likewise.
* libnetfs/dir-readdir.c: Likewise.
* libnetfs/file-exec.c: Likewise.
* libnetfs/file-get-fs-options.c: Likewise.
* libnetfs/file-get-storage-info.c: Likewise.
* libnetfs/file-get-translator.c: Likewise.
* libnetfs/file-set-translator.c: Likewise.
* libnetfs/fsstubs.c: Likewise.
* libnetfs/fsys-get-options.c: Likewise.
* libnetfs/fsys-set-options.c: Likewise.
* libnetfs/fsysstubs.c: Likewise.
* libnetfs/io-read.c: Likewise.
* libnetfs/io-write.c: Likewise.
* libtrivfs/dir-readdir.c: Likewise.
* libtrivfs/file-get-fs-options.c: Likewise.
* libtrivfs/file-get-storage-info.c: Likewise.
* libtrivfs/file-get-trans.c: Likewise.
* libtrivfs/file-getfh.c: Likewise.
* libtrivfs/file-set-trans.c: Likewise.
* libtrivfs/fsys-forward.c: Likewise.
* libtrivfs/fsys-get-options.c: Likewise.
* libtrivfs/fsys-set-options.c: Likewise.
* libtrivfs/fsys-stubs.c: Likewise.
* libtrivfs/io-read.c: Likewise.
* libtrivfs/io-write.c: Likewise.
* pfinet/io-ops.c: Likewise.
* pfinet/pfinet-ops.c: Likewise.
* pfinet/socket-ops.c: Likewise.
* pfinet/tunnel.c: Likewise.
* pflocal/io.c: Likewise.
* pflocal/pf.c: Likewise.
* pflocal/socket.c: Likewise.
* proc/info.c: Likewise.
* startup/startup.c: Likewise.
* storeio/io.c: Likewise.
* term/users.c: Likewise.
* tmpfs/node.c: Likewise.
* trans/crash.c: Likewise.
* trans/fakeroot.c: Likewise.
* trans/fifo.c: Likewise.
* trans/firmlink.c: Likewise.
* trans/hello-mt.c: Likewise.
* trans/hello.c: Likewise.
* trans/mtab.c: Likewise.
* trans/new-fifo.c: Likewise.
* trans/null.c: Likewise.
* trans/proxy-defpager.c: Likewise.
* trans/streamio.c: Likewise.
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/dir-readdir.c | 2 | ||||
-rw-r--r-- | libnetfs/file-exec.c | 4 | ||||
-rw-r--r-- | libnetfs/file-get-fs-options.c | 2 | ||||
-rw-r--r-- | libnetfs/file-get-storage-info.c | 2 | ||||
-rw-r--r-- | libnetfs/file-get-translator.c | 2 | ||||
-rw-r--r-- | libnetfs/file-set-translator.c | 2 | ||||
-rw-r--r-- | libnetfs/fsstubs.c | 2 | ||||
-rw-r--r-- | libnetfs/fsys-get-options.c | 2 | ||||
-rw-r--r-- | libnetfs/fsys-set-options.c | 2 | ||||
-rw-r--r-- | libnetfs/fsysstubs.c | 4 | ||||
-rw-r--r-- | libnetfs/io-read.c | 2 | ||||
-rw-r--r-- | libnetfs/io-write.c | 2 |
12 files changed, 14 insertions, 14 deletions
diff --git a/libnetfs/dir-readdir.c b/libnetfs/dir-readdir.c index 4ab03d8a..3d40dfa5 100644 --- a/libnetfs/dir-readdir.c +++ b/libnetfs/dir-readdir.c @@ -25,7 +25,7 @@ error_t netfs_S_dir_readdir (struct protid *user, - char **data, + data_t *data, mach_msg_type_number_t *datacnt, boolean_t *data_dealloc, int entry, diff --git a/libnetfs/file-exec.c b/libnetfs/file-exec.c index 8153b1f4..0f0f2864 100644 --- a/libnetfs/file-exec.c +++ b/libnetfs/file-exec.c @@ -35,9 +35,9 @@ kern_return_t netfs_S_file_exec (struct protid *cred, task_t task, int flags, - char *argv, + data_t argv, size_t argvlen, - char *envp, + data_t envp, size_t envplen, mach_port_t *fds, size_t fdslen, diff --git a/libnetfs/file-get-fs-options.c b/libnetfs/file-get-fs-options.c index a8029916..7f759cc0 100644 --- a/libnetfs/file-get-fs-options.c +++ b/libnetfs/file-get-fs-options.c @@ -31,7 +31,7 @@ /* Implement file_get_fs_options as described in <hurd/fs.defs>. */ error_t netfs_S_file_get_fs_options (struct protid *user, - char **data, mach_msg_type_number_t *data_len) + data_t *data, mach_msg_type_number_t *data_len) { error_t err; char *argz = 0; diff --git a/libnetfs/file-get-storage-info.c b/libnetfs/file-get-storage-info.c index d2c9d8fc..18e9aa34 100644 --- a/libnetfs/file-get-storage-info.c +++ b/libnetfs/file-get-storage-info.c @@ -29,7 +29,7 @@ netfs_S_file_get_storage_info (struct protid *user, int **ints, mach_msg_type_number_t *num_ints, off_t **offsets, mach_msg_type_number_t *num_offsets, - char **data, mach_msg_type_number_t *data_len) + data_t *data, mach_msg_type_number_t *data_len) { error_t err; diff --git a/libnetfs/file-get-translator.c b/libnetfs/file-get-translator.c index fb23226e..635653de 100644 --- a/libnetfs/file-get-translator.c +++ b/libnetfs/file-get-translator.c @@ -28,7 +28,7 @@ error_t netfs_S_file_get_translator (struct protid *user, - char **trans, + data_t *trans, mach_msg_type_number_t *translen) { struct node *np; diff --git a/libnetfs/file-set-translator.c b/libnetfs/file-set-translator.c index 5b2383b8..c73c0376 100644 --- a/libnetfs/file-set-translator.c +++ b/libnetfs/file-set-translator.c @@ -28,7 +28,7 @@ error_t netfs_S_file_set_translator (struct protid *user, int passive_flags, int active_flags, - int killtrans_flags, char *passive, + int killtrans_flags, data_t passive, mach_msg_type_number_t passivelen, mach_port_t active) { diff --git a/libnetfs/fsstubs.c b/libnetfs/fsstubs.c index b260f5da..dffdad16 100644 --- a/libnetfs/fsstubs.c +++ b/libnetfs/fsstubs.c @@ -32,7 +32,7 @@ netfs_S_file_notice_changes (struct protid *user, error_t __attribute__((weak)) netfs_S_file_getfh (struct protid *user, - char **data, mach_msg_type_number_t *ndata) + data_t *data, mach_msg_type_number_t *ndata) { return EOPNOTSUPP; } diff --git a/libnetfs/fsys-get-options.c b/libnetfs/fsys-get-options.c index 836806b2..ee333813 100644 --- a/libnetfs/fsys-get-options.c +++ b/libnetfs/fsys-get-options.c @@ -34,7 +34,7 @@ error_t netfs_S_fsys_get_options (struct netfs_control *port, mach_port_t reply, mach_msg_type_name_t reply_type, - char **data, mach_msg_type_number_t *data_len) + data_t *data, mach_msg_type_number_t *data_len) { error_t err; char *argz = 0; diff --git a/libnetfs/fsys-set-options.c b/libnetfs/fsys-set-options.c index afa480f8..7fa5e5ac 100644 --- a/libnetfs/fsys-set-options.c +++ b/libnetfs/fsys-set-options.c @@ -50,7 +50,7 @@ error_t netfs_S_fsys_set_options (struct netfs_control *pt, mach_port_t reply, mach_msg_type_name_t reply_type, - char *data, mach_msg_type_number_t data_len, + data_t data, mach_msg_type_number_t data_len, int do_children) { error_t err = 0; diff --git a/libnetfs/fsysstubs.c b/libnetfs/fsysstubs.c index 6cf12cc8..91e05cf0 100644 --- a/libnetfs/fsysstubs.c +++ b/libnetfs/fsysstubs.c @@ -28,7 +28,7 @@ netfs_S_fsys_getfile (struct netfs_control *cntl, mach_msg_type_name_t reply_type, uid_t *uids, mach_msg_type_number_t nuids, gid_t *gids, mach_msg_type_number_t ngids, - char *handle, mach_msg_type_number_t handlelen, + data_t handle, mach_msg_type_number_t handlelen, mach_port_t *file, mach_msg_type_name_t *filetype) { return EOPNOTSUPP; @@ -59,7 +59,7 @@ netfs_S_fsys_forward (mach_port_t cntl, mach_port_t reply, mach_msg_type_name_t reply_type, mach_port_t request, - char *argv, mach_msg_type_number_t argvlen) + data_t argv, mach_msg_type_number_t argvlen) { return EOPNOTSUPP; } diff --git a/libnetfs/io-read.c b/libnetfs/io-read.c index 0ce75db1..2427ce6c 100644 --- a/libnetfs/io-read.c +++ b/libnetfs/io-read.c @@ -25,7 +25,7 @@ error_t netfs_S_io_read (struct protid *user, - char **data, + data_t *data, mach_msg_type_number_t *datalen, off_t offset, mach_msg_type_number_t amount) diff --git a/libnetfs/io-write.c b/libnetfs/io-write.c index 19bcf09c..20769df8 100644 --- a/libnetfs/io-write.c +++ b/libnetfs/io-write.c @@ -24,7 +24,7 @@ error_t netfs_S_io_write (struct protid *user, - char *data, + data_t data, mach_msg_type_number_t datalen, off_t offset, mach_msg_type_number_t *amount) |