Deleted Added
full compact
bluetooth.3 (140568) bluetooth.3 (181698)
1.\" Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
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.

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

18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $Id: bluetooth.3,v 1.5 2003/05/20 23:04:30 max Exp $
1.\" Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
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.

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

18.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23.\" SUCH DAMAGE.
24.\"
25.\" $Id: bluetooth.3,v 1.5 2003/05/20 23:04:30 max Exp $
26.\" $FreeBSD: head/lib/libbluetooth/bluetooth.3 140568 2005-01-21 10:48:35Z ru $
26.\" $FreeBSD: head/lib/libbluetooth/bluetooth.3 181698 2008-08-13 19:35:31Z emax $
27.\"
27.\"
28.Dd May 7, 2003
28.Dd August 13, 2008
29.Dt BLUETOOTH 3
30.Os
31.Sh NAME
32.Nm bt_gethostbyname ,
33.Nm bt_gethostbyaddr ,
34.Nm bt_gethostent ,
35.Nm bt_sethostent ,
36.Nm bt_endhostent ,
37.Nm bt_getprotobyname ,
38.Nm bt_getprotobynumber ,
39.Nm bt_getprotoent ,
40.Nm bt_setprotoent ,
41.Nm bt_endprotoent ,
42.Nm bt_aton ,
29.Dt BLUETOOTH 3
30.Os
31.Sh NAME
32.Nm bt_gethostbyname ,
33.Nm bt_gethostbyaddr ,
34.Nm bt_gethostent ,
35.Nm bt_sethostent ,
36.Nm bt_endhostent ,
37.Nm bt_getprotobyname ,
38.Nm bt_getprotobynumber ,
39.Nm bt_getprotoent ,
40.Nm bt_setprotoent ,
41.Nm bt_endprotoent ,
42.Nm bt_aton ,
43.Nm bt_ntoa
43.Nm bt_ntoa ,
44.Nm bdaddr_same ,
45.Nm bdaddr_any ,
46.Nm bdaddr_copy
44.Nd Bluetooth routines
45.Sh LIBRARY
46.Lb libbluetooth
47.Sh SYNOPSIS
48.In bluetooth.h
49.Ft struct hostent *
50.Fn bt_gethostbyname "const char *name"
51.Ft struct hostent *

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

65.Ft void
66.Fn bt_setprotoent "int stayopen"
67.Ft void
68.Fn bt_endprotoent void
69.Ft int
70.Fn bt_aton "const char *str" "bdaddr_t *ba"
71.Ft const char *
72.Fn bt_ntoa "const bdaddr_t *ba" "char *str"
47.Nd Bluetooth routines
48.Sh LIBRARY
49.Lb libbluetooth
50.Sh SYNOPSIS
51.In bluetooth.h
52.Ft struct hostent *
53.Fn bt_gethostbyname "const char *name"
54.Ft struct hostent *

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

68.Ft void
69.Fn bt_setprotoent "int stayopen"
70.Ft void
71.Fn bt_endprotoent void
72.Ft int
73.Fn bt_aton "const char *str" "bdaddr_t *ba"
74.Ft const char *
75.Fn bt_ntoa "const bdaddr_t *ba" "char *str"
76.Ft int
77.Fn bdaddr_same "const bdaddr_t *a" "const bdaddr_t *b"
78.Ft int
79.Fn bdaddr_any "const bdaddr_t *a"
80.Ft int
81.Fn bdaddr_copy "const bdaddr_t *dst" "const bdaddr_t *src"
73.Sh DESCRIPTION
74The
75.Fn bt_gethostent ,
76.Fn bt_gethostbyname
77and
78.Fn bt_gethostbyaddr
79functions
80each return a pointer to an object with the

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

181.Pp
182The routine
183.Fn bt_ntoa
184takes a Bluetooth address and places an
185.Tn ASCII
186string representing the address into the buffer provided.
187It is up to the caller to ensure that provided buffer has enough space.
188If no buffer was provided then internal static buffer will be used.
82.Sh DESCRIPTION
83The
84.Fn bt_gethostent ,
85.Fn bt_gethostbyname
86and
87.Fn bt_gethostbyaddr
88functions
89each return a pointer to an object with the

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

190.Pp
191The routine
192.Fn bt_ntoa
193takes a Bluetooth address and places an
194.Tn ASCII
195string representing the address into the buffer provided.
196It is up to the caller to ensure that provided buffer has enough space.
197If no buffer was provided then internal static buffer will be used.
198.Pp
199The
200.Fn bdaddr_same ,
201.Fn bdaddr_any
202and
203.Fn bdaddr_copy
204are handy shorthand Bluetooth address utility functions.
205The
206.Fn bdaddr_same
207function will test if two provided BD_ADDRs are the same.
208The
209.Fn bdaddr_any
210function will test if provided BD_ADDR is
211.Dv ANY
212BD_ADDR.
213The
214.Fn bdaddr_copy
215function will copy provided
216.Fa src
217BD_ADDR into provided
218.Fa dst
219BD_ADDR.
189.Sh FILES
190.Bl -tag -width ".Pa /etc/bluetooth/hosts" -compact
191.It Pa /etc/bluetooth/hosts
192.It Pa /etc/bluetooth/protocols
193.El
194.Sh EXAMPLES
195Print out the hostname associated with a specific BD_ADDR:
196.Bd -literal -offset indent

--- 93 unchanged lines hidden ---
220.Sh FILES
221.Bl -tag -width ".Pa /etc/bluetooth/hosts" -compact
222.It Pa /etc/bluetooth/hosts
223.It Pa /etc/bluetooth/protocols
224.El
225.Sh EXAMPLES
226Print out the hostname associated with a specific BD_ADDR:
227.Bd -literal -offset indent

--- 93 unchanged lines hidden ---