~ubuntu-branches/ubuntu/hardy/fuse/hardy-security

« back to all changes in this revision

Viewing changes to lib/fuse_misc.h

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2007-08-04 08:09:00 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070804080900-m1e9xpk5eitzmelg
Tags: 2.7.0-1ubuntu1
* Resynchronise with Debian (LP: #128292). Remaining changes:
  - Don't install the init script; install the udev rule and the module
    configuration file instead.
  - debian/45-fuse.rules: set /dev/fuse group to fuse.
  - debian/fuse-utils.modprobe: module configuration file that mounts the
    control filesystem when fuse is loaded and unmounts it when fuse is
    unloaded, along with checking that the control FS is mounting before
    unmounting it.
  - debian/fuse-utils.install: add the udev rule, the module configuration
    file, and ulockmgr_server.
  - Load fuse on install, and set it so it gets loaded on reboot.
  - Move fusermount and ulockmgr_server to /bin and associated libraries
    to /lib.
* Use dpkg-query to fetch conffile md5sums rather than parsing
  /var/lib/dpkg/status directly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
    FUSE: Filesystem in Userspace
3
 
    Copyright (C) 2001-2006  Miklos Szeredi <miklos@szeredi.hu>
 
3
    Copyright (C) 2001-2007  Miklos Szeredi <miklos@szeredi.hu>
4
4
 
5
5
    This program can be distributed under the terms of the GNU LGPL.
6
6
    See the file COPYING.LIB
24
24
 
25
25
#ifdef HAVE_STRUCT_STAT_ST_ATIM
26
26
/* Linux */
27
 
#define ST_ATIM(stbuf) (stbuf)->st_atim
28
 
#define ST_CTIM(stbuf) (stbuf)->st_ctim
29
 
#define ST_MTIM(stbuf) (stbuf)->st_mtim
30
 
#define FUSE_STAT_HAS_NANOSEC 1 
 
27
#define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atim.tv_nsec)
 
28
#define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctim.tv_nsec)
 
29
#define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtim.tv_nsec)
 
30
#define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atim.tv_nsec = (val)
 
31
#define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtim.tv_nsec = (val)
31
32
#elif defined(HAVE_STRUCT_STAT_ST_ATIMESPEC)
32
33
/* FreeBSD */
33
 
#define ST_ATIM(stbuf) (stbuf)->st_atimespec
34
 
#define ST_CTIM(stbuf) (stbuf)->st_ctimespec
35
 
#define ST_MTIM(stbuf) (stbuf)->st_mtimespec
36
 
#define FUSE_STAT_HAS_NANOSEC 1
 
34
#define ST_ATIM_NSEC(stbuf) ((stbuf)->st_atimespec.tv_nsec)
 
35
#define ST_CTIM_NSEC(stbuf) ((stbuf)->st_ctimespec.tv_nsec)
 
36
#define ST_MTIM_NSEC(stbuf) ((stbuf)->st_mtimespec.tv_nsec)
 
37
#define ST_ATIM_NSEC_SET(stbuf, val) (stbuf)->st_atimespec.tv_nsec = (val)
 
38
#define ST_MTIM_NSEC_SET(stbuf, val) (stbuf)->st_mtimespec.tv_nsec = (val)
 
39
#else
 
40
#define ST_ATIM_NSEC(stbuf) 0
 
41
#define ST_CTIM_NSEC(stbuf) 0
 
42
#define ST_MTIM_NSEC(stbuf) 0
 
43
#define ST_ATIM_NSEC_SET(stbuf, val) do { } while (0)
 
44
#define ST_MTIM_NSEC_SET(stbuf, val) do { } while (0)
37
45
#endif