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 /pflocal | |
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 'pflocal')
-rw-r--r-- | pflocal/io.c | 4 | ||||
-rw-r--r-- | pflocal/pf.c | 4 | ||||
-rw-r--r-- | pflocal/socket.c | 12 |
3 files changed, 10 insertions, 10 deletions
diff --git a/pflocal/io.c b/pflocal/io.c index 2c23df4a..23e71ea4 100644 --- a/pflocal/io.c +++ b/pflocal/io.c @@ -43,7 +43,7 @@ ignored. The amount desired to be read is in amount. */ error_t S_io_read (struct sock_user *user, - char **data, mach_msg_type_number_t *data_len, + data_t *data, mach_msg_type_number_t *data_len, off_t offset, mach_msg_type_number_t amount) { error_t err; @@ -79,7 +79,7 @@ S_io_read (struct sock_user *user, if they recevie more than one write when not prepared for it. */ error_t S_io_write (struct sock_user *user, - char *data, mach_msg_type_number_t data_len, + data_t data, mach_msg_type_number_t data_len, off_t offset, mach_msg_type_number_t *amount) { error_t err; diff --git a/pflocal/pf.c b/pflocal/pf.c index 55824d41..35b3d8c3 100644 --- a/pflocal/pf.c +++ b/pflocal/pf.c @@ -83,7 +83,7 @@ S_socket_create (mach_port_t pf, error_t S_socket_create_address (mach_port_t pf, int sockaddr_type, - char *data, size_t data_len, + data_t data, size_t data_len, mach_port_t *addr_port, mach_msg_type_name_t *addr_port_type) { @@ -121,7 +121,7 @@ S_socket_fabricate_address (mach_port_t pf, error_t S_socket_whatis_address (struct addr *addr, int *sockaddr_type, - char **sockaddr, size_t *sockaddr_len) + data_t *sockaddr, size_t *sockaddr_len) { socklen_t addr_len = (offsetof (struct sockaddr, sa_data) + 1); diff --git a/pflocal/socket.c b/pflocal/socket.c index 0fcf4843..47ad037f 100644 --- a/pflocal/socket.c +++ b/pflocal/socket.c @@ -276,9 +276,9 @@ S_socket_peername (struct sock_user *user, /* Send data over a socket, possibly including Mach ports. */ error_t S_socket_send (struct sock_user *user, struct addr *dest_addr, int flags, - char *data, size_t data_len, + data_t data, size_t data_len, mach_port_t *ports, size_t num_ports, - char *control, size_t control_len, + data_t control, size_t control_len, size_t *amount) { error_t err = 0; @@ -367,10 +367,10 @@ error_t S_socket_recv (struct sock_user *user, mach_port_t *addr, mach_msg_type_name_t *addr_type, int in_flags, - char **data, size_t *data_len, + data_t *data, size_t *data_len, mach_port_t **ports, mach_msg_type_name_t *ports_type, size_t *num_ports, - char **control, size_t *control_len, + data_t *control, size_t *control_len, int *out_flags, size_t amount) { error_t err; @@ -431,7 +431,7 @@ S_socket_recv (struct sock_user *user, error_t S_socket_getopt (struct sock_user *user, int level, int opt, - char **value, size_t *value_len) + data_t *value, size_t *value_len) { int ret = 0; @@ -488,7 +488,7 @@ S_socket_getopt (struct sock_user *user, error_t S_socket_setopt (struct sock_user *user, - int level, int opt, char *value, size_t value_len) + int level, int opt, data_t value, size_t value_len) { int ret = 0; |