rfcomm_sppd.c (123734) | rfcomm_sppd.c (133178) |
---|---|
1/* 2 * rfcomm_sppd.c 3 * 4 * Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * $Id: rfcomm_sppd.c,v 1.4 2003/09/07 18:15:55 max Exp $ | 1/* 2 * rfcomm_sppd.c 3 * 4 * Copyright (c) 2003 Maksim Yevmenkin <m_evmenkin@yahoo.com> 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 12 unchanged lines hidden (view full) --- 21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 26 * SUCH DAMAGE. 27 * 28 * $Id: rfcomm_sppd.c,v 1.4 2003/09/07 18:15:55 max Exp $ |
29 * $FreeBSD: head/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c 123734 2003-12-22 22:50:21Z emax $ | 29 * $FreeBSD: head/usr.bin/bluetooth/rfcomm_sppd/rfcomm_sppd.c 133178 2004-08-05 16:32:41Z emax $ |
30 */ 31 32#include <sys/stat.h> 33#include <bluetooth.h> 34#include <err.h> 35#include <errno.h> 36#include <fcntl.h> 37#include <grp.h> --- 348 unchanged lines hidden (view full) --- 386 387/* Display usage and exit */ 388static void 389usage(void) 390{ 391 fprintf(stdout, 392"Usage: %s options\n" \ 393"Where options are:\n" \ | 30 */ 31 32#include <sys/stat.h> 33#include <bluetooth.h> 34#include <err.h> 35#include <errno.h> 36#include <fcntl.h> 37#include <grp.h> --- 348 unchanged lines hidden (view full) --- 386 387/* Display usage and exit */ 388static void 389usage(void) 390{ 391 fprintf(stdout, 392"Usage: %s options\n" \ 393"Where options are:\n" \ |
394"\t-a bdaddr BDADDR to connect to (required)\n" \ | 394"\t-a address Address to connect to (required)\n" \ |
395"\t-b Run in background\n" \ 396"\t-c channel RFCOMM channel to connect to\n" \ 397"\t-t tty TTY name\n" \ 398"\t-h Display this message\n", SPPD_IDENT); 399 400 exit(255); 401} /* usage */ 402 | 395"\t-b Run in background\n" \ 396"\t-c channel RFCOMM channel to connect to\n" \ 397"\t-t tty TTY name\n" \ 398"\t-h Display this message\n", SPPD_IDENT); 399 400 exit(255); 401} /* usage */ 402 |