X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Funix.h;h=969cdbbf55028663d8d81f45b499a7c24b72a19e;hb=e202f0f22821baadaeb0b5870446f8f04088084c;hp=384789aa1acf090c0fcbca89d0f003d275537751;hpb=1b3eb3e20d216fdd0a37e37a818e4b074f1d08ba;p=PuTTY.git diff --git a/unix/unix.h b/unix/unix.h index 384789aa..969cdbbf 100644 --- a/unix/unix.h +++ b/unix/unix.h @@ -45,8 +45,8 @@ extern Backend pty_backend; /* Simple wraparound timer function */ unsigned long getticks(void); /* based on gettimeofday(2) */ #define GETTICKCOUNT getticks -#define TICKSPERSEC 1000000 /* gettimeofday returns microseconds */ -#define CURSORBLINK 450000 /* no standard way to set this */ +#define TICKSPERSEC 1000 /* we choose to use milliseconds */ +#define CURSORBLINK 450 /* no standard way to set this */ #define WCHAR wchar_t #define BYTE unsigned char @@ -111,8 +111,9 @@ void unix_setup_config_box(struct controlbox *b, int midsession, void *window); #define strnicmp strncasecmp #define stricmp strcasecmp -/* BSD-semantics version of signal() */ +/* BSD-semantics version of signal(), and another helpful function */ void (*putty_signal(int sig, void (*func)(int)))(int); +void block_signal(int sig, int block_it); /* * Exports from unicode.c.