xbps/lib
Juan RP 0416b067d0 Use a POSIX lock for pkgdb and only issue pkgdb writes in exact points.
- Rather than using a POSIX named semaphore use a POSIX lock (lockf(3))
for pkgdb for writers. Writers that cannot acquire the pkgdb lock will
get EAGAIN rather then being blocked.

- Due to using a file lock we cannot write the pkgdb every time a package
is being unpacked, configured or removed. Instead pkgdb is only written
at the end of a specific point in the transaction (unpack, configure, remove)
or via xbps_pkgdb_unlock().
2014-03-04 14:37:10 +01:00
..
compat
external Remove the config.h kludge and override vasprintf detection via HAVE_VASPRINTF. 2014-01-20 18:50:33 +01:00
fetch Remove the config.h kludge and override vasprintf detection via HAVE_VASPRINTF. 2014-01-20 18:50:33 +01:00
portableproplib Remove the config.h kludge and override vasprintf detection via HAVE_VASPRINTF. 2014-01-20 18:50:33 +01:00
archive.c
cb_util.c Remove the config.h kludge and override vasprintf detection via HAVE_VASPRINTF. 2014-01-20 18:50:33 +01:00
download.c Adding xbps_fetch_file_dest(). 2014-03-04 14:19:52 +01:00
initend.c Use a POSIX lock for pkgdb and only issue pkgdb writes in exact points. 2014-03-04 14:37:10 +01:00
Makefile Merge rpool_get.c into rpool.c. 2013-12-25 08:48:24 +01:00
package_config_files.c xbps_entry_install_conf_file: use archive_entry_copy to set new entry pathname. 2014-03-04 09:44:58 +01:00
package_configure.c Use a POSIX lock for pkgdb and only issue pkgdb writes in exact points. 2014-03-04 14:37:10 +01:00
package_conflicts.c Fix #18. An ATF test-case will be imported in a while. 2013-11-01 18:05:11 +01:00
package_find_obsoletes.c Use C99 for loop initializers. 2013-09-15 10:06:49 +02:00
package_orphans.c xbps_find_pkg_orphans: minor optimizations. 2013-12-08 08:06:28 +01:00
package_register.c Use a POSIX lock for pkgdb and only issue pkgdb writes in exact points. 2014-03-04 14:37:10 +01:00
package_remove.c Use a POSIX lock for pkgdb and only issue pkgdb writes in exact points. 2014-03-04 14:37:10 +01:00
package_script.c
package_state.c
package_unpack.c Fix #31 and add new test case to reproduce it. 2014-02-25 22:55:39 +01:00
pkgdb.c Use a POSIX lock for pkgdb and only issue pkgdb writes in exact points. 2014-03-04 14:37:10 +01:00
plist_fetch.c Implement per pkg RSA signatures and on-demand repository access. 2013-12-24 10:43:55 +01:00
plist_find.c lib/plist_find.c: do not return a false positive while matching vpkgs. 2014-02-25 18:43:33 +01:00
plist_match.c
plist_remove.c
plist.c xbps_array_foreach_cb_multi: remove useless mutex. 2013-12-08 08:07:45 +01:00
proplib_wrapper.c
pubkey2fp.c Redo how the repository keys are stored. 2013-11-18 16:05:46 +01:00
repo_pkgdeps.c lib/repo_pkgdeps.c: check correctly for errno after our call, not after free(3). 2014-01-30 17:47:59 +01:00
repo_sync.c
repo.c Keep repo metadata if possible when updating repodata (xbps-rindex -a/-c). 2014-01-30 13:07:34 +01:00
rpool.c Merge rpool_get.c into rpool.c. 2013-12-25 08:48:24 +01:00
transaction_commit.c Use a POSIX lock for pkgdb and only issue pkgdb writes in exact points. 2014-03-04 14:37:10 +01:00
transaction_dictionary.c Improve stats in the transaction dictionary. 2013-12-16 07:24:17 +01:00
transaction_ops.c Respect installation mode also on reinstall (and downgrade). 2014-01-15 16:17:41 +01:00
transaction_package_replace.c Fixed issue #26 (Replacing an installed pkg multiple times). 2013-12-12 18:24:24 +01:00
transaction_revdeps.c Use C99 for loop initializers. 2013-09-15 10:06:49 +02:00
transaction_sortdeps.c lib/transaction_sortdeps.c: bump copyright year. 2013-12-16 09:18:54 +01:00
util_hash.c xbps_file_hash: simplify and use read(2). 2013-11-26 13:08:44 +01:00
util.c Fixed a xbps_pkgpattern_name() crash and a test to reproduce it (found by Gottox). 2014-02-15 01:26:42 +01:00
verifysig.c xbps_verify_file_signature: there's no repo->hexfp anymore, compute it instead. 2014-01-30 19:34:26 +01:00