~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to gnulib-tests/test-fcntl-h.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- buffer-read-only: t -*- vi: set ro: */
2
 
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3
1
/* Test of <fcntl.h> substitute.
4
 
   Copyright (C) 2007, 2009-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 2007, 2009-2012 Free Software Foundation, Inc.
5
3
 
6
4
   This program is free software: you can redistribute it and/or modify
7
5
   it under the terms of the GNU General Public License as published by
23
21
#include <fcntl.h>
24
22
 
25
23
/* Check that the various O_* macros are defined.  */
26
 
int o = O_DIRECT | O_DIRECTORY | O_DSYNC | O_NDELAY | O_NOATIME | O_NONBLOCK
27
 
        | O_NOCTTY | O_NOFOLLOW | O_NOLINKS | O_RSYNC | O_SYNC | O_TTY_INIT
28
 
        | O_BINARY | O_TEXT;
 
24
int o = (O_DIRECT | O_DIRECTORY | O_DSYNC | O_IGNORE_CTTY | O_NDELAY | O_NOATIME
 
25
         | O_NONBLOCK | O_NOCTTY | O_NOFOLLOW | O_NOLINK | O_NOLINKS | O_NOTRANS
 
26
         | O_RSYNC | O_SYNC | O_TTY_INIT | O_BINARY | O_TEXT);
29
27
 
30
28
/* Check that the various SEEK_* macros are defined.  */
31
29
int sk[] = { SEEK_CUR, SEEK_END, SEEK_SET };
33
31
/* Check that the FD_* macros are defined.  */
34
32
int i = FD_CLOEXEC;
35
33
 
 
34
/* Check that the types are all defined.  */
 
35
pid_t t1;
 
36
off_t t2;
 
37
mode_t t3;
 
38
 
36
39
int
37
40
main (void)
38
41
{
81
84
#if O_DSYNC
82
85
    case O_DSYNC:
83
86
#endif
 
87
#if O_IGNORE_CTTY
 
88
    case O_IGNORE_CTTY:
 
89
#endif
84
90
#if O_NOATIME
85
91
    case O_NOATIME:
86
92
#endif
93
99
#if O_NOFOLLOW
94
100
    case O_NOFOLLOW:
95
101
#endif
 
102
#if O_NOLINK
 
103
    case O_NOLINK:
 
104
#endif
96
105
#if O_NOLINKS
97
106
    case O_NOLINKS:
98
107
#endif
 
108
#if O_NOTRANS
 
109
    case O_NOTRANS:
 
110
#endif
99
111
#if O_RSYNC && O_RSYNC != O_DSYNC
100
112
    case O_RSYNC:
101
113
#endif