Wrong return type in uvm(9)
This one confused me for a few minutes. See sys/uvm/uvm_user.c for the function definition. ok? Index: share/man/man9/uvm.9 === RCS file: /cvs/src/share/man/man9/uvm.9,v retrieving revision 1.60 diff -u -p -r1.60 uvm.9 --- share/man/man9/uvm.915 Jan 2015 21:19:22 - 1.60 +++ share/man/man9/uvm.930 Oct 2015 02:29:52 - @@ -131,7 +131,7 @@ function initialises the swap subsystem. .Fn uvm_map_checkprot "vm_map_t map" "vaddr_t start" "vaddr_t end" "vm_prot_t protection" .Ft int .Fn uvm_map_protect "vm_map_t map" "vaddr_t start" "vaddr_t end" "vm_prot_t new_prot" "boolean_t set_max" -.Ft int +.Ft void .Fn uvm_deallocate "vm_map_t map" "vaddr_t start" "vsize_t size" .Ft struct vmspace * .Fn uvmspace_alloc "vaddr_t min" "vaddr_t max" "boolean_t pageable" "boolean_t remove_holes"
Re: Wrong return type in uvm(9)
On Thu, Oct 29, 2015 at 10:31 PM, Michael McConville wrote: > This one confused me for a few minutes. See sys/uvm/uvm_user.c for the > function definition. > > ok? looks like it's been out of sync since r1.10 in 2002. ok. > > > Index: share/man/man9/uvm.9 > === > RCS file: /cvs/src/share/man/man9/uvm.9,v > retrieving revision 1.60 > diff -u -p -r1.60 uvm.9 > --- share/man/man9/uvm.915 Jan 2015 21:19:22 - 1.60 > +++ share/man/man9/uvm.930 Oct 2015 02:29:52 - > @@ -131,7 +131,7 @@ function initialises the swap subsystem. > .Fn uvm_map_checkprot "vm_map_t map" "vaddr_t start" "vaddr_t end" > "vm_prot_t protection" > .Ft int > .Fn uvm_map_protect "vm_map_t map" "vaddr_t start" "vaddr_t end" "vm_prot_t > new_prot" "boolean_t set_max" > -.Ft int > +.Ft void > .Fn uvm_deallocate "vm_map_t map" "vaddr_t start" "vsize_t size" > .Ft struct vmspace * > .Fn uvmspace_alloc "vaddr_t min" "vaddr_t max" "boolean_t pageable" > "boolean_t remove_holes" >
Re: Wrong return type in uvm(9)
On Thu, 29 Oct 2015 22:31:33 -0400, Michael McConville wrote: > This one confused me for a few minutes. See sys/uvm/uvm_user.c for the > function definition. OK millert@ - todd