X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Funix.h;h=e78800b5a2d93f02ff53fe83ff85473a594f2701;hb=a063e522970946bf7d5dc052079d7773c0dee76d;hp=c2f9aeb1c3a7b6045aaf5451af7afa7cc3c95068;hpb=d35a41f6ba2683956b6c0219824c4b8df8c8fbc4;p=PuTTY.git diff --git a/unix/unix.h b/unix/unix.h index c2f9aeb1..e78800b5 100644 --- a/unix/unix.h +++ b/unix/unix.h @@ -24,9 +24,6 @@ struct FontSpec *fontspec_new(const char *name); typedef void *Context; /* FIXME: probably needs changing */ -typedef int OSSocket; -#define OSSOCKET_DEFINED /* stop network.h using its default */ - extern Backend pty_backend; typedef uint32_t uint32; /* C99: uint32_t defined in stdint.h */ @@ -80,6 +77,7 @@ unsigned long getticks(void); /* based on gettimeofday(2) */ char *get_x_display(void *frontend); int font_dimension(void *frontend, int which);/* 0 for width, 1 for height */ long get_windowid(void *frontend); +int frontend_is_utf8(void *frontend); /* Things gtkdlg.c needs from pterm.c */ void *get_window(void *frontend); /* void * to avoid depending on gtk.h */ @@ -187,4 +185,9 @@ void *sk_getxdmdata(void *sock, int *lenp); */ extern Backend serial_backend; +/* + * uxpeer.c, wrapping getsockopt(SO_PEERCRED). + */ +int so_peercred(int fd, int *pid, int *uid, int *gid); + #endif