Deleted Added
full compact
hash.9 (162877) hash.9 (163505)
1.\" Copyright (c) 2001 Tobias Weingartner
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
26.\" $OpenBSD: hash.9,v 1.5 2003/04/17 05:08:39 jmc Exp $
1.\" Copyright (c) 2001 Tobias Weingartner
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 10 unchanged lines hidden (view full) ---

19.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25.\"
26.\" $OpenBSD: hash.9,v 1.5 2003/04/17 05:08:39 jmc Exp $
27.\" $FreeBSD: head/share/man/man9/hash.9 162877 2006-09-30 17:09:59Z ru $
27.\" $FreeBSD: head/share/man/man9/hash.9 163505 2006-10-19 11:03:44Z ru $
28.\"
28.\"
29.Dd December 8, 2001
29.Dd October 19, 2006
30.Dt HASH 9
31.Os
32.Sh NAME
33.Nm hash ,
34.Nm hash32 ,
35.Nm hash32_buf ,
36.Nm hash32_str ,
37.Nm hash32_strn ,
38.Nm hash32_stre ,
39.Nm hash32_strne
40.Nd general kernel hashing functions
41.Sh SYNOPSIS
42.In sys/hash.h
43.Ft uint32_t
30.Dt HASH 9
31.Os
32.Sh NAME
33.Nm hash ,
34.Nm hash32 ,
35.Nm hash32_buf ,
36.Nm hash32_str ,
37.Nm hash32_strn ,
38.Nm hash32_stre ,
39.Nm hash32_strne
40.Nd general kernel hashing functions
41.Sh SYNOPSIS
42.In sys/hash.h
43.Ft uint32_t
44.Fn hash32_buf "void *buf" "size_t len" "uint32_t hash"
44.Fn hash32_buf "const void *buf" "size_t len" "uint32_t hash"
45.Ft uint32_t
45.Ft uint32_t
46.Fn hash32_str "void *buf" "uint32_t hash"
46.Fn hash32_str "const void *buf" "uint32_t hash"
47.Ft uint32_t
47.Ft uint32_t
48.Fn hash32_strn "void *buf" "size_t len" "uint32_t hash"
48.Fn hash32_strn "const void *buf" "size_t len" "uint32_t hash"
49.Ft uint32_t
49.Ft uint32_t
50.Fn hash32_stre "void *buf" "int end" "char **ep" "uint32_t hash"
50.Fn hash32_stre "const void *buf" "int end" "char **ep" "uint32_t hash"
51.Ft uint32_t
51.Ft uint32_t
52.Fn hash32_strne "void *buf" "size_t len" "int end" "char **ep" "uint32_t hash"
52.Fn hash32_strne "const void *buf" "size_t len" "int end" "char **ep" "uint32_t hash"
53.Sh DESCRIPTION
54The
55.Fn hash32
56functions are used to give a consistent and general interface to
57a decent hashing algorithm within the kernel.
58These functions can be used to hash
59.Tn ASCII
60.Dv NUL

--- 101 unchanged lines hidden ---
53.Sh DESCRIPTION
54The
55.Fn hash32
56functions are used to give a consistent and general interface to
57a decent hashing algorithm within the kernel.
58These functions can be used to hash
59.Tn ASCII
60.Dv NUL

--- 101 unchanged lines hidden ---