diff options
author | Marcus Brinkmann <marcus@gnu.org> | 2000-12-30 18:22:29 +0000 |
---|---|---|
committer | Marcus Brinkmann <marcus@gnu.org> | 2000-12-30 18:22:29 +0000 |
commit | fe8055abcf2253dabdeb9b34d27ec763b8a6c1d2 (patch) | |
tree | 267190fe91b8eabf556e4e7ba14f5ab6a902c1f7 /libnetfs/file-get-translator.c | |
parent | d2a271dbdbdd7ec93b615cd87c8922ccee3ce579 (diff) |
2000-12-30 Marcus Brinkmann <marcus@gnu.org>
* 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 <neal@cs.uml.edu>.
2000-12-29 Neal H Walfield <neal@cs.uml.edu>
* 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.
Diffstat (limited to 'libnetfs/file-get-translator.c')
-rw-r--r-- | libnetfs/file-get-translator.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libnetfs/file-get-translator.c b/libnetfs/file-get-translator.c index 1489162a..44caa91c 100644 --- a/libnetfs/file-get-translator.c +++ b/libnetfs/file-get-translator.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1996, 1999 Free Software Foundation, Inc. + Copyright (C) 1996, 1999, 2000 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -52,7 +52,7 @@ netfs_S_file_get_translator (struct protid *user, if (len > *translen) *trans = mmap (0, len, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); - bcopy (_HURD_SYMLINK, *trans, sizeof _HURD_SYMLINK); + memcpy (*trans, _HURD_SYMLINK, sizeof _HURD_SYMLINK); err = netfs_attempt_readlink (user->user, np, *trans + sizeof _HURD_SYMLINK); @@ -77,7 +77,7 @@ netfs_S_file_get_translator (struct protid *user, if (buflen > *translen) *trans = mmap (0, buflen, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); - bcopy (buf, *trans, buflen); + memcpy (*trans, buf, buflen); free (buf); *translen = buflen; err = 0; @@ -89,7 +89,7 @@ netfs_S_file_get_translator (struct protid *user, len = sizeof _HURD_FIFO; if (len > *translen) *trans = mmap (0, len, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); - bcopy (_HURD_FIFO, *trans, sizeof _HURD_FIFO); + memcpy (*trans, _HURD_FIFO, sizeof _HURD_FIFO); *translen = len; err = 0; } @@ -100,7 +100,7 @@ netfs_S_file_get_translator (struct protid *user, len = sizeof _HURD_IFSOCK; if (len > *translen) *trans = mmap (0, len, PROT_READ|PROT_WRITE, MAP_ANON, 0, 0); - bcopy (_HURD_IFSOCK, *trans, sizeof _HURD_IFSOCK); + memcpy (*trans, _HURD_IFSOCK, sizeof _HURD_IFSOCK); *translen = len; err = 0; } |