~pr0gg3d/ubuntu/oneiric/util-linux/bug-805886

« back to all changes in this revision

Viewing changes to include/c.h

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2010-03-22 17:35:40 UTC
  • mfrom: (1.6.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100322173540-sm083tdtvne1wa5w
Tags: 2.17.2-0ubuntu1
* Merge from Debian experimental, remaining changes:
  - Since udev is required in Ubuntu, the hwclock.sh init script is
    not called on startup and the hwclockfirst.sh init script is
    removed.
  - Use wildcards for symbols file, since they use versioned symbols
    properly.
  - Remove /etc/adjtime on upgrade if it was not used.
  - Install custom blkid.conf to use /dev/.blkid.tab since we don't
    expect device names to survive a reboot
  - No lsb_release call in mount.preinst since we'd need Pre-Depends
    (LP: #383697).
  - Do not install initramfs hook, since our initramfs already handles
    including blkid.
  - Mention mountall(8) in fstab(5) manpages, along with its special
    options.

* For the case where mount is called with a directory to mount, look
  that directory up in mountall's /lib/init/fstab if we couldn't find
  it mentioned anywhere else.  This means "mount /proc", "mount /sys",
  etc. work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
# define FALSE 0
47
47
#endif
48
48
 
 
49
#ifndef min
 
50
# define min(x, y) ({                           \
 
51
        typeof(x) _min1 = (x);                  \
 
52
        typeof(y) _min2 = (y);                  \
 
53
        (void) (&_min1 == &_min2);              \
 
54
        _min1 < _min2 ? _min1 : _min2; })
 
55
#endif
 
56
 
 
57
#ifndef max
 
58
# define max(x, y) ({                           \
 
59
        typeof(x) _max1 = (x);                  \
 
60
        typeof(y) _max2 = (y);                  \
 
61
        (void) (&_max1 == &_max2);              \
 
62
        _max1 > _max2 ? _max1 : _max2; })
 
63
#endif
 
64
 
49
65
#endif /* UTIL_LINUX_C_H */