From fe8055abcf2253dabdeb9b34d27ec763b8a6c1d2 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 30 Dec 2000 18:22:29 +0000 Subject: 2000-12-30 Marcus Brinkmann * netfs.h (struct node): Adjust comment fixes by last change to be more in line with similar comments elsewhere. * make-node.c (netfs_make_node): Return 0 if malloc does. Reported by Neal H Walfield . 2000-12-29 Neal H Walfield * dir-lookup.c (netfs_S_dir_lookup): Do not bother zeroing np, it happens later anyway. Replace bcopy with memcpy. * file-get-translator.c (netfs_S_file_get_translator): Replace bcopy with memcpy. * io-seek.c (netfs_S_io_seek): Only get the lock if we need it. * io-stat.c (netfs_S_io_stat): Replace bcopy with memcpy. * io-write.c (netfs_S_io_write): Wait until the lock is needed. * netfs.h: Complete documentation revision. The locking protocol is now very explicit. * nput.c (netfs_nput): Added comment. * nrele.c (netfs_nrele): Likewise. * set-get-trans.c: Likewise. --- libnetfs/io-stat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libnetfs/io-stat.c') diff --git a/libnetfs/io-stat.c b/libnetfs/io-stat.c index 5f086318..3826c9d9 100644 --- a/libnetfs/io-stat.c +++ b/libnetfs/io-stat.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -37,7 +37,7 @@ netfs_S_io_stat (struct protid *user, io_statbuf_t *statbuf) err = netfs_validate_stat (node, user->user); if (! err) { - bcopy (&node->nn_stat, statbuf, sizeof (struct stat)); + memcpy (statbuf, &node->nn_stat, sizeof (struct stat)); /* Set S_IATRANS and S_IROOT bits as appropriate. */ statbuf->st_mode &= ~(S_IATRANS | S_IROOT); -- cgit v1.2.3