Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Aug 2009 19:23:58 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r196404 - in head: share/man/man9 sys/kern sys/sys
Message-ID:  <200908201923.n7KJNwwc096363@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhb
Date: Thu Aug 20 19:23:58 2009
New Revision: 196404
URL: http://svn.freebsd.org/changeset/base/196404

Log:
  Change the 'resid' parameter to sglist_consume_uio() from an int to a
  size_t to match the recent type change of the uio_resid member of struct
  uio.
  
  Approved by:	re (kib)

Modified:
  head/share/man/man9/sglist.9
  head/sys/kern/subr_sglist.c
  head/sys/sys/sglist.h

Modified: head/share/man/man9/sglist.9
==============================================================================
--- head/share/man/man9/sglist.9	Thu Aug 20 19:17:53 2009	(r196403)
+++ head/share/man/man9/sglist.9	Thu Aug 20 19:23:58 2009	(r196404)
@@ -70,7 +70,7 @@
 .Ft struct sglist *
 .Fn sglist_clone "struct sglist *sg" "int mflags"
 .Ft int
-.Fn sglist_consume_uio "struct sglist *sg" "struct uio *uio" "int resid"
+.Fn sglist_consume_uio "struct sglist *sg" "struct uio *uio" "size_t resid"
 .Ft int
 .Fn sglist_count "void *buf" "size_t len"
 .Ft void

Modified: head/sys/kern/subr_sglist.c
==============================================================================
--- head/sys/kern/subr_sglist.c	Thu Aug 20 19:17:53 2009	(r196403)
+++ head/sys/kern/subr_sglist.c	Thu Aug 20 19:23:58 2009	(r196404)
@@ -315,7 +315,7 @@ sglist_append_uio(struct sglist *sg, str
  * segments, then only the amount that fits is appended.
  */
 int
-sglist_consume_uio(struct sglist *sg, struct uio *uio, int resid)
+sglist_consume_uio(struct sglist *sg, struct uio *uio, size_t resid)
 {
 	struct iovec *iov;
 	size_t done;

Modified: head/sys/sys/sglist.h
==============================================================================
--- head/sys/sys/sglist.h	Thu Aug 20 19:17:53 2009	(r196403)
+++ head/sys/sys/sglist.h	Thu Aug 20 19:23:58 2009	(r196404)
@@ -91,7 +91,7 @@ int	sglist_append_user(struct sglist *sg
 	    struct thread *td);
 struct sglist *sglist_build(void *buf, size_t len, int mflags);
 struct sglist *sglist_clone(struct sglist *sg, int mflags);
-int	sglist_consume_uio(struct sglist *sg, struct uio *uio, int resid);
+int	sglist_consume_uio(struct sglist *sg, struct uio *uio, size_t resid);
 int	sglist_count(void *buf, size_t len);
 void	sglist_free(struct sglist *sg);
 int	sglist_join(struct sglist *first, struct sglist *second);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908201923.n7KJNwwc096363>