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 /trans | |
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 'trans')
-rw-r--r-- | trans/crash.c | 2 | ||||
-rw-r--r-- | trans/fakeroot.c | 4 | ||||
-rw-r--r-- | trans/fifo.c | 4 | ||||
-rw-r--r-- | trans/firmlink.c | 2 | ||||
-rw-r--r-- | trans/hello-mt.c | 2 | ||||
-rw-r--r-- | trans/hello.c | 2 | ||||
-rw-r--r-- | trans/mtab.c | 2 | ||||
-rw-r--r-- | trans/new-fifo.c | 6 | ||||
-rw-r--r-- | trans/null.c | 4 | ||||
-rw-r--r-- | trans/proxy-defpager.c | 4 | ||||
-rw-r--r-- | trans/streamio.c | 4 |
11 files changed, 18 insertions, 18 deletions
diff --git a/trans/crash.c b/trans/crash.c index aceebf07..68cde9a6 100644 --- a/trans/crash.c +++ b/trans/crash.c @@ -997,5 +997,5 @@ S_msg_report_wait (mach_port_t process, thread_t thread, error_t S_msg_describe_ports (mach_port_t msgport, mach_port_t refport, mach_port_t *ports, mach_msg_type_number_t nports, - char **desc, mach_msg_type_number_t *desclen) + data_t *desc, mach_msg_type_number_t *desclen) { return EBUSY; } diff --git a/trans/fakeroot.c b/trans/fakeroot.c index 64240f6b..7084d4a5 100644 --- a/trans/fakeroot.c +++ b/trans/fakeroot.c @@ -984,9 +984,9 @@ kern_return_t netfs_S_file_exec (struct protid *user, 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/trans/fifo.c b/trans/fifo.c index ac31f495..326e9a1d 100644 --- a/trans/fifo.c +++ b/trans/fifo.c @@ -339,7 +339,7 @@ trivfs_S_io_map (struct trivfs_protid *cred, error_t trivfs_S_io_read (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - char **data, size_t *data_len, + data_t *data, size_t *data_len, off_t offs, size_t amount) { error_t err; @@ -502,7 +502,7 @@ trivfs_S_io_select_timeout (struct trivfs_protid *cred, error_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - char *data, size_t data_len, + data_t data, size_t data_len, off_t offs, size_t *amount) { error_t err; diff --git a/trans/firmlink.c b/trans/firmlink.c index 1c656a6f..dba5e4ef 100644 --- a/trans/firmlink.c +++ b/trans/firmlink.c @@ -206,7 +206,7 @@ trivfs_goaway (struct trivfs_control *cntl, int flags) error_t trivfs_S_io_read (struct trivfs_protid *cred, 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, loff_t offs, mach_msg_type_number_t amount) { error_t err = 0; diff --git a/trans/hello-mt.c b/trans/hello-mt.c index 44d54dea..92f814d6 100644 --- a/trans/hello-mt.c +++ b/trans/hello-mt.c @@ -124,7 +124,7 @@ close_hook (struct trivfs_peropen *peropen) error_t trivfs_S_io_read (struct trivfs_protid *cred, 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, loff_t offs, mach_msg_type_number_t amount) { struct open *op; diff --git a/trans/hello.c b/trans/hello.c index d1884df1..f8f9e7ab 100644 --- a/trans/hello.c +++ b/trans/hello.c @@ -115,7 +115,7 @@ close_hook (struct trivfs_peropen *peropen) error_t trivfs_S_io_read (struct trivfs_protid *cred, 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, loff_t offs, mach_msg_type_number_t amount) { struct open *op; diff --git a/trans/mtab.c b/trans/mtab.c index 794c07f4..f21377b7 100644 --- a/trans/mtab.c +++ b/trans/mtab.c @@ -640,7 +640,7 @@ close_hook (struct trivfs_peropen *peropen) error_t trivfs_S_io_read (struct trivfs_protid *cred, 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, loff_t offs, mach_msg_type_number_t amount) { error_t err = 0; diff --git a/trans/new-fifo.c b/trans/new-fifo.c index efa36c24..f674837f 100644 --- a/trans/new-fifo.c +++ b/trans/new-fifo.c @@ -524,7 +524,7 @@ trivfs_S_io_map (struct trivfs_protid *cred, error_t trivfs_S_io_read (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - char **data, size_t *data_len, + data_t *data, size_t *data_len, off_t offs, size_t amount) { error_t err; @@ -689,7 +689,7 @@ trivfs_S_io_select_timeout (struct trivfs_protid *cred, error_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t reply_type, - char *data, size_t data_len, + data_t data, size_t data_len, off_t offs, size_t *amount) { error_t err; @@ -821,7 +821,7 @@ trivfs_S_fsys_forward (mach_port_t server, mach_port_t reply, mach_msg_type_name_t replytype, mach_port_t requestor, - char *argz, size_t argz_len) + data_t argz, size_t argz_len) { error_t err; struct fifo_trans *server_trans, *trans; diff --git a/trans/null.c b/trans/null.c index 92717ed8..5f7660f5 100644 --- a/trans/null.c +++ b/trans/null.c @@ -147,7 +147,7 @@ trivfs_S_io_map (struct trivfs_protid *cred, kern_return_t trivfs_S_io_read(struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, - char **data, + data_t *data, mach_msg_type_number_t *datalen, loff_t offs, mach_msg_type_number_t amt) @@ -227,7 +227,7 @@ trivfs_S_io_select_timeout (struct trivfs_protid *cred, kern_return_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, - char *data, mach_msg_type_number_t datalen, + data_t data, mach_msg_type_number_t datalen, loff_t offs, mach_msg_type_number_t *amt) { if (!cred) diff --git a/trans/proxy-defpager.c b/trans/proxy-defpager.c index e2b15ea8..1bb13b7d 100644 --- a/trans/proxy-defpager.c +++ b/trans/proxy-defpager.c @@ -167,7 +167,7 @@ trivfs_goaway (struct trivfs_control *fsys, int flags) kern_return_t trivfs_S_io_read (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, - char **data, + data_t *data, mach_msg_type_number_t *datalen, loff_t offs, mach_msg_type_number_t amt) @@ -180,7 +180,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, kern_return_t trivfs_S_io_write (struct trivfs_protid *cred, mach_port_t reply, mach_msg_type_name_t replytype, - char *data, mach_msg_type_number_t datalen, + data_t data, mach_msg_type_number_t datalen, loff_t offs, mach_msg_type_number_t *amt) { if (!cred) diff --git a/trans/streamio.c b/trans/streamio.c index 84588248..44aabef1 100644 --- a/trans/streamio.c +++ b/trans/streamio.c @@ -481,7 +481,7 @@ trivfs_goaway (struct trivfs_control *fsys, int flags) error_t trivfs_S_io_read (struct trivfs_protid *cred, 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, loff_t offs, mach_msg_type_number_t amount) { error_t err; @@ -520,7 +520,7 @@ trivfs_S_io_readable (struct trivfs_protid *cred, error_t trivfs_S_io_write (struct trivfs_protid *cred, 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, loff_t offs, mach_msg_type_number_t *amount) { error_t err; |