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 /pfinet | |
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 'pfinet')
-rw-r--r-- | pfinet/io-ops.c | 4 | ||||
-rw-r--r-- | pfinet/pfinet-ops.c | 2 | ||||
-rw-r--r-- | pfinet/socket-ops.c | 16 | ||||
-rw-r--r-- | pfinet/tunnel.c | 4 |
4 files changed, 13 insertions, 13 deletions
diff --git a/pfinet/io-ops.c b/pfinet/io-ops.c index ddda1110..e0e1875b 100644 --- a/pfinet/io-ops.c +++ b/pfinet/io-ops.c @@ -36,7 +36,7 @@ error_t S_io_write (struct sock_user *user, - char *data, + data_t data, size_t datalen, off_t offset, mach_msg_type_number_t *amount) @@ -69,7 +69,7 @@ S_io_write (struct sock_user *user, error_t S_io_read (struct sock_user *user, - char **data, + data_t *data, size_t *datalen, off_t offset, mach_msg_type_number_t amount) diff --git a/pfinet/pfinet-ops.c b/pfinet/pfinet-ops.c index 6724575c..5db66978 100644 --- a/pfinet/pfinet-ops.c +++ b/pfinet/pfinet-ops.c @@ -42,7 +42,7 @@ extern int dev_ifconf(char *arg); error_t S_pfinet_siocgifconf (io_t port, vm_size_t amount, - char **ifr, + data_t *ifr, mach_msg_type_number_t *len) { error_t err = 0; diff --git a/pfinet/socket-ops.c b/pfinet/socket-ops.c index c7686026..71b458c8 100644 --- a/pfinet/socket-ops.c +++ b/pfinet/socket-ops.c @@ -292,7 +292,7 @@ S_socket_connect2 (struct sock_user *user1, error_t S_socket_create_address (mach_port_t server, int sockaddr_type, - char *data, + data_t data, mach_msg_type_number_t data_len, mach_port_t *addr_port, mach_msg_type_name_t *addr_port_type) @@ -337,7 +337,7 @@ S_socket_fabricate_address (mach_port_t server, error_t S_socket_whatis_address (struct sock_addr *addr, int *type, - char **data, + data_t *data, mach_msg_type_number_t *datalen) { if (!addr) @@ -374,7 +374,7 @@ error_t S_socket_getopt (struct sock_user *user, int level, int option, - char **data, + data_t *data, size_t *datalen) { error_t err; @@ -403,7 +403,7 @@ error_t S_socket_setopt (struct sock_user *user, int level, int option, - char *data, + data_t data, size_t datalen) { error_t err; @@ -430,11 +430,11 @@ error_t S_socket_send (struct sock_user *user, struct sock_addr *addr, int flags, - char *data, + data_t data, size_t datalen, mach_port_t *ports, size_t nports, - char *control, + data_t control, size_t controllen, mach_msg_type_number_t *amount) { @@ -477,12 +477,12 @@ S_socket_recv (struct sock_user *user, mach_port_t *addrport, mach_msg_type_name_t *addrporttype, int flags, - char **data, + data_t *data, size_t *datalen, mach_port_t **ports, mach_msg_type_name_t *portstype, size_t *nports, - char **control, + data_t *control, size_t *controllen, int *outflags, mach_msg_type_number_t amount) diff --git a/pfinet/tunnel.c b/pfinet/tunnel.c index b57f8dbb..d140b657 100644 --- a/pfinet/tunnel.c +++ b/pfinet/tunnel.c @@ -290,7 +290,7 @@ void (*trivfs_protid_destroy_hook) (struct trivfs_protid *) = pi_destroy_hook; 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, size_t amount) { struct tunnel_device *tdev; @@ -369,7 +369,7 @@ error_t trivfs_S_io_write (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, off_t offset, mach_msg_type_number_t *amount) |