X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/76d3a838799e8abde2e7ac41fc59ef8785c29a6f..58c840dcc1810bfc5a7334fe29058d2b2c97cdaf:/unix/unix.h?ds=sidebyside diff --git a/unix/unix.h b/unix/unix.h index c0b56c74..9c52de6d 100644 --- a/unix/unix.h +++ b/unix/unix.h @@ -11,7 +11,7 @@ struct Filename { char path[FILENAME_MAX]; }; -#define f_open(filename, mode) ( fopen((filename).path, (mode)) ) +FILE *f_open(struct Filename, char const *, int); struct FontSpec { char name[256]; @@ -105,7 +105,7 @@ void uxsel_input_remove(int id); /* uxcfg.c */ struct controlbox; -void unix_setup_config_box(struct controlbox *b, int midsession); +void unix_setup_config_box(struct controlbox *b, int midsession, int protocol); /* gtkcfg.c */ void gtk_setup_config_box(struct controlbox *b, int midsession, void *window); @@ -128,6 +128,9 @@ void gtk_setup_config_box(struct controlbox *b, int midsession, void *window); void (*putty_signal(int sig, void (*func)(int)))(int); void block_signal(int sig, int block_it); +/* uxmisc.c */ +int cloexec(int); + /* * Exports from unicode.c. */ @@ -149,4 +152,9 @@ void *sk_getxdmdata(void *sock, int *lenp); if (max < fd + 1) max = fd + 1; \ } while (0) +/* + * Exports from winser.c. + */ +extern Backend serial_backend; + #endif