CVS log for downtime.c
Up to [DownTime]
Request diff between arbitrary revisions - Display revisions graphically
Keyword substitution: kv
Default branch: MAIN
Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Mar 12 15:25:38 2010 UTC (2 years, 2 months ago) by nick
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3
lines
Primary and secondary text according to the GNOME HIG in dialogs
Revision 1.49: download - view: text, markup, annotated - select for diffs
Fri Mar 12 13:53:09 2010 UTC (2 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3
lines
Clean up dialogs, try to set parets of modal warning / error dialogs... Haven't been able to do it nicely everywhere, particularly in storage.c.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Sat Feb 20 12:41:26 2010 UTC (2 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +6 -3
lines
- Fixed Save as / Open filter
- File associations - double-clicking a saved .downtime file file launch DownTime with those settings. If auto_run was specified, a shutdown will be launched immediately
- Tray icon, enabled by default when a shutdown is pending
- Remove the "Remember these settings" check box - We now always remember the last shutdown in the user's .downtime file, but don't auto-save to any other loader file
- Disable File->Save if we can't write to the current config file
Revision 1.47: download - view: text, markup, annotated - select for diffs
Thu Feb 18 10:27:01 2010 UTC (2 years, 3 months ago) by nick
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +1 -1
lines
- File->Save As, wherein one can specify that the saved file should auto-run. Still need to fix file filter
- Support "auto_run" tag in saved configuration files launched via DownTime to automatically start a specified shutdown
Revision 1.46: download - view: text, markup, annotated - select for diffs
Tue Feb 9 04:31:02 2010 UTC (2 years, 3 months ago) by nick
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +37 -52
lines
*** empty log message ***
Revision 1.45: download - view: text, markup, annotated - select for diffs
Wed May 13 10:01:08 2009 UTC (3 years ago) by nick
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +0 -1
lines
Remove previously added pointless statement...
Revision 1.44: download - view: text, markup, annotated - select for diffs
Wed May 13 09:46:32 2009 UTC (3 years ago) by nick
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +11 -1
lines
Correctly restart argument parsing with va_copy()
Revision 1.43: download - view: text, markup, annotated - select for diffs
Wed May 13 09:12:26 2009 UTC (3 years ago) by nick
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +1 -1
lines
- 0.3.2!
- Bump copyright date
Revision 1.42: download - view: text, markup, annotated - select for diffs
Thu Apr 9 02:43:23 2009 UTC (3 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +4 -2
lines
Reset the variable argument pointer in pasprintf() as one vsnprintf() call clobbers the current position.
Don't quite understand why this never appeared to be a problem on x86, but now DownTime should work on amd64, too.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Jun 24 13:49:53 2008 UTC (3 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +14 -111
lines
- Progress bar behaves (at least more) correctly under pausing
- Break out some info nto separate header files
- Kill cat_strings, replace with pasprintf() where appropriate
- Style and miscellaneous small clean-ups
Revision 1.40: download - view: text, markup, annotated - select for diffs
Mon Jun 23 12:36:44 2008 UTC (3 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +2 -2
lines
Bump copyright date and replace another "AUTHOR" with "THE AUTHOR(S)"
Revision 1.39: download - view: text, markup, annotated - select for diffs
Tue Aug 21 02:56:11 2007 UTC (4 years, 9 months ago) by nick
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +9 -9
lines
Use "'\0'" rather than "(char) NULL" when referring to the NUL character
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sat Aug 11 10:47:11 2007 UTC (4 years, 9 months ago) by nick
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +2 -2
lines
- Bump copyright dates and change "AUTHOR" to "THE AUTHOR(S)" in various source files
- "Always on top" setting for the progress window works
- Allow for specifying a configuration file as the first command-line parameter. Thisd could be helpful if people have multiple regular shutdown regimens they use and (for example) wish to set up different shortcuts for them
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun May 6 11:49:39 2007 UTC (5 years ago) by nick
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +1 -1
lines
- "Close" button on "About" dialog now closes the dialog as expected
- Preferences dialog, with "Always on top" settings for both main dialog and progress dialog
- Makefile sets X11BASE to /usr/local if not defined
- Global window and sub-element structures. Geez I wish GTK callbacks allowed for multiple user parameters to be passed...
- Miscellaneous cleanups / relatively minor changes
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Mar 19 06:10:24 2007 UTC (5 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -0
lines
Initial work on Preferences dialog and Advanced main dialog view
Revision 1.35: download - view: text, markup, annotated - select for diffs
Sun Mar 18 09:52:34 2007 UTC (5 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +5 -4
lines
No longer use the non-standard err() and warn() functions / their peers
Revision 1.34: download - view: text, markup, annotated - select for diffs
Sat Jul 15 12:17:09 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +9 -15
lines
- No more settings struct. We now have a shutdown_t struct, which holds information relevant to the shutdown process, a user_specs struct, which holds all directly user-specified information, and two global variables: config_path and shutdown_path (both of type char *). Many changes have been made to incorporate these changes
- Further passing of variables rather than accessing them externally. Note that we're passing the new specs struct to functions that you would normally expect not to require it (e.g., get_user_specs()). This is because there may be more stored in specs in the future than just stuff displayed in the main window
- load_user_specs() (formerly load_settings()) now only modifies settings on a successful call
- Better usage of macros in downtime.h for settings default user specs
- New function update_user_specs(user_specs *specs) which updates the struct pointed to by specs to reflect (at this point) the current settings in the main window
- Myriad minor improvements
Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Jul 14 10:16:18 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +4 -6
lines
- Correctly record the shutdown type specified. This corrects a recently introduced bug that would cause the shutdown type specified to only take effect on the _next_ shutdown (i.e.: Not the one the type was specified for)
- Reduced dependence on global variables
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Jul 13 03:17:17 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +15 -1
lines
- Slight renamings. In particular, shutdown_params -> state, and the aforementioned struct's config_location parameter is now config_path
- init_state() created (and used) to initialise the global settings
- If we couldn't find the location of the configuration file, disable the ability to save / remember settings
- Graphically warn the user if there was a problem loading saved settings, unless the problem in question is simply that the file doesn't exist
- Check for non-printable characters (other than newline) when reading the configuration file
- Correctly output the configuration file name in the error dialogue which appears if we couldn't open a file specified through File -> Open
Revision 1.31: download - view: text, markup, annotated - select for diffs
Tue Jul 11 08:04:39 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -4
lines
- Broke start_shutdown() apart
- Miscellaneous corrections and improvements
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sun Jul 2 07:06:41 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +13 -18
lines
Improved error checking code (still needs some work, though)
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Jul 2 04:42:24 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +32 -28
lines
- Miscellaneous cleanups / minor corrections / improvements
- Slightly improved shutdown(8) output handling and handling possibilities
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sat Jul 1 17:15:20 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -16
lines
- minor cleanups
- lint target in Makefile. Doesn't seem to work for me, though, as there are a horde of errors reported in GTK-related header files
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jul 1 06:54:45 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +14 -0
lines
- Bump version number to 0.2.0-dev. Sufficient changes have been made, and further significant changes - including breaking configuration file compatibility with previous versions - are to come
- New TODOs
- Implement long int max_minutes_to_shutdown(void), which returns the maximum number of minutes until a scheduled shutdown (for instance, it will return 7 when a shutdown is to occur in 6 minutes and 3 seconds)
- Miscellaneous cleanups
- Start of a "shutdown_type" struct - trying to clean up the shutdown type selection menu and interactions and allow the searching of shutdown types based on name (the motivation here is the potential to specify a shutdown type in words in the DownTime configuration file. So, for instance, the following line might be common in the file: "<shutdown_type>power-off</shutdown_type>")
- Use single bit bit-fields in the shutdown_params struct rather than char types for boolean variables to potentially converse 2 bytes on most machines
Revision 1.26: download - view: text, markup, annotated - select for diffs
Wed Jun 28 14:44:54 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +26 -14
lines
Print hours, minutes and seconds as well as the number of days to go for shutdown times longer that 1 day
Revision 1.25: download - view: text, markup, annotated - select for diffs
Tue May 23 08:36:12 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +1 -1
lines
Implement pause functionality
Revision 1.24: download - view: text, markup, annotated - select for diffs
Tue May 23 06:01:52 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +2 -4
lines
Fixed a bug whereby the shutdown path would be undefined after a File -> Open of a config
Revision 1.23: download - view: text, markup, annotated - select for diffs
Tue May 23 05:43:47 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +3 -1
lines
Fixed some more memory leaks.
About to do a bit of stuffing about so that when load_settings() is called we don't lose the shutdown path
Revision 1.22: download - view: text, markup, annotated - select for diffs
Tue May 23 02:43:40 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +15 -10
lines
- Re-implement is_in_string_array(), as it was broken and messy
- Fix a (bloody stupid) memory leak that I should be shot for :-)
Revision 1.21: download - view: text, markup, annotated - select for diffs
Sun May 21 14:30:09 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +35 -25
lines
Slightly less boned now, but there're still issues:
- " Size 36" appears to get appended to the end of shutdown_param_array in shutdown.c, or at least a ps -ax | grep shutdown shows it there after launching...
- "Bad address" back again sometimes when launching shutdown(8)... Could be related to the issue above?
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sat May 20 10:17:30 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +19 -35
lines
Use array_add()
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sat May 20 10:00:43 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +2 -10
lines
Remove some apparently erroneous free()s.
Believe there are memory leaks in get_filename_from_path(), but I want to replace add_to_*_array() with array_add() from Shithead before delving into it, as this will change the scenario a little
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu May 18 06:25:24 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -1
lines
Only add the user's path if the program's setuid as another user so that a user couldn't simply create an executable called "shutdown" in a PATH location which would then be run as the setuid user (which would probably be root, if setuid is used)
Revision 1.17: download - view: text, markup, annotated - select for diffs
Mon May 8 14:05:17 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +1 -1
lines
Complete execute only requirement for shutdown binary across files / messages
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Apr 6 07:53:17 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +15 -8
lines
Fix memory leaks
Revision 1.15: download - view: text, markup, annotated - select for diffs
Thu Apr 6 07:09:11 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -3
lines
Fixed some erroneous free()ing
Revision 1.14: download - view: text, markup, annotated - select for diffs
Thu Apr 6 04:22:36 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +15 -14
lines
- Reworked shutdown(8) binary discovery
- Fixed a stuff-up in is_in_string_array() where the variable array_length would be off-by-one after termination of a loop due to erroneous decrementation of the variable's value during the loop header (or whatever the loop initialisery bit's called :-))
- Changed is_in_string_array() to take a size_t parameter as the length of an array, rather than an int, which may not necessarily be large enough
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Apr 4 13:01:18 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -1
lines
Yet more variable fixing up
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Apr 4 12:20:10 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +7 -14
lines
Remove an unnecessary variable, malloc(), etc.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue Apr 4 12:08:51 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +63 -63
lines
Code cleanup, removing "p_" etc. from variable names, removed some unnecessary malloc()s
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Apr 2 10:12:28 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +0 -4
lines
Remove debugging printf()s
Revision 1.9: download - view: text, markup, annotated - select for diffs
Sun Apr 2 10:09:24 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +7 -9
lines
Fix off-by-ones in pasprintf() and pvasprintf(): vsnprintf() prints at most length - 1 characters, so to print the full length characters we have to pass it length + 1
Revision 1.8: download - view: text, markup, annotated - select for diffs
Sun Apr 2 09:45:29 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +59 -4
lines
Implement pasprintf() and pvasprintf() as portable replacements of the asprintf() and vasprintf() functions
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Apr 2 07:42:29 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +0 -9
lines
Revive Makefile... Need to learn a lot more about GNU autotools before I can use them effectively
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Mar 15 09:15:28 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +5 -0
lines
- Include "config.h" in source files
- Check for asprintf() and vasprintf()
Revision 1.5: download - view: text, markup, annotated - select for diffs
Mon Mar 13 07:23:12 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -1
lines
time_t appears to be a long int on Debian and a (regular) int on FreeBSD. Have therefore typecast a time_t / int to long int for consistency
Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Mar 13 05:18:41 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -2
lines
- Include strings.h for GNU/Linux systems where required to be able to use index()
- #define _GNU_SOURCE on GNU/Linux systems where required to be able to use asprintf() and vasprintf() (A genuinely portable solution should be found)
- Some indenting issues fixed
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Mar 11 08:43:55 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +5 -1
lines
Apparently sysexits.h is only available on BSD systems. Therefore, we now only include it on BSD systems, and we redefine EX_* to EXIT_FAILURE for other systems
Revision 1.2: download - view: text, markup, annotated - select for diffs
Tue Mar 7 07:58:02 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +39 -6
lines
(NOTE: Commit date wrong. Imported into CVS after release)
Version 0.1.1
- Corrected a bug which would cause DownTime to loop for a heck of a long time trying to free() memory that wasn't allocated in the first place due to an unsigned integer underflow
- Corrected program name in COPYRIGHT (whoops!)
- Added license information to all C source files
- Added CHANGELOG
Revision 1.1: download - view: text, markup, annotated - select for diffs
Tue Mar 7 07:49:30 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
(NOTE: Commit date wrong. Imported into CVS after release)
Initial, version 0.1 release!
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>