/****************************************************************************** (c) 2001-2003 Patrick Caulfield patrick@debian.org This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. ******************************************************************************/ // LAT login Program (llogin) #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef HAVE_LOCKDEV_H #include #endif #include #include #include #include #include #include #include #include #include #include "lat.h" #include "latcp.h" #include "utils.h" #include "dn_endian.h" static int latcp_socket; static void make_upper(char *str); static int read_reply(int fd, int &cmd, unsigned char *&cmdbuf, int &len); static bool send_msg(int fd, int cmd, char *buf, int len); static bool open_socket(bool); static int terminal(int latfd, int, int, int, int, char *); static int do_use_port(char *service, int quit_char, int crlf, int bsdel, int lfvt, int nolock, char *logfile); static int usage(char *cmd) { printf ("Usage: llogin [