genericopenlibs/cstdlib/LINCSYS/TYPES1.H
changeset 0 e4d67989cc36
equal deleted inserted replaced
-1:000000000000 0:e4d67989cc36
       
     1 /*
       
     2 * Copyright (c) 1997-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file
       
    22  @internalAll
       
    23  @released
       
    24 */
       
    25 
       
    26 #ifndef _SYS_TYPES1_H
       
    27 #define _SYS_TYPES1_H
       
    28 
       
    29 /**
       
    30 @internalAll
       
    31 */
       
    32 #  define	FD_SET(n, p)	((p)->fds_bits[(n)/NFDBITS] |= (1L << ((n) % NFDBITS)))
       
    33 /**
       
    34 @internalAll
       
    35 */
       
    36 #  define	FD_CLR(n, p)	((p)->fds_bits[(n)/NFDBITS] &= ~(1L << ((n) % NFDBITS)))
       
    37 /**
       
    38 @internalAll
       
    39 */
       
    40 #  define	FD_ISSET(n, p)	((p)->fds_bits[(n)/NFDBITS] & (1L << ((n) % NFDBITS)))
       
    41 /**
       
    42 @internalAll
       
    43 */
       
    44 #  define	FD_ZERO(p)	memset((caddr_t)(p), 0, sizeof (*(p)))
       
    45 
       
    46 
       
    47 #undef __go32_types__
       
    48 #endif	/* _SYS_TYPES1_H */