CVS log for storage.c

[BACK] Up to [DownTime]

Request diff between arbitrary revisions - Display revisions graphically


Keyword substitution: kv
Default branch: MAIN


Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Mar 12 15:25:39 2010 UTC (2 years, 2 months ago) by nick
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +6 -6 lines
Primary and secondary text according to the GNOME HIG in dialogs

Revision 1.42: 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.41: preferred, colored
Changes since revision 1.41: +6 -6 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.41: 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.40: preferred, colored
Changes since revision 1.40: +22 -5 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.40: 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.39: preferred, colored
Changes since revision 1.39: +25 -13 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.39: download - view: text, markup, annotated - select for diffs
Wed Feb 17 03:11:34 2010 UTC (2 years, 3 months ago) by nick
Branches: MAIN
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +3 -0 lines
free() existing specs->config_path when loading new settings

Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Feb 17 02:56:34 2010 UTC (2 years, 3 months ago) by nick
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -4 lines
- Disable the "remember these settings" check box if there's no config file
- Proper GTK file open dialog
- Bump some dates and change dome minor things

Revision 1.37: 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.36: preferred, colored
Changes since revision 1.36: +1 -1 lines
- 0.3.2!
- Bump copyright date

Revision 1.36: download - view: text, markup, annotated - select for diffs
Thu Apr 9 01:51:51 2009 UTC (3 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +2 -2 lines
Add comments indication why we're free()ing temp and not just returning it

Revision 1.35: 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.34: preferred, colored
Changes since revision 1.34: +26 -76 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.34: 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.33: preferred, colored
Changes since revision 1.33: +2 -2 lines
Bump copyright date and replace another "AUTHOR" with "THE AUTHOR(S)"

Revision 1.33: 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.32: preferred, colored
Changes since revision 1.32: +3 -3 lines
Use "'\0'" rather than "(char) NULL" when referring to the NUL character

Revision 1.32: download - view: text, markup, annotated - select for diffs
Sun Aug 12 08:52:19 2007 UTC (4 years, 9 months ago) by nick
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +85 -32 lines
Re-work loading user settings. Not actually convinced this is better, though it could potentially be a step in the right direction with further work...

Revision 1.31: download - view: text, markup, annotated - select for diffs
Sat Aug 11 17:33:23 2007 UTC (4 years, 9 months ago) by nick
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +3 -3 lines
  - Remove window structs (one could certainly argue this makes things messier, rather than the cleaner...)
  - Re-introduce File -> Open and File -> Save (A "Save As..." should be forthcoming) as they could be used nicely in conjunction with the previously introduced command-line parameter configuration file path passing

Revision 1.30: 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.29: preferred, colored
Changes since revision 1.29: +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.29: 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.28: preferred, colored
Changes since revision 1.28: +46 -4 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.28: 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.27: preferred, colored
Changes since revision 1.27: +19 -12 lines
No longer use the non-standard err() and warn() functions / their peers

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jul 15 12:55:06 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +1 -9 lines
Consistent handling of a badly stored timeout parameter. Just warn on stdout and continue parsing

Revision 1.26: 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.25: preferred, colored
Changes since revision 1.25: +19 -30 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.25: 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.24: preferred, colored
Changes since revision 1.24: +0 -3 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.24: download - view: text, markup, annotated - select for diffs
Thu Jul 13 03:19:02 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +0 -2 lines
Remove debug message

Revision 1.23: 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.22: preferred, colored
Changes since revision 1.22: +38 -34 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.22: 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.21: preferred, colored
Changes since revision 1.21: +33 -19 lines
- Broke start_shutdown() apart
- Miscellaneous corrections and improvements

Revision 1.21: download - view: text, markup, annotated - select for diffs
Mon Jul 10 15:59:56 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +9 -2 lines
Fix a potential memory leak in an error condition

Revision 1.20: download - view: text, markup, annotated - select for diffs
Mon Jul 3 14:24:31 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +70 -68 lines
load_settings() now returns status information.

About to look at settings (i.e., the shutdown_params struct) and passing between functions

Revision 1.19: download - view: text, markup, annotated - select for diffs
Mon Jul 3 13:59:35 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +1 -1 lines
Only warn on stdout if we couldn't open the DownTime configuration file rather than presenting a graphical warning. This is because this event will always happen when DownTime is first run by a user and it's not that big a deal anyway

Revision 1.18: download - view: text, markup, annotated - select for diffs
Mon Jul 3 13:16:14 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +63 -61 lines
- Don't call umask(2) when opening the configuration file for reading
- Only warn about not being able to open the configuration file if load_settings() was told to do so

Revision 1.17: download - view: text, markup, annotated - select for diffs
Sun Jul 2 07:06:42 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +5 -5 lines
Improved error checking code (still needs some work, though)

Revision 1.16: 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.15: preferred, colored
Changes since revision 1.15: +1 -1 lines
- Miscellaneous cleanups / minor corrections / improvements
- Slightly improved shutdown(8) output handling and handling possibilities

Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jul 1 12:41:17 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +59 -8 lines
- Instead of writing the value of an enum member to the configuration file for the "timeout_unit" and "shutdown_type", write a string describing the desired setting. Though this requires more effort to deal with and more execution time, it makes up for it in the robustness stakes. That having been said, it's still a bit messy and I can't help but feel that an array of structs with a number and parameter name each might help provide a better solution
- Correctly report negative shutdown timeout

Revision 1.14: 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.13: preferred, colored
Changes since revision 1.13: +0 -4 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.13: download - view: text, markup, annotated - select for diffs
Wed Jun 28 15:17:05 2006 UTC (5 years, 10 months ago) by nick
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +58 -38 lines
- Do checking to ensure that the configuration file location was actually found. Averts a potential NULL-pointer dereference if getpwuid() was unsuccessful
- Log the version of DownTime a configuration file was last written by
- static things up a little

Revision 1.12: 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.11: preferred, colored
Changes since revision 1.11: +1 -0 lines
Implement pause functionality

Revision 1.11: download - view: text, markup, annotated - select for diffs
Tue May 23 06:01:53 2006 UTC (5 years, 11 months ago) by nick
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +18 -25 lines
Fixed a bug whereby the shutdown path would be undefined after a File -> Open of a config

Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun May 21 14:30:10 2006 UTC (6 years ago) by nick
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +1 -6 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.9: 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.8: preferred, colored
Changes since revision 1.8: +6 -1 lines
Use array_add()

Revision 1.8: download - view: text, markup, annotated - select for diffs
Tue Apr 4 12:08:52 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +72 -82 lines
Code cleanup, removing "p_" etc. from variable names, removed some unnecessary malloc()s

Revision 1.7: 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.6: preferred, colored
Changes since revision 1.6: +0 -1 lines
Implement pasprintf() and pvasprintf() as portable replacements of the asprintf() and vasprintf() functions

Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Apr 2 07:46:49 2006 UTC (6 years, 1 month ago) by nick
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +1 -10 lines
Revive Makefile... Need to learn a lot more about GNU autotools before I can use them effectively

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Mar 15 09:15:29 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +5 -0 lines
- Include "config.h" in source files
- Check for asprintf() and vasprintf()

Revision 1.4: download - view: text, markup, annotated - select for diffs
Mon Mar 13 05:18:42 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +5 -0 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:56 2006 UTC (6 years, 2 months ago) by nick
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -2 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: +30 -5 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!

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>