1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00
putty-source/unix
Ben Harris d5836982e2 Two related changes to timing code:
First, make absolute times unsigned.  This means that it's safe to 
depend on their overflow behaviour (which is undefined for signed 
integers).  This requires a little extra care in handling comparisons, 
but I think I've correctly adjusted them all.

Second, functions registered with schedule_timer() are guaranteed to be 
called with precisely the time that was returned by schedule_timer().  
Thus, it's only necessary to check these values for equality rather than 
doing risky range checks, so do that.

The timing code still does lots that's undefined, unnecessary, or just
wrong, but this is a good start.

[originally from svn r9667]
2012-09-18 21:42:48 +00:00
..
configure.ac Add '-Wall -Werror' to the compile options in the autotools makefile, 2012-07-19 04:42:34 +00:00
gtkcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
gtkcols.c Reinstate all the GTK1-specific code under ifdefs, and verify that 2008-04-04 10:56:26 +00:00
gtkcols.h Stop including <gtk/gtkcontainer.h> directly, since a user points out 2012-07-01 16:55:36 +00:00
gtkdlg.c Add code in dlg_filesel_set and dlg_fontsel_set which makes them 2012-04-13 18:02:30 +00:00
gtkfont.c Bug fix from Robert de Bath: if wc_to_mb returns a length of zero, it 2012-04-22 14:22:08 +00:00
gtkfont.h Support font fallback even when an X11 server-side font is selected, 2011-09-16 19:18:54 +00:00
gtkwin.c Two related changes to timing code: 2012-09-18 21:42:48 +00:00
unix.h Patch from Robert de Bath to substantially simplify timing.c. 2012-05-13 15:59:26 +00:00
ux_x11.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxagentc.c Mostly cosmetic change: don't claim to have found an SSH agent if 2011-07-16 12:03:14 +00:00
uxcfg.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxcons.c Two related changes to timing code: 2012-09-18 21:42:48 +00:00
uxgen.c Missing close() causing resource leak when reading from /dev/random. 2010-09-09 14:36:46 +00:00
uxgss.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxmisc.c Fix bug in the new CLOCK_MONOTONIC implementation. I was treating the 2012-05-15 22:19:21 +00:00
uxnet.c Arrange to call net_pending_errors on Unix, which we've never actually 2011-12-08 19:15:57 +00:00
uxnoise.c Fix minor file descriptor leaks. Found by cppcheck, reported by Tim Kosse. 2009-09-16 22:28:20 +00:00
uxplink.c Two related changes to timing code: 2012-09-18 21:42:48 +00:00
uxprint.c Update to r8614: another -D_FORTIFY_SOURCE=2 fix. 2010-02-20 11:21:25 +00:00
uxproxy.c Revamp of EOF handling in all network connections, pipes and other 2011-09-13 11:44:03 +00:00
uxpterm.c Arrange to call net_pending_errors on Unix, which we've never actually 2011-12-08 19:15:57 +00:00
uxpty.c If pterm's execvp fails when given the whole argument list after -e, 2012-07-11 18:12:17 +00:00
uxputty.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxsel.c Changed my mind about r7164. Instead of checking for zero flags 2007-01-26 20:00:32 +00:00
uxser.c Post-release destabilisation! Completely remove the struct type 2011-07-14 18:52:21 +00:00
uxsftp.c Two related changes to timing code: 2012-09-18 21:42:48 +00:00
uxsignal.c Rename some of the more stupidly named files in the Unix back end. 2004-12-31 13:02:46 +00:00
uxstore.c Turn 'Filename' into a dynamically allocated type with no arbitrary 2011-10-02 11:01:57 +00:00
uxucs.c Support for dead keys and compose sequences on Unix, by instantiating 2012-06-17 07:26:23 +00:00
xkeysym.c Support for non-ISO-8859-1 X keysyms. So in particular, pterm in a 2003-04-27 11:10:48 +00:00
xpmptcfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpterm.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmpucfg.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00
xpmputty.c Tweak the icon script, and the generated icons, to more closely 2007-01-07 10:17:12 +00:00