X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Funix.h;h=90faf5a676fefea95f808fb7e31e69728c29f29d;hb=90e7bf4228fa74fda1c65cb2597c9d964329f702;hp=8235897b69821319f9f426e7f2742e3944ae2e03;hpb=d38ea07616dfd24fd168ef3d84bc90d561f40b58;p=PuTTY.git diff --git a/unix/unix.h b/unix/unix.h index 8235897b..90faf5a6 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]; @@ -80,7 +80,7 @@ int reallyclose(void *frontend); /* Things pterm.c needs from {ptermm,uxputty}.c */ char *make_default_wintitle(char *hostname); -int process_nonoption_arg(char *arg, Config *cfg); +int process_nonoption_arg(char *arg, Config *cfg, int *allow_launch); /* pterm.c needs this special function in xkeysym.c */ int keysym_to_unicode(int keysym); @@ -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. */