~ubuntu-branches/debian/jessie/systemd/jessie

« back to all changes in this revision

Viewing changes to src/journal/lookup3.h

  • Committer: Package Import Robot
  • Author(s): Tollef Fog Heen, Tollef Fog Heen, Michael Biebl
  • Date: 2012-04-03 19:59:17 UTC
  • mfrom: (1.1.10) (6.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20120403195917-l532urrbg4pkreas
Tags: 44-1
[ Tollef Fog Heen ]
* New upstream version.
  - Backport 3492207: journal: PAGE_SIZE is not known on ppc and other
    archs
  - Backport 5a2a2a1: journal: react with immediate rotation to a couple
    of more errors
  - Backport 693ce21: util: never follow symlinks in rm_rf_children()
    Fixes CVE-2012-1174, closes: #664364
* Drop output message from init-functions hook, it's pointless.
* Only rmdir /lib/init/rw if it exists.
* Explicitly order debian-fixup before sysinit.target to prevent a
  possible race condition with the creation of sockets.  Thanks to
  Michael Biebl for debugging this.
* Always restart the initctl socket on upgrades, to mask sysvinit
  removing it.

[ Michael Biebl ]
* Remove workaround for non-interactive sessions from pam config again.
* Create compat /dev/initctl symlink in case we are upgrading from a system
  running a newer version of sysvinit (using /run/initctl) and sysvinit is
  replaced with systemd-sysv during the upgrade. Closes: #663219
* Install new man pages.
* Build-Depend on valac (>= 0.12) instead of valac-0.12. Closes: #663323

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
 
2
 
 
3
#ifndef foolookup3hfoo
 
4
#define foolookup3hfoo
 
5
 
 
6
#include <inttypes.h>
 
7
#include <sys/types.h>
 
8
 
 
9
uint32_t jenkins_hashword(const uint32_t *k, size_t length, uint32_t initval);
 
10
void jenkins_hashword2(const uint32_t *k, size_t length, uint32_t *pc, uint32_t *pb);
 
11
 
 
12
uint32_t jenkins_hashlittle(const void *key, size_t length, uint32_t initval);
 
13
void jenkins_hashlittle2(const void *key, size_t length, uint32_t *pc, uint32_t *pb);
 
14
 
 
15
uint32_t jenkins_hashbig(const void *key, size_t length, uint32_t initval);
 
16
 
 
17
static inline uint64_t hash64(const void *data, size_t length) {
 
18
        uint32_t a = 0, b = 0;
 
19
 
 
20
        jenkins_hashlittle2(data, length, &a, &b);
 
21
 
 
22
        return ((uint64_t) a << 32ULL) | (uint64_t) b;
 
23
}
 
24
 
 
25
#endif