~ubuntu-branches/ubuntu/precise/eglibc/precise

« back to all changes in this revision

Viewing changes to sysdeps/unix/sysv/linux/sparc/bits/fcntl.h

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2011-10-04 17:48:26 UTC
  • mfrom: (216.1.23 oneiric)
  • Revision ID: package-import@ubuntu.com-20111004174826-2cyb9ewn3ucymlsx
Tags: 2.13-20ubuntu5
libc6-dev: Don't break the current {gnat,gcj}-4.4-base versons. LP: #853688.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* O_*, F_*, FD_* bit values for Linux/SPARC.
2
 
   Copyright (C) 1995-1998, 2000, 2003, 2004, 2006, 2007, 2009, 2010, 2011
 
2
   Copyright (C) 1995-1998, 2000, 2003, 2004, 2006, 2007, 2009, 2010
3
3
   Free Software Foundation, Inc.
4
4
   This file is part of the GNU C Library.
5
5
 
52
52
#ifdef __USE_GNU
53
53
# define O_DIRECT       0x100000 /* direct disk access hint */
54
54
# define O_NOATIME      0x200000 /* Do not set atime.  */
55
 
# define O_PATH         0x1000000 /* Resolve pathname but do not open file.  */
56
55
#endif
57
56
 
58
57
#ifdef __USE_LARGEFILE64
244
243
                                           we splice from/to).  */
245
244
# define SPLICE_F_MORE          4       /* Expect more data.  */
246
245
# define SPLICE_F_GIFT          8       /* Pages passed in are a gift.  */
247
 
 
248
 
 
249
 
/* File handle structure.  */
250
 
struct file_handle
251
 
{
252
 
  unsigned int handle_bytes;
253
 
  int handle_type;
254
 
  /* File identifier.  */
255
 
  unsigned char f_handle[0];
256
 
};
257
 
 
258
 
/* Maximum handle size (for now).  */
259
 
# define MAX_HANDLE_SZ  128
260
246
#endif
261
247
 
262
248
__BEGIN_DECLS
268
254
    __THROW;
269
255
 
270
256
 
271
 
/* Selective file content synch'ing.
272
 
 
273
 
   This function is a possible cancellation point and therefore not
274
 
   marked with __THROW.  */
 
257
/* Selective file content synch'ing.  */
275
258
extern int sync_file_range (int __fd, __off64_t __offset, __off64_t __count,
276
259
                            unsigned int __flags);
277
260
 
280
263
extern ssize_t vmsplice (int __fdout, const struct iovec *__iov,
281
264
                         size_t __count, unsigned int __flags);
282
265
 
283
 
/* Splice two files together.
284
 
 
285
 
   This function is a possible cancellation point and therefore not
286
 
   marked with __THROW.  */
 
266
/* Splice two files together.  */
287
267
extern ssize_t splice (int __fdin, __off64_t *__offin, int __fdout,
288
268
                       __off64_t *__offout, size_t __len,
289
269
                       unsigned int __flags);
290
270
 
291
 
/* In-kernel implementation of tee for pipe buffers.
292
 
 
293
 
   This function is a possible cancellation point and therefore not
294
 
   marked with __THROW.  */
 
271
/* In-kernel implementation of tee for pipe buffers.  */
295
272
extern ssize_t tee (int __fdin, int __fdout, size_t __len,
296
273
                    unsigned int __flags);
297
274
 
298
 
/* Reserve storage for the data of the file associated with FD.
299
 
 
300
 
   This function is a possible cancellation point and therefore not
301
 
   marked with __THROW.  */
 
275
/* Reserve storage for the data of the file associated with FD.  */
302
276
# ifndef __USE_FILE_OFFSET64
303
277
extern int fallocate (int __fd, int __mode, __off_t __offset, __off_t __len);
304
278
# else
315
289
                        __off64_t __len);
316
290
# endif
317
291
 
318
 
 
319
 
/* Map file name to file handle.  */
320
 
extern int name_to_handle_at (int __dfd, const char *__name,
321
 
                              struct file_handle *__handle, int *__mnt_id,
322
 
                              int __flags) __THROW;
323
 
 
324
 
/* Open file using the file handle.
325
 
 
326
 
   This function is a possible cancellation point and therefore not
327
 
   marked with __THROW.  */
328
 
extern int open_by_handle_at (int __mountdirfd, struct file_handle *__handle,
329
 
                              int __flags);
330
 
 
331
292
#endif
332
293
 
333
294
__END_DECLS