summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/arm/bits/select.h
blob: 4513135af915e24c8dc95e69521c0b84fa665a24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
   This file is part of the GNU C Library.

   The GNU C Library is free software; you can redistribute it and/or
   modify it under the terms of the GNU Library General Public License as
   published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version.

   The GNU C Library is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   Library General Public License for more details.

   You should have received a copy of the GNU Library General Public
   License along with the GNU C Library; see the file COPYING.LIB.  If not,
   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
   Boston, MA 02111-1307, USA.  */

#ifndef _SYS_SELECT_H
# error "Never use <bits/select.h> directly; include <sys/select.h> instead."
#endif


/* We don't use `memset' because this would require a prototype and
   the array isn't too big.  */
#define __FD_ZERO(s) \
  do {									      \
    unsigned int __i;							      \
    __fd_set *__arr = (s);						      \
    for (__i = 0; __i < sizeof (__fd_set) / sizeof (__fd_mask); ++__i)	      \
      __FDS_BITS (__arr)[__i] = 0;					      \
  } while (0)
#define __FD_SET(d, s)     (__FDS_BITS (s)[__FDELT(d)] |= __FDMASK(d))
#define __FD_CLR(d, s)     (__FDS_BITS (s)[__FDELT(d)] &= ~__FDMASK(d))
#define __FD_ISSET(d, s)   ((__FDS_BITS (s)[__FDELT(d)] & __FDMASK(d)) != 0)
id=125773133f0fe2425ab3d8305ed880e9010f6803'>Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's. 2006-01-22Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger is a useless attempt 2006-01-15Correct old_vfprintf internal version and make it reloc freePeter S. Mazinger 2006-01-14hidden_def/hidden_proto: convert all users (I hope) termios split, add some ↵Peter S. Mazinger missing headers, other jump relocs removed 2005-12-16Get rid of warnings, use internals, create new hidden versionsPeter S. Mazinger 2005-12-09Implement all needed hidden *printf and correct vasprintf, thx blindvtPeter S. Mazinger 2005-12-08Use internal \*_strerror_rPeter S. Mazinger 2005-12-03_uintmaxtostr is only internally used, we do not need a rename, ↵Peter S. Mazinger uClibc_uintmaxtostr.h is only internal header, remove from target 2005-12-01Hide mostly used functionsPeter S. Mazinger 2005-11-27Hide some of mem* and str*Peter S. Mazinger 2005-11-26100 JUMP relocs less (remaining 431) by hiding internally used onesPeter S. Mazinger 2005-11-15Hide more of stdio,getdents, use internal __raisePeter S. Mazinger 2005-07-28Fix string.h. Change our _susv3_strerror_r to __xpg_strerror_r for glibcManuel Novoa III compatibility. Also change _glibc_strerror_r to __glibc_strerror_r for consistency. 2004-02-11New stdio core. Should be more maintainable. Fixes a couple of bugs.Manuel Novoa III Codepaths streamlined. Improved performance for nonthreaded apps when linked with a thread-enabled libc. Minor iconv bug and some locale/thread related startup issues fixed. These showed up in getting a gcj-compiled java helloworld app running. Removed some old extension functions... _stdio_fdout and _stdio_fsfopen. 2003-09-06Implement vsnprintf (old_vfprintf only) and vsnscanf when uClibc isManuel Novoa III configured with non-buffered stdio and non-wchar mode. Fix a couple of bugs that showed up in minimalist configurations. Update old_vfprintf to handle size qualifiers on the integer and %n conversions. It now passed the glibc printf tests with the exception of a floating point rounding difference. 2003-09-05Oops... Forgot to convert this to the new floating point conversion func.Manuel Novoa III 2003-08-01Add a new *scanf implementation, includeing the *wscanf functions.Manuel Novoa III Should be standards compliant and with several optional features, including support for hexadecimal float notation, locale awareness, glibc-like locale-specific digit grouping with the `'' flag, and positional arg support. I tested it pretty well (finding several bugs in glibc's scanf in the process), but it is brand new so be aware. The *wprintf functions now support floating point output. Also, a couple of bugs were squashed. Finally, %a/%A conversions are now implemented. Implement the glibc xlocale interface for thread-specific locale support. Also add the various *_l(args, locale_t loc_arg) funcs. NOTE!!! setlocale() is NOT threadsafe! NOTE!!! The strto{floating point} conversion functions are now locale aware. The also now support hexadecimal floating point notation. Add the wcsto{floating point} conversion functions. Fix a bug in mktime() related to dst. Note that unlike glibc's mktime, uClibc's version always normalizes the struct tm before attempting to determine the correct dst setting if tm_isdst == -1 on entry. Add a stub version of the libintl functions. (untested) Fixed a known memory leak in setlocale() related to the collation data. Add lots of new config options (which Erik agreed to sort out :-), including finally exposing some of the stripped down stdio configs. Be careful with those though, as they haven't been tested in a long time. (temporary) GOTCHAs... The ctype functions are currently incorrect for 8-bit locales. They will be fixed shortly. The ctype functions are now table-based, resulting in larger staticly linked binaries. I'll be adding an option to use the old approach in the stub locale configuration. 2003-07-14Yikes! This was doing another lock instead of unlocking the stream.Manuel Novoa III 2002-07-07Attempt to clean up the strerror_r situation.Manuel Novoa III 2002-07-03Enable WCHAR support for C/POSIX stub locales.Manuel Novoa III Implemented unformatted wide i/o functions. (ungetwc still needs testing) Fix a few bugs in wchar.c. Modifications for bcc/elks support. 2002-06-18Fix perror() and printf("%m") to not call strerror(), as required by theManuel Novoa III standards. Temporarily added a utility function to wrap Erik's strerror_r so that "Unknown error xxx" strings can be generated for errno's which cause strerror_r to fail. That utility function will eventually be merged in with the strerror/strerror_r functions when I change over to optionallly mmap'ing the system error strings to provide for lower mem comsumption on non-MMU platforms, as well as locale-specific system error messages. 2002-05-11Adjust preprocessor logic to initialize QUAL_CHARS correctly for Erik's alphaManuel Novoa III port. Also, explicitly use the macro versions of isdigit and isspace in the printf and scanf code. 2002-03-12Swap in the new stdio code.Manuel Novoa III