Lines Matching +full:wo +full:- +full:data

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
81 fprintf(stderr, "usage: %s create [-nv] [-o <ro|wo|rw>] " in usage()
82 "[-o <direct>] [-p port] " in usage()
83 "[-q queue_size] [-R rcvbuf] [-S sndbuf] [-s sectorsize] " in usage()
84 "[-t timeout] [-u unit] <host> <path>\n", getprogname()); in usage()
85 fprintf(stderr, " %s rescue [-nv] [-o <ro|wo|rw>] " in usage()
86 "[-o <direct>] [-p port] " in usage()
87 "[-R rcvbuf] [-S sndbuf] <-u unit> <host> <path>\n", getprogname()); in usage()
88 fprintf(stderr, " %s destroy [-f] <-u unit>\n", getprogname()); in usage()
89 fprintf(stderr, " %s list [-v] [-u unit]\n", getprogname()); in usage()
238 if (numbytesprocd == -1 && errno == EAGAIN) in recv_thread()
271 g_gate_log(LOG_DEBUG, "Received data packet."); in recv_thread()
306 return (-1); in handshake()
310 if (sfd == -1) { in handshake()
313 return (-1); in handshake()
318 if (connect(sfd, (struct sockaddr *)&serv, sizeof(serv)) == -1) { in handshake()
322 return (-1); in handshake()
336 if (g_gate_send(sfd, &ver, sizeof(ver), MSG_NOSIGNAL) == -1) { in handshake()
340 return (-1); in handshake()
343 if (g_gate_recv(sfd, &ver, sizeof(ver), MSG_WAITALL) == -1) { in handshake()
344 g_gate_log(LOG_DEBUG, "Error while receiving data: %s.", in handshake()
347 return (-1); in handshake()
353 return (-1); in handshake()
364 return (-1); in handshake()
370 if (g_gate_send(sfd, &cinit, sizeof(cinit), MSG_NOSIGNAL) == -1) { in handshake()
374 return (-1); in handshake()
382 if (g_gate_recv(sfd, &sinit, sizeof(sinit), MSG_WAITALL) == -1) { in handshake()
383 g_gate_log(LOG_DEBUG, "Error while receiving data: %s.", in handshake()
386 return (-1); in handshake()
393 return (-1); in handshake()
427 if (recvfd == -1) in g_gatec_connect()
434 if (sendfd == -1) in g_gatec_connect()
509 if (unit == -1) { in g_gatec_create()
562 argc -= 1; in main()
568 if (ch == -1) in main()
586 else if (strcasecmp("wo", optarg) == 0) in main()
594 "Invalid argument for '-o' option."); in main()
660 argc -= optind; in main()
676 if (unit == -1) { in main()
690 if (unit == -1) { in main()