diff options
author | Roland McGrath <roland@gnu.org> | 1999-11-08 21:40:27 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1999-11-08 21:40:27 +0000 |
commit | b30d3166c69e43b4058b68e7cfc84803c679a835 (patch) | |
tree | a3b453f218b9fbdcdf30d53b30aa7fde2dfe6b32 /trans | |
parent | fe0ce49ed64e9c4af45903d1c4ac89e4835e8d8c (diff) |
1999-11-08 Roland McGrath <roland@baalperazim.frob.com>
* hello-mt.c: New file, modified from hello.c to be multithreaded.
* Makefile (targets, SRCS): Add hello-mt, hello-mt.c.
(hello-mt): Add appropriate deps.
* hello.c (trivfs_modify_stat): Set st_size from contents_len, not
sizeof (hello) - 1.
Diffstat (limited to 'trans')
-rw-r--r-- | trans/hello.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/trans/hello.c b/trans/hello.c index f4f0e5e6..d1657dda 100644 --- a/trans/hello.c +++ b/trans/hello.c @@ -47,15 +47,10 @@ int trivfs_support_exec = 0; $ cd /src/hurd/libtrivfs $ grep -l 'assert.*!trivfs_support_read' *.c | xargs grep '^trivfs_S_' | sed 's/^[^:]*:\([^ ]*\).*$/\1/' - trivfs_S_io_get_icky_async_id - trivfs_S_io_async - trivfs_S_io_map trivfs_S_io_get_openmodes trivfs_S_io_clear_some_openmodes trivfs_S_io_set_some_openmodes trivfs_S_io_set_all_openmodes - trivfs_S_io_get_owner - trivfs_S_io_mod_owner trivfs_S_io_readable trivfs_S_io_select $ @@ -76,7 +71,7 @@ trivfs_modify_stat (struct trivfs_protid *cred, struct stat *st) /* Mark the node as a read-only plain file. */ st->st_mode &= ~(S_IFMT | ALLPERMS); st->st_mode |= (S_IFREG | S_IRUSR | S_IRGRP | S_IROTH); - st->st_size = sizeof (hello) - 1; + st->st_size = contents_len; } error_t |