~vorlon/ubuntu/natty/eglibc/multiarch

« back to all changes in this revision

Viewing changes to sysdeps/x86_64/bits/select.h

  • Committer: Steve Langasek
  • Date: 2011-02-18 21:18:44 UTC
  • mfrom: (103.1.7 eglibc)
  • Revision ID: steve.langasek@linaro.org-20110218211844-lodmi8b1qhyq3f3x
Tags: 2.13~pre1-0ubuntu1+multiarch.1
merge from natty

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1997,1998,1999,2001,2008,2009 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1997-1999,2001,2008,2009,2011 Free Software Foundation, Inc.
2
2
   This file is part of the GNU C Library.
3
3
 
4
4
   The GNU C Library is free software; you can redistribute it and/or
56
56
 
57
57
#endif  /* GNU CC */
58
58
 
59
 
#define __FD_SET(d, set)    (__FDS_BITS (set)[__FDELT (d)] |= __FDMASK (d))
60
 
#define __FD_CLR(d, set)    (__FDS_BITS (set)[__FDELT (d)] &= ~__FDMASK (d))
 
59
#define __FD_SET(d, set) \
 
60
  ((void) (__FDS_BITS (set)[__FDELT (d)] |= __FDMASK (d)))
 
61
#define __FD_CLR(d, set) \
 
62
  ((void) (__FDS_BITS (set)[__FDELT (d)] &= ~__FDMASK (d)))
61
63
#define __FD_ISSET(d, set) \
62
64
  ((__FDS_BITS (set)[__FDELT (d)] & __FDMASK (d)) != 0)