mdchain.9 (140932) | mdchain.9 (231564) |
---|---|
1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 2001 Boris Popov 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 18.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24.\" | 1.\" -*- nroff -*- 2.\" 3.\" Copyright (c) 2001 Boris Popov 4.\" 5.\" Redistribution and use in source and binary forms, with or without 6.\" modification, are permitted provided that the following conditions 7.\" are met: 8.\" 1. Redistributions of source code must retain the above copyright --- 8 unchanged lines hidden (view full) --- 17.\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT, 18.\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 19.\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 20.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 21.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 22.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 23.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24.\" |
25.\" $FreeBSD: head/share/man/man9/mdchain.9 140932 2005-01-28 10:48:52Z ru $ | 25.\" $FreeBSD: head/share/man/man9/mdchain.9 231564 2012-02-12 18:29:56Z ed $ |
26.\" 27.Dd February 28, 2001 28.Dt MDCHAIN 9 29.Os 30.Sh NAME 31.Nm mdchain , 32.Nm md_initm , 33.Nm md_done , --- 24 unchanged lines hidden (view full) --- 58.Fn md_initm "struct mdchain *mdp" "struct mbuf *m" 59.Ft void 60.Fn md_done "struct mdchain *mdp" 61.Ft void 62.Fn md_append_record "struct mdchain *mdp" "struct mbuf *top" 63.Ft int 64.Fn md_next_record "struct mdchain *mdp" 65.Ft int | 26.\" 27.Dd February 28, 2001 28.Dt MDCHAIN 9 29.Os 30.Sh NAME 31.Nm mdchain , 32.Nm md_initm , 33.Nm md_done , --- 24 unchanged lines hidden (view full) --- 58.Fn md_initm "struct mdchain *mdp" "struct mbuf *m" 59.Ft void 60.Fn md_done "struct mdchain *mdp" 61.Ft void 62.Fn md_append_record "struct mdchain *mdp" "struct mbuf *top" 63.Ft int 64.Fn md_next_record "struct mdchain *mdp" 65.Ft int |
66.Fn md_get_uint8 "struct mdchain *mdp" "u_int8_t *x" | 66.Fn md_get_uint8 "struct mdchain *mdp" "uint8_t *x" |
67.Ft int | 67.Ft int |
68.Fn md_get_uint16 "struct mdchain *mdp" "u_int16_t *x" | 68.Fn md_get_uint16 "struct mdchain *mdp" "uint16_t *x" |
69.Ft int | 69.Ft int |
70.Fn md_get_uint16be "struct mdchain *mdp" "u_int16_t *x" | 70.Fn md_get_uint16be "struct mdchain *mdp" "uint16_t *x" |
71.Ft int | 71.Ft int |
72.Fn md_get_uint16le "struct mdchain *mdp" "u_int16_t *x" | 72.Fn md_get_uint16le "struct mdchain *mdp" "uint16_t *x" |
73.Ft int | 73.Ft int |
74.Fn md_get_uint32 "struct mdchain *mdp" "u_int32_t *x" | 74.Fn md_get_uint32 "struct mdchain *mdp" "uint32_t *x" |
75.Ft int | 75.Ft int |
76.Fn md_get_uint32be "struct mdchain *mdp" "u_int32_t *x" | 76.Fn md_get_uint32be "struct mdchain *mdp" "uint32_t *x" |
77.Ft int | 77.Ft int |
78.Fn md_get_uint32le "struct mdchain *mdp" "u_int32_t *x" | 78.Fn md_get_uint32le "struct mdchain *mdp" "uint32_t *x" |
79.Ft int 80.Fn md_get_int64 "struct mdchain *mdp" "int64_t *x" 81.Ft int 82.Fn md_get_int64be "struct mdchain *mdp" "int64_t *x" 83.Ft int 84.Fn md_get_int64le "struct mdchain *mdp" "int64_t *x" 85.Ft int 86.Fn md_get_mem "struct mdchain *mdp" "caddr_t target" "int size" "int type" --- 101 unchanged lines hidden (view full) --- 188after failure of any function, 189an mbuf chain is left in the broken state and only the 190.Fn md_done 191function can safely be called to destroy it. 192.Sh EXAMPLES 193.Bd -literal 194struct mdchain *mdp; 195struct mbuf *m; | 79.Ft int 80.Fn md_get_int64 "struct mdchain *mdp" "int64_t *x" 81.Ft int 82.Fn md_get_int64be "struct mdchain *mdp" "int64_t *x" 83.Ft int 84.Fn md_get_int64le "struct mdchain *mdp" "int64_t *x" 85.Ft int 86.Fn md_get_mem "struct mdchain *mdp" "caddr_t target" "int size" "int type" --- 101 unchanged lines hidden (view full) --- 188after failure of any function, 189an mbuf chain is left in the broken state and only the 190.Fn md_done 191function can safely be called to destroy it. 192.Sh EXAMPLES 193.Bd -literal 194struct mdchain *mdp; 195struct mbuf *m; |
196u_int16_t length; 197u_int8_t byte; | 196uint16_t length; 197uint8_t byte; |
198 199receive(so, &m); 200md_initm(mdp, m); 201if (md_get_uint8(mdp, &byte) != 0 || 202 md_get_uint16le(mdp, &length) != 0) 203 error = EBADRPC; 204mb_done(mdp); 205.Ed 206.Sh SEE ALSO 207.Xr mbchain 9 , 208.Xr mbuf 9 209.Sh AUTHORS 210This manual page was written by 211.An Boris Popov Aq bp@FreeBSD.org . | 198 199receive(so, &m); 200md_initm(mdp, m); 201if (md_get_uint8(mdp, &byte) != 0 || 202 md_get_uint16le(mdp, &length) != 0) 203 error = EBADRPC; 204mb_done(mdp); 205.Ed 206.Sh SEE ALSO 207.Xr mbchain 9 , 208.Xr mbuf 9 209.Sh AUTHORS 210This manual page was written by 211.An Boris Popov Aq bp@FreeBSD.org . |