]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - unix/unix.h
Key rollover: rewrite the PGP keys manual appendix.
[PuTTY.git] / unix / unix.h
index c2f9aeb1c3a7b6045aaf5451af7afa7cc3c95068..e78800b5a2d93f02ff53fe83ff85473a594f2701 100644 (file)
@@ -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