Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Antti Kantee <pooka@netbsd.org>
List: source-changes
Date: 05/20/2007 16:24:37
Module Name:	src
Committed By:	pooka
Date:		Sun May 20 16:24:37 UTC 2007

Modified Files:
	src/lib/libpuffs: framebuf.c puffs.h puffs_framebuf.3 puffs_priv.h
	src/usr.sbin/puffs/mount_9p: ninebuf.c
	src/usr.sbin/puffs/mount_psshfs: psbuf.c

Log Message:
Change the signature of puffs_respcmp to return -1,0,1 for smaller,
equal, larger, respectively instead of 0/1 for non/equal.  This
will allow sorting the buffers for faster matching in libpuffs.
While here, change the name from respcmp to framecmp, as that better
reflects the purpose.

NOTE!  there is no obvious way to make compilation fail for file
systems which may already be using this feature (although I don't
think there are any outside our tree, as the feature is two weeks
old).  Nevertheless, non-updated file systems will fail very quickly.


To generate a diff of this commit:
cvs rdiff -r1.11 -r1.12 src/lib/libpuffs/framebuf.c
cvs rdiff -r1.59 -r1.60 src/lib/libpuffs/puffs.h
cvs rdiff -r1.6 -r1.7 src/lib/libpuffs/puffs_framebuf.3
cvs rdiff -r1.10 -r1.11 src/lib/libpuffs/puffs_priv.h
cvs rdiff -r1.5 -r1.6 src/usr.sbin/puffs/mount_9p/ninebuf.c
cvs rdiff -r1.8 -r1.9 src/usr.sbin/puffs/mount_psshfs/psbuf.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.