From b30d3166c69e43b4058b68e7cfc84803c679a835 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 8 Nov 1999 21:40:27 +0000 Subject: 1999-11-08 Roland McGrath * 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. --- trans/hello.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'trans/hello.c') 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 -- cgit v1.2.3