summaryrefslogtreecommitdiff
path: root/nfsd/cache.c
AgeCommit message (Collapse)Author
2002-09-292002-09-29 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* loop.c (server_loop): Use memset instead bzero. (server_loop): Add parenthesis for post-decrement (even though it is only used as an lvalue here). Increment P after using it in the macro, not within. * ops.c (complete_setattr): Likewise. (op_setattr, op_read, op_write, op_create, op_symlink, op_mkdir, op_readdir, op_getport): Likewise. * xdr.c (encode_fattr): Likewise. (encode_data): Likewise. Also use memcpy instead bcopy. (encode_statfs): Likewise. (decode_name): Likewise. Also use memcpy instead bcopy. (encode_fhandle): Use memcpy instead bcopy. * cache.c (process_cred): Add parenthesis for post-decrement (even though it is only used as an lvalue here). Increment P after using it in the macro, not within. (idspec_lookup): Use memcpy, not bcopy. (lookup_cache_handle): Likewise. (create_cached_handle): Likewise. (check_cached_replies): Likewise.
2002-05-082002-05-07 Roland McGrath <roland@frob.com>Roland McGrath
* loop.c (server_loop): size_t -> socklen_t * cache.c (fh_hash): int -> intptr_t
2000-12-012000-12-01 Marcus Brinkmann <marcus@gnu.org>Marcus Brinkmann
* cache.c (scan_creds): Move I inside for-statement. Replace inner for-loop with a while-loop. New variable NEXT_I set to I->NEXT, because we might free I. Set I to NEXT_I at end of while block. Move update of leastidlastuse inside if block, because otherwise we will constantly prevent ourself from scanning. (scan_fhs): Very much the same. (scan_replies): Likewise. Also free CR. (check_cached_reply): Make HASH value absolute (as XID can be negative, and thus the modulus). Initialize REFERENCES to 1.
2000-03-172000-03-17 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* cache.c (create_cached_handle): Add comment.
1999-07-111999-07-10 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* cache.c: Add #include <sys/mman.h> for munmap decl.
1999-07-031999-07-03 Thomas Bushnell, BSG <tb@mit.edu>Thomas Bushnell
* cache.c (create_cached_handle): Use munmap instead of vm_deallocate.
1998-10-20Add braces to silence gcc warnings.Roland McGrath
1996-10-08Thu Sep 26 14:09:20 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* nfsd.h (enum_t): New type. * cache.c: Don't inclide <rpc/auth_unix.h>.
1996-08-14*** empty log message ***Thomas Bushnell
1996-08-07*** empty log message ***Thomas Bushnell
1996-07-18*** empty log message ***Michael I. Bushnell