~ubuntu-branches/ubuntu/raring/libvirt/raring

« back to all changes in this revision

Viewing changes to gnulib/lib/binary-io.h

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2012-11-19 10:41:02 UTC
  • mfrom: (1.2.15) (223.1.2 raring-proposed)
  • Revision ID: package-import@ubuntu.com-20121119104102-l6ewdppikysbzztu
Tags: 1.0.0-0ubuntu2
debian/patches/add-armhf-sysinfo-infomration.patch: Disable
to fix FTBFS on arm.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
   so we include it here first.  */
26
26
#include <stdio.h>
27
27
 
 
28
_GL_INLINE_HEADER_BEGIN
 
29
#ifndef BINARY_IO_INLINE
 
30
# define BINARY_IO_INLINE _GL_INLINE
 
31
#endif
 
32
 
28
33
/* set_binary_mode (fd, mode)
29
34
   sets the binary/text I/O mode of file descriptor fd to the given mode
30
35
   (must be O_BINARY or O_TEXT) and returns the previous mode.  */
39
44
# endif
40
45
#else
41
46
  /* On reasonable systems, binary I/O is the only choice.  */
42
 
  /* Use an inline function rather than a macro, to avoid gcc warnings
 
47
  /* Use a function rather than a macro, to avoid gcc warnings
43
48
     "warning: statement with no effect".  */
44
 
static inline int
 
49
BINARY_IO_INLINE int
45
50
set_binary_mode (int fd, int mode)
46
51
{
47
52
  (void) fd;
62
67
# define SET_BINARY(fd) ((void) set_binary_mode (fd, O_BINARY))
63
68
#endif
64
69
 
 
70
_GL_INLINE_HEADER_END
 
71
 
65
72
#endif /* _BINARY_H */