aboutsummaryrefslogtreecommitdiffstats
path: root/common/dotlock.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-17/+17
The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
2012-01-03Revert last change, add comment about link() return values.Marcus Brinkmann1-21/+11
* common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Do not check return value of link().
2012-01-03Fix compiler warnings.Marcus Brinkmann1-9/+21
* common/dotlock.c (use_hardlinks_p, dotlock_take_unix): Check return value of link(). * g13/g13.c: Make sure err is initialized. * scd/scdaemon.c (main) [!USE_GCRY_THREAD_CBS]: Do not define ERR.
2011-10-24Allow distribution of dotlock.* also under a modified BSD licenseWerner Koch1-0/+36
2011-09-30Change JNLIB license to LGPLv3+ or GPLv2+.Werner Koch1-6/+17
This is to allow the use of this code with code under GPLv2(only).
2011-09-30Add prefix macro for dotlock functions.Werner Koch1-8/+13
Also fixed a type in the GLIB version.
2011-09-29Add dotlock_get_fd and dotlock_set_fd.Werner Koch1-2/+34
2011-09-29Make dotlock.c thread-safe on pthread systems.Werner Koch1-25/+74
This is achieved by passing the define DOTLOCK_USE_PTHREAD.
2011-09-28Add a flag parameter to dotlock_create.Werner Koch1-7/+18
This allows us to extend this function in the future.
2011-09-28Allow arbitrary timeouts with dotlock.Werner Koch1-37/+82
2011-09-27Improved the dotlock module.Werner Koch1-41/+372
- It is now more portable and may be used outside of GnuPG - vfat file systems are now supported. - The use of link(2) is more robust. - Wrote extensive documentation.
2011-09-23Renamed the lock functions.Werner Koch1-311/+419
Also cleaned up the dotlock code for easier readability.
2011-09-22Remove support for RISCOS from dotlock.cWerner Koch1-58/+7
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-31/+30
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2010-03-24More changes for CE. gpgsm does now build and run a keylisting.Werner Koch1-9/+21
2010-03-10Merged jnlib into common.Werner Koch1-0/+0
2010-02-26First batch of changes to support W32CE.Werner Koch1-10/+26
Note that jnlib/w32-reg.c is not yet ready.
2009-09-23s/DOTLOCK/dotlock_t/.Werner Koch1-14/+14
Add some stuff for g13.
2009-07-07Minor bug fixes.Werner Koch1-1/+5
Enhanced function docs.
2009-05-08Doc fixes.Werner Koch1-1/+0
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-1/+4
2008-06-13Implement dotlocking for W32.Werner Koch1-125/+259
2008-03-20Fix a bug in the ambigious name detection.Werner Koch1-1/+2
Minor cleanups.
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-06First steps towards supporting W32.Werner Koch1-0/+1
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2006-10-02Fix for bug 537Werner Koch1-13/+13
2006-06-28Remove stale lockfiles if created on the same node.Werner Koch1-257/+336
2006-06-20Updated FSF's address.Werner Koch1-1/+2
2006-05-23g10/ does build again.Werner Koch1-21/+62
2003-11-17Preparing for 1.9.2 release.V1-9-2Werner Koch1-0/+16
2003-06-18Finished the bulk of changes for gnupg 1.9. This included switchingWerner Koch1-24/+98
to libgcrypt functions, using shared error codes from libgpg-error, replacing the old functions we used to have in ../util by those in ../jnlib and ../common, renaming the malloc functions and a couple of types. Note, that not all changes are listed below becuause they are too similar and done at far too many places. As of today the code builds using the current libgcrypt from CVS but it is very unlikely that it actually works.
2003-01-09Updated from NewPGWerner Koch1-0/+346
2002-06-29Removed files for CVS reorganizationDavid Shaw1-374/+0
2000-07-14See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch1-6/+34
2000-01-24Add files to new directory.Werner Koch1-0/+346
This is mainly stuff moved from ../util to here.