1*6007Sthurlow /* 2*6007Sthurlow * Copyright (c) 2000, Boris Popov 3*6007Sthurlow * All rights reserved. 4*6007Sthurlow * 5*6007Sthurlow * Redistribution and use in source and binary forms, with or without 6*6007Sthurlow * modification, are permitted provided that the following conditions 7*6007Sthurlow * are met: 8*6007Sthurlow * 1. Redistributions of source code must retain the above copyright 9*6007Sthurlow * notice, this list of conditions and the following disclaimer. 10*6007Sthurlow * 2. Redistributions in binary form must reproduce the above copyright 11*6007Sthurlow * notice, this list of conditions and the following disclaimer in the 12*6007Sthurlow * documentation and/or other materials provided with the distribution. 13*6007Sthurlow * 3. All advertising materials mentioning features or use of this software 14*6007Sthurlow * must display the following acknowledgement: 15*6007Sthurlow * This product includes software developed by Boris Popov. 16*6007Sthurlow * 4. Neither the name of the author nor the names of any co-contributors 17*6007Sthurlow * may be used to endorse or promote products derived from this software 18*6007Sthurlow * without specific prior written permission. 19*6007Sthurlow * 20*6007Sthurlow * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 21*6007Sthurlow * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22*6007Sthurlow * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23*6007Sthurlow * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 24*6007Sthurlow * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 25*6007Sthurlow * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 26*6007Sthurlow * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27*6007Sthurlow * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28*6007Sthurlow * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29*6007Sthurlow * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30*6007Sthurlow * SUCH DAMAGE. 31*6007Sthurlow * 32*6007Sthurlow * $Id: print.c,v 1.7 2004/03/19 01:49:48 lindak Exp $ 33*6007Sthurlow */ 34*6007Sthurlow 35*6007Sthurlow #pragma ident "%Z%%M% %I% %E% SMI" 36*6007Sthurlow 37*6007Sthurlow #include <sys/param.h> 38*6007Sthurlow #include <sys/errno.h> 39*6007Sthurlow #include <sys/stat.h> 40*6007Sthurlow #include <fcntl.h> 41*6007Sthurlow #include <stdio.h> 42*6007Sthurlow #include <err.h> 43*6007Sthurlow #include <unistd.h> 44*6007Sthurlow #include <strings.h> 45*6007Sthurlow #include <stdlib.h> 46*6007Sthurlow #include <sysexits.h> 47*6007Sthurlow #include <libintl.h> 48*6007Sthurlow 49*6007Sthurlow #include <cflib.h> 50*6007Sthurlow 51*6007Sthurlow #include <netsmb/smb_lib.h> 52*6007Sthurlow 53*6007Sthurlow #include "common.h" 54*6007Sthurlow 55*6007Sthurlow 56*6007Sthurlow 57*6007Sthurlow void 58*6007Sthurlow print_usage(void) 59*6007Sthurlow { 60*6007Sthurlow printf(gettext("usage: smbutil print [connection options] //" 61*6007Sthurlow "[workgroup;][user[:password]@]" 62*6007Sthurlow "server/share\n")); 63*6007Sthurlow exit(1); 64*6007Sthurlow } 65