~ubuntu-branches/ubuntu/quantal/libexplain/quantal

« back to all changes in this revision

Viewing changes to libexplain/ac/fcntl.h

  • Committer: Package Import Robot
  • Author(s): Peter Miller
  • Date: 2012-03-04 23:46:21 UTC
  • mfrom: (4.1.21 sid)
  • Revision ID: package-import@ubuntu.com-20120304234621-btwurgtrss9dp14u
Tags: 0.52.D002-1
* This change set updates all test that concern EACCES to default pass if
  executed by root, because otherwise they get false negatives when they are
  expecting failures.
* 0.51.D004: Closes: #614462
* This is a summary, see earlier changelog entries for details of individual
  bug fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 * libexplain - Explain errno values returned by libc functions
3
 
 * Copyright (C) 2008-2011 Peter Miller
 
3
 * Copyright (C) 2008-2012 Peter Miller
4
4
 * Written by Peter Miller <pmiller@opensource.org.au>
5
5
 *
6
6
 * This program is free software; you can redistribute it and/or modify
31
31
#if defined(__alpha__) && defined(HAVE_LINUX_FCNTL_H)
32
32
#include <libexplain/ac/linux/types.h> /* Ubuntu Hardy needs this first */
33
33
/* This is very strange, but numerous tests fail if we use <fcntl.h>
34
 
   because is appears to have several incorrect macro definitions */
35
 
#include <linux/ac/sys/types.h>
 
34
   because it appears to have several incorrect macro definitions */
36
35
#include <linux/fcntl.h>
37
36
#else
38
37
#include <fcntl.h>
62
61
 
63
62
/*
64
63
 * Even when O_LARGEFILE is not necessary, glibc adds one in for free.
65
 
 * The trouble is that this make things interesting when decoding
 
64
 * The trouble is, this make things interesting when decoding
66
65
 * flags values returned by the kernel.
67
66
 */
68
67
#if defined(__linux__) && (O_LARGEFILE == 0)
69
68
#define O_LARGEFILE_HIDDEN 0100000
70
69
#endif
71
70
 
 
71
/* vim: set ts=8 sw=4 et : */
72
72
#endif /* LIBEXPLAIN_AC_FCNTL_H */