X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Funix.h;h=9c52de6d4efa0cda58c047954e51005759d06e0e;hb=4fa9564c909c589bcccc95d57fae5469063c1759;hp=54cf39f217780c3f34632acd32f2d6a23e737f03;hpb=d0beed9aba20865b9829e3203b4067e8822a0f4d;p=PuTTY.git diff --git a/unix/unix.h b/unix/unix.h index 54cf39f2..9c52de6d 100644 --- a/unix/unix.h +++ b/unix/unix.h @@ -1,13 +1,17 @@ #ifndef PUTTY_UNIX_H #define PUTTY_UNIX_H +#ifdef HAVE_CONFIG_H +# include "uxconfig.h" /* Space to hide it from mkfiles.pl */ +#endif + #include /* for FILENAME_MAX */ #include "charset.h" 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]; @@ -101,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); @@ -124,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. */ @@ -145,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