version 1.39, 2010/05/12 15:05:39 |
version 1.40, 2010/06/05 16:29:45 |
|
|
*/ |
*/ |
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/ioctl.h> |
|
#include <sys/socket.h> |
#include <sys/socket.h> |
#include <sys/stat.h> |
#include <sys/stat.h> |
#include <sys/un.h> |
#include <sys/un.h> |
|
|
client_send_identify(int flags) |
client_send_identify(int flags) |
{ |
{ |
struct msg_identify_data data; |
struct msg_identify_data data; |
struct winsize ws; |
|
char *term; |
char *term; |
int fd; |
int fd; |
|
|
if (ioctl(STDIN_FILENO, TIOCGWINSZ, &ws) == -1) |
|
fatal("ioctl(TIOCGWINSZ)"); |
|
data.flags = flags; |
data.flags = flags; |
|
|
if (getcwd(data.cwd, sizeof data.cwd) == NULL) |
if (getcwd(data.cwd, sizeof data.cwd) == NULL) |