~ubuntu-branches/ubuntu/trusty/eglibc/trusty

« back to all changes in this revision

Viewing changes to .pc/any/submitted-bits-fcntl_h-at.diff/io/fcntl.h

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-01-10 18:39:35 UTC
  • mfrom: (1.5.2) (4.4.24 experimental)
  • Revision ID: package-import@ubuntu.com-20130110183935-afsgfxkmg7wk5eaj
Tags: 2.17-0ubuntu1
* Merge with Debian, bringing in a new upstream and many small fixes:
  - patches/any/cvs-malloc-deadlock.diff: Dropped, merged upstream.
  - patches/ubuntu/lddebug-scopes.diff: Rebase for upstream changes.
  - patches/ubuntu/local-CVE-2012-3406.diff: Rebased against upstream.
  - patches/ubuntu/no-asm-mtune-i686.diff: Fixed in recent binutils.
* This upstream merge fixes a nasty hang in pulseaudio (LP: #1085342)
* Bump MIN_KERNEL_SUPPORTED to 2.6.32 on ARM, now that we no longer
  have to support shonky 2.6.31 kernels on imx51 babbage builders.
* Drop patches/ubuntu/local-disable-nscd-host-caching.diff, as these
  issues were apparently resolved upstream a while ago (LP: #613662)
* Fix the compiled-in bug URL to point to launchpad.net, not Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
/* This must be early so <bits/fcntl.h> can define types winningly.  */
28
28
__BEGIN_DECLS
29
29
 
 
30
/* Get __mode_t, __dev_t and __off_t  .*/
 
31
#include <bits/types.h>
 
32
 
30
33
/* Get the definitions of O_*, F_*, FD_*: all the
31
34
   numbers and flag bits for `open', `fcntl', et al.  */
32
35
#include <bits/fcntl.h>
33
36
 
34
 
#if defined __USE_XOPEN || defined __USE_XOPEN2K
35
 
/* The Single Unix specification says that some more types are
36
 
   available here.  */
37
 
# ifndef __mode_t_defined
 
37
/* POSIX.1-2001 specifies that these types are defined by <fcntl.h>.
 
38
   Earlier POSIX standards permitted any type ending in `_t' to be defined
 
39
   by any POSIX header, so we don't conditionalize the definitions here.  */
 
40
#ifndef __mode_t_defined
38
41
typedef __mode_t mode_t;
39
 
#  define __mode_t_defined
40
 
# endif
 
42
# define __mode_t_defined
 
43
#endif
41
44
 
42
 
# ifndef __off_t_defined
43
 
#  ifndef __USE_FILE_OFFSET64
 
45
#ifndef __off_t_defined
 
46
# ifndef __USE_FILE_OFFSET64
44
47
typedef __off_t off_t;
45
 
#  else
 
48
# else
46
49
typedef __off64_t off_t;
47
 
#  endif
48
 
#  define __off_t_defined
49
50
# endif
50
 
 
51
 
# ifndef __pid_t_defined
 
51
# define __off_t_defined
 
52
#endif
 
53
 
 
54
#if defined __USE_LARGEFILE64 && !defined __off64_t_defined
 
55
typedef __off64_t off64_t;
 
56
# define __off64_t_defined
 
57
#endif
 
58
 
 
59
#ifndef __pid_t_defined
52
60
typedef __pid_t pid_t;
53
 
#  define __pid_t_defined
54
 
# endif
55
 
#endif  /* X/Open */
 
61
# define __pid_t_defined
 
62
#endif
56
63
 
57
64
/* For XPG all symbols from <sys/stat.h> should also be available.  */
58
65
#if defined __USE_XOPEN || defined __USE_XOPEN2K8
59
 
# include <bits/types.h>         /* For __mode_t and __dev_t.  */
60
66
# define __need_timespec
61
67
# include <time.h>
62
68
# include <bits/stat.h>
200
206
   This function is a cancellation point and therefore not marked with
201
207
   __THROW.  */
202
208
#ifndef __USE_FILE_OFFSET64
203
 
extern int creat (const char *__file, __mode_t __mode) __nonnull ((1));
 
209
extern int creat (const char *__file, mode_t __mode) __nonnull ((1));
204
210
#else
205
211
# ifdef __REDIRECT
206
 
extern int __REDIRECT (creat, (const char *__file, __mode_t __mode),
 
212
extern int __REDIRECT (creat, (const char *__file, mode_t __mode),
207
213
                       creat64) __nonnull ((1));
208
214
# else
209
215
#  define creat creat64
210
216
# endif
211
217
#endif
212
218
#ifdef __USE_LARGEFILE64
213
 
extern int creat64 (const char *__file, __mode_t __mode) __nonnull ((1));
 
219
extern int creat64 (const char *__file, mode_t __mode) __nonnull ((1));
214
220
#endif
215
221
 
216
222
#if !defined F_LOCK && (defined __USE_MISC || (defined __USE_XOPEN_EXTENDED \
229
235
# define F_TEST  3      /* Test a region for other processes locks.  */
230
236
 
231
237
# ifndef __USE_FILE_OFFSET64
232
 
extern int lockf (int __fd, int __cmd, __off_t __len);
 
238
extern int lockf (int __fd, int __cmd, off_t __len);
233
239
# else
234
240
#  ifdef __REDIRECT
235
241
extern int __REDIRECT (lockf, (int __fd, int __cmd, __off64_t __len), lockf64);
238
244
#  endif
239
245
# endif
240
246
# ifdef __USE_LARGEFILE64
241
 
extern int lockf64 (int __fd, int __cmd, __off64_t __len);
 
247
extern int lockf64 (int __fd, int __cmd, off64_t __len);
242
248
# endif
243
249
#endif
244
250
 
246
252
/* Advice the system about the expected behaviour of the application with
247
253
   respect to the file associated with FD.  */
248
254
# ifndef __USE_FILE_OFFSET64
249
 
extern int posix_fadvise (int __fd, __off_t __offset, __off_t __len,
 
255
extern int posix_fadvise (int __fd, off_t __offset, off_t __len,
250
256
                          int __advise) __THROW;
251
257
# else
252
258
 # ifdef __REDIRECT_NTH
258
264
#  endif
259
265
# endif
260
266
# ifdef __USE_LARGEFILE64
261
 
extern int posix_fadvise64 (int __fd, __off64_t __offset, __off64_t __len,
 
267
extern int posix_fadvise64 (int __fd, off64_t __offset, off64_t __len,
262
268
                            int __advise) __THROW;
263
269
# endif
264
270
 
268
274
   This function is a possible cancellation point and therefore not
269
275
   marked with __THROW.  */
270
276
# ifndef __USE_FILE_OFFSET64
271
 
extern int posix_fallocate (int __fd, __off_t __offset, __off_t __len);
 
277
extern int posix_fallocate (int __fd, off_t __offset, off_t __len);
272
278
# else
273
279
 # ifdef __REDIRECT
274
280
extern int __REDIRECT (posix_fallocate, (int __fd, __off64_t __offset,
279
285
#  endif
280
286
# endif
281
287
# ifdef __USE_LARGEFILE64
282
 
extern int posix_fallocate64 (int __fd, __off64_t __offset, __off64_t __len);
 
288
extern int posix_fallocate64 (int __fd, off64_t __offset, off64_t __len);
283
289
# endif
284
290
#endif
285
291