write.c (89674) | write.c (158882) |
---|---|
1 2/* 3 * write.c 4 * 5 * Copyright (c) 2002 Archie L. Cobbs 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 16 unchanged lines hidden (view full) --- 25 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 26 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 27 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ARCHIE L. COBBS IS ADVISED OF THE POSSIBILITY 31 * OF SUCH DAMAGE. 32 * | 1 2/* 3 * write.c 4 * 5 * Copyright (c) 2002 Archie L. Cobbs 6 * All rights reserved. 7 * 8 * Subject to the following obligations and disclaimer of warranty, use and --- 16 unchanged lines hidden (view full) --- 25 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, 26 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR 27 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY 28 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 30 * THIS SOFTWARE, EVEN IF ARCHIE L. COBBS IS ADVISED OF THE POSSIBILITY 31 * OF SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/usr.sbin/ngctl/write.c 89674 2002-01-22 22:01:25Z archie $ | 33 * $FreeBSD: head/usr.sbin/ngctl/write.c 158882 2006-05-24 14:46:55Z glebius $ |
34 */ 35 | 34 */ 35 |
36#include <sys/types.h> 37#include <sys/socket.h> 38 39#include <err.h> 40#include <stdio.h> 41#include <string.h> 42#include <unistd.h> 43 44#include <netgraph/ng_socket.h> 45 |
|
36#include "ngctl.h" 37 38#define BUF_SIZE 8192 39 40static int WriteCmd(int ac, char **av); 41 42const struct ngcmd write_cmd = { 43 WriteCmd, --- 68 unchanged lines hidden --- | 46#include "ngctl.h" 47 48#define BUF_SIZE 8192 49 50static int WriteCmd(int ac, char **av); 51 52const struct ngcmd write_cmd = { 53 WriteCmd, --- 68 unchanged lines hidden --- |