dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetC/include/bits .cvsignore,NONE,1.1 Makef


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetC/include/bits .cvsignore,NONE,1.1 Makefile.am,NONE,1.1 libc-lock.h,NONE,1.1 local_lim.h,NONE,1.1 posix1_lim.h,NONE,1.1 posix2_lim.h,NONE,1.1 stat.h,NONE,1.1 stdio_lim.h,NONE,1.1 types.h,NONE,1.1 waitflags.h,NONE,1.1 waitstatus.h,NONE,1.1 wchar.h,NONE,1.1 wordsize.h,NONE,1.1 xopen_lim.h,NONE,1.1
Date: Sat, 28 Jun 2003 05:53:39 -0400

Update of /cvsroot/dotgnu-pnet/pnetC/include/bits
In directory subversions:/tmp/cvs-serv23212/include/bits

Added Files:
        .cvsignore Makefile.am libc-lock.h local_lim.h posix1_lim.h 
        posix2_lim.h stat.h stdio_lim.h types.h waitflags.h 
        waitstatus.h wchar.h wordsize.h xopen_lim.h 
Log Message:


Port a number of files from glibc's stdio implementation
(most are done except the core printf/scanf routines).


--- NEW FILE ---
Makefile
Makefile.in
.deps

--- NEW FILE ---

libincludedir      = $(libdir)/cscc/include/bits
libinclude_HEADERS = \
        libc-lock.h \
        local_lim.h \
        posix1_lim.h \
        posix2_lim.h \
        stat.h \
        stdio_lim.h \
        types.h \
        waitflags.h \
        waitstatus.h \
        wchar.h \
        wordsize.h \
        xopen_lim.h

--- NEW FILE ---
/* libc-internal interface for mutex locks.  Stub version.
   Copyright (C) 1996,97,99,2000,01 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 Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 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
   Lesser General Public License for more details.

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

#ifndef _BITS_LIBC_LOCK_H
#define _BITS_LIBC_LOCK_H 1


/* Define a lock variable NAME with storage class CLASS.  The lock must be
   initialized with __libc_lock_init before it can be used (or define it
   with __libc_lock_define_initialized, below).  Use `extern' for CLASS to
   declare a lock defined in another module.  In public structure
   definitions you must use a pointer to the lock structure (i.e., NAME
   begins with a `*'), because its storage size will not be known outside
   of libc.  */
#define __libc_lock_define(CLASS,NAME)
#define __libc_lock_define_recursive(CLASS,NAME)
#define __libc_rwlock_define(CLASS,NAME)

/* Define an initialized lock variable NAME with storage class CLASS.  */
#define __libc_lock_define_initialized(CLASS,NAME)
#define __libc_rwlock_define_initialized(CLASS,NAME)

/* Define an initialized recursive lock variable NAME with storage
   class CLASS.  */
#define __libc_lock_define_initialized_recursive(CLASS,NAME)

/* Initialize the named lock variable, leaving it in a consistent, unlocked
   state.  */
#define __libc_lock_init(NAME)
#define __libc_rwlock_init(NAME)

/* Same as last but this time we initialize a recursive mutex.  */
#define __libc_lock_init_recursive(NAME)

/* Finalize the named lock variable, which must be locked.  It cannot be
   used again until __libc_lock_init is called again on it.  This must be
   called on a lock variable before the containing storage is reused.  */
#define __libc_lock_fini(NAME)
#define __libc_rwlock_fini(NAME)

/* Finalize recursive named lock.  */
#define __libc_lock_fini_recursive(NAME)

/* Lock the named lock variable.  */
#define __libc_lock_lock(NAME)
#define __libc_rwlock_rdlock(NAME)
#define __libc_rwlock_wrlock(NAME)

/* Lock the recursive named lock variable.  */
#define __libc_lock_lock_recursive(NAME)

/* Try to lock the named lock variable.  */
#define __libc_lock_trylock(NAME) 0
#define __libc_rwlock_tryrdlock(NAME) 0
#define __libc_rwlock_trywrlock(NAME) 0

/* Try to lock the recursive named lock variable.  */
#define __libc_lock_trylock_recursive(NAME) 0

/* Unlock the named lock variable.  */
#define __libc_lock_unlock(NAME)
#define __libc_rwlock_unlock(NAME)

/* Unlock the recursive named lock variable.  */
#define __libc_lock_unlock_recursive(NAME)


/* Define once control variable.  */
#define __libc_once_define(CLASS, NAME) CLASS int NAME = 0

/* Call handler iff the first call.  */
#define __libc_once(ONCE_CONTROL, INIT_FUNCTION) \
  do {                                                                        \
    if ((ONCE_CONTROL) == 0) {                                                \
      INIT_FUNCTION ();                                                       \
      (ONCE_CONTROL) = 1;                                                     \
    }                                                                         \
  } while (0)


/* Start a critical region with a cleanup function */
#define __libc_cleanup_region_start(DOIT, FCT, ARG)                         \
{                                                                           \
  typeof (***(FCT)) *__save_FCT = (DOIT) ? (FCT) : 0;                       \
  typeof (ARG) __save_ARG = ARG;                                            \
  /* close brace is in __libc_cleanup_region_end below. */

/* End a critical region started with __libc_cleanup_region_start. */
#define __libc_cleanup_region_end(DOIT)                                     \
  if ((DOIT) && __save_FCT != 0)                                            \
    (*__save_FCT)(__save_ARG);                                              \
}

/* Sometimes we have to exit the block in the middle.  */
#define __libc_cleanup_end(DOIT)                                            \
  if ((DOIT) && __save_FCT != 0)                                            \
    (*__save_FCT)(__save_ARG);                                              \


/* We need portable names for some of the functions.  */
#define __libc_mutex_unlock

/* Type for key of thread specific data.  */
typedef int __libc_key_t;

/* Create key for thread specific data.  */
#define __libc_key_create(KEY,DEST) -1

/* Set thread-specific data associated with KEY to VAL.  */
#define __libc_setspecific(KEY,VAL) -1

/* Get thread-specific data associated with KEY.  */
#define __libc_getspecific(KEY) 0

#endif  /* bits/libc-lock.h */

--- NEW FILE ---
/* This file should define the implementation-specific limits described
   in posix[12]_lim.h.  If there are no useful values to give a limit,
   don't define it.  */

--- NEW FILE ---
/* Copyright (C) 1991,92,93,96,98,2000,2001 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 Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 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
   Lesser General Public License for more details.

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

/*
 *      POSIX Standard: 2.9.2 Minimum Values    Added to <limits.h>
 *
 *      Never include this file directly; use <limits.h> instead.
 */

#ifndef _BITS_POSIX1_LIM_H
#define _BITS_POSIX1_LIM_H      1


/* These are the standard-mandated minimum values.  */

/* Minimum number of operations in one list I/O call.  */
#define _POSIX_AIO_LISTIO_MAX   2

/* Minimal number of outstanding asynchronous I/O operations.  */
#define _POSIX_AIO_MAX          1

/* Maximum length of arguments to `execve', including environment.  */
#define _POSIX_ARG_MAX          4096

/* Maximum simultaneous processes per real user ID.  */
#define _POSIX_CHILD_MAX        6

/* Minimal number of timer expiration overruns.  */
#define _POSIX_DELAYTIMER_MAX   32

/* Maximum link count of a file.  */
#define _POSIX_LINK_MAX         8

/* Number of bytes in a terminal canonical input queue.  */
#define _POSIX_MAX_CANON        255

/* Number of bytes for which space will be
   available in a terminal input queue.  */
#define _POSIX_MAX_INPUT        255

/* Maximum number of message queues open for a process.  */
#define _POSIX_MQ_OPEN_MAX      8

/* Maximum number of supported message priorities.  */
#define _POSIX_MQ_PRIO_MAX      32

/* Number of simultaneous supplementary group IDs per process.  */
#define _POSIX_NGROUPS_MAX      0

/* Number of files one process can have open at once.  */
#define _POSIX_OPEN_MAX         16

/* Number of descriptors that a process may examine with `pselect' or
   `select'.  */
#define _POSIX_FD_SETSIZE       _POSIX_OPEN_MAX

/* Number of bytes in a filename.  */
#define _POSIX_NAME_MAX         14

/* Number of bytes in a pathname.  */
#define _POSIX_PATH_MAX         256

/* Number of bytes than can be written atomically to a pipe.  */
#define _POSIX_PIPE_BUF         512

/* Minimal number of realtime signals reserved for the application.  */
#define _POSIX_RTSIG_MAX        8

/* Number of semaphores a process can have.  */
#define _POSIX_SEM_NSEMS_MAX    256

/* Maximal value of a semaphore.  */
#define _POSIX_SEM_VALUE_MAX    32767

/* Number of pending realtime signals.  */
#define _POSIX_SIGQUEUE_MAX     32

/* Largest value of a `ssize_t'.  */
#define _POSIX_SSIZE_MAX        32767

/* Number of streams a process can have open at once.  */
#define _POSIX_STREAM_MAX       8

/* Maximum length of a timezone name (element of `tzname').  */
#define _POSIX_TZNAME_MAX       6

/* Maximum number of connections that can be queued on a socket.  */
#define _POSIX_QLIMIT           1

/* Maximum number of bytes that can be buffered on a socket for send
   or receive.  */
#define _POSIX_HIWAT            _POSIX_PIPE_BUF

/* Maximum number of elements in an `iovec' array.  */
#define _POSIX_UIO_MAXIOV       16

/* Maximum number of characters in a tty name.  */
#define _POSIX_TTY_NAME_MAX     9

/* Number of timer for a process.  */
#define _POSIX_TIMER_MAX        32

/* Maximum length of login name.  */
#define _POSIX_LOGIN_NAME_MAX   9

/* Maximum clock resolution in nanoseconds.  */
#define _POSIX_CLOCKRES_MIN     20000000


/* Get the implementation-specific values for the above.  */
#include <bits/local_lim.h>


#ifndef SSIZE_MAX
# define SSIZE_MAX      INT_MAX
#endif


/* This value is a guaranteed minimum maximum.
   The current maximum can be got from `sysconf'.  */

#ifndef NGROUPS_MAX
# define NGROUPS_MAX    _POSIX_NGROUPS_MAX
#endif

#endif  /* bits/posix1_lim.h  */

--- NEW FILE ---
/* Copyright (C) 1991, 1996, 1999, 2000, 2001 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 Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 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
   Lesser General Public License for more details.

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

/*
 * Never include this file directly; include <limits.h> instead.
 */

#ifndef _BITS_POSIX2_LIM_H
#define _BITS_POSIX2_LIM_H      1


/* The maximum `ibase' and `obase' values allowed by the `bc' utility.  */
#define _POSIX2_BC_BASE_MAX             99

/* The maximum number of elements allowed in an array by the `bc' utility.  */
#define _POSIX2_BC_DIM_MAX              2048

/* The maximum `scale' value allowed by the `bc' utility.  */
#define _POSIX2_BC_SCALE_MAX            99

/* The maximum length of a string constant accepted by the `bc' utility.  */
#define _POSIX2_BC_STRING_MAX           1000

/* The maximum number of weights that can be assigned to an entry of
   the LC_COLLATE `order' keyword in the locale definition file.  */
#define _POSIX2_COLL_WEIGHTS_MAX        2

/* The maximum number of expressions that can be nested
   within parentheses by the `expr' utility.  */
#define _POSIX2_EXPR_NEST_MAX           32

/* The maximum length, in bytes, of an input line.  */
#define _POSIX2_LINE_MAX                2048

/* The maximum number of repeated occurrences of a regular expression
   permitted when using the interval notation `\{M,N\}'.  */
#define _POSIX2_RE_DUP_MAX              255

/* The maximum number of bytes in a character class name.  We have no
   fixed limit, 2048 is a high number.  */
#define _POSIX2_CHARCLASS_NAME_MAX      14


/* These values are implementation-specific,
   and may vary within the implementation.
   Their precise values can be obtained from sysconf.  */

#ifndef BC_BASE_MAX
#define BC_BASE_MAX             _POSIX2_BC_BASE_MAX
#endif
#ifndef BC_DIM_MAX
#define BC_DIM_MAX              _POSIX2_BC_DIM_MAX
#endif
#ifndef BC_SCALE_MAX
#define BC_SCALE_MAX            _POSIX2_BC_SCALE_MAX
#endif
#ifndef BC_STRING_MAX
#define BC_STRING_MAX           _POSIX2_BC_STRING_MAX
#endif
#ifndef COLL_WEIGHTS_MAX
#define COLL_WEIGHTS_MAX        255
#endif
#ifndef EXPR_NEST_MAX
#define EXPR_NEST_MAX           _POSIX2_EXPR_NEST_MAX
#endif
#ifndef LINE_MAX
#define LINE_MAX                _POSIX2_LINE_MAX
#endif
#ifndef CHARCLASS_NAME_MAX
#define CHARCLASS_NAME_MAX      2048
#endif

/* This value is defined like this in regex.h.  */
#define RE_DUP_MAX (0x7fff)

#endif  /* bits/posix2_lim.h */

--- NEW FILE ---
/* Copyright (C) 1992, 1996, 1997, 2000 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 Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 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
   Lesser General Public License for more details.

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

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

/* This structure needs to be defined in accordance with the
   implementation of __stat, __fstat, and __lstat.  */

#include <bits/types.h>

/* Structure describing file characteristics.  */
struct stat
  {
    /* These are the members that POSIX.1 requires.  */

    __mode_t st_mode;           /* File mode.  */
#ifndef __USE_FILE_OFFSET64
    __ino_t st_ino;             /* File serial number.  */
#else
    __ino64_t st_ino;           /* File serial number.  */
#endif
    __dev_t st_dev;             /* Device containing the file.  */
    __nlink_t st_nlink;         /* Link count.  */

    __uid_t st_uid;             /* User ID of the file's owner.  */
    __gid_t st_gid;             /* Group ID of the file's group.  */
#ifndef __USE_FILE_OFFSET64
    __off_t st_size;            /* Size of file, in bytes.  */
#else
    __off64_t st_size;          /* Size of file, in bytes.  */
#endif

    __time_t st_atime;          /* Time of last access.  */
    __time_t st_mtime;          /* Time of last modification.  */
    __time_t st_ctime;          /* Time of last status change.  */

    /* This should be defined if there is a `st_blksize' member.  */
#undef  _STATBUF_ST_BLKSIZE
  };

/* Encoding of the file mode.  These are the standard Unix values,
   but POSIX.1 does not specify what values should be used.  */

#define __S_IFMT        0170000 /* These bits determine file type.  */

/* File types.  */
#define __S_IFDIR       0040000 /* Directory.  */
#define __S_IFCHR       0020000 /* Character device.  */
#define __S_IFBLK       0060000 /* Block device.  */
#define __S_IFREG       0100000 /* Regular file.  */
#define __S_IFIFO       0010000 /* FIFO.  */

/* POSIX.1b objects.  */
#define __S_TYPEISMQ(buf) 0
#define __S_TYPEISSEM(buf) 0
#define __S_TYPEISSHM(buf) 0

/* Protection bits.  */

#define __S_ISUID       04000   /* Set user ID on execution.  */
#define __S_ISGID       02000   /* Set group ID on execution.  */
#define __S_IREAD       0400    /* Read by owner.  */
#define __S_IWRITE      0200    /* Write by owner.  */
#define __S_IEXEC       0100    /* Execute by owner.  */

#ifdef __USE_LARGEFILE64
struct stat64
  {
    __mode_t st_mode;           /* File mode.  */
    __ino64_t st_ino;           /* File serial number.  */
    __dev_t st_dev;             /* Device.  */
    __nlink_t st_nlink;         /* Link count.  */

    __uid_t st_uid;             /* User ID of the file's owner. */
    __gid_t st_gid;             /* Group ID of the file's group.*/
    __off64_t st_size;          /* Size of file, in bytes.  */

    __time_t st_atime;          /* Time of last access.  */
    __time_t st_mtime;          /* Time of last modification.  */
    __time_t st_ctime;          /* Time of last status change.  */
  };
#endif

--- NEW FILE ---
/* Copyright (C) 1994, 1997, 1998, 1999 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.  */

#if !defined _STDIO_H && !defined __need_FOPEN_MAX && !defined __need_IOV_MAX
# error "Never include <bits/stdio_lim.h> directly; use <stdio.h> instead."
#endif

#ifdef _STDIO_H
# define L_tmpnam 20
# define TMP_MAX 238328
# define FILENAME_MAX 4095

# ifdef __USE_POSIX
#  define L_ctermid 9
#  define L_cuserid 9
# endif
#endif

#if defined __need_FOPEN_MAX || defined _STDIO_H
# undef  FOPEN_MAX
# define FOPEN_MAX 16
#endif

#if defined __need_IOV_MAX && !defined IOV_MAX
# define IOV_MAX 1024
#endif

--- NEW FILE ---

#include <sys/types.h>

--- NEW FILE ---
/* Definitions of flag bits for `waitpid' et al.
   Copyright (C) 1992, 1996, 1997, 2000 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 Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 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
   Lesser General Public License for more details.

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

#if !defined _SYS_WAIT_H && !defined _STDLIB_H
# error "Never include <bits/waitflags.h> directly; use <sys/wait.h> instead."
#endif


/* Bits in the third argument to `waitpid'.  */
#define WNOHANG         1       /* Don't block waiting.  */
#define WUNTRACED       2       /* Report status of stopped children.  */

--- NEW FILE ---
/* Definitions of status bits for `wait' et al.
   Copyright (C) 1992, 1994, 1996, 1997, 2000 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 Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 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
   Lesser General Public License for more details.

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

#if !defined _SYS_WAIT_H && !defined _STDLIB_H
# error "Never include <bits/waitstatus.h> directly; use <sys/wait.h> instead."
#endif


/* Everything extant so far uses these same bits.  */


/* If WIFEXITED(STATUS), the low-order 8 bits of the status.  */
#define __WEXITSTATUS(status)   (((status) & 0xff00) >> 8)

/* If WIFSIGNALED(STATUS), the terminating signal.  */
#define __WTERMSIG(status)      ((status) & 0x7f)

/* If WIFSTOPPED(STATUS), the signal that stopped the child.  */
#define __WSTOPSIG(status)      __WEXITSTATUS(status)

/* Nonzero if STATUS indicates normal termination.  */
#define __WIFEXITED(status)     (__WTERMSIG(status) == 0)

/* Nonzero if STATUS indicates termination by a signal.  */
#ifdef  __GNUC__
# define __WIFSIGNALED(status) \
  (__extension__ ({ int __status = (status);                                  \
                    !__WIFSTOPPED(__status) && !__WIFEXITED(__status); }))
#else   /* Not GCC.  */
# define __WIFSIGNALED(status)  (!__WIFSTOPPED(status) && !__WIFEXITED(status))
#endif  /* GCC.  */

/* Nonzero if STATUS indicates the child is stopped.  */
#define __WIFSTOPPED(status)    (((status) & 0xff) == 0x7f)

/* Nonzero if STATUS indicates the child dumped core.  */
#define __WCOREDUMP(status)     ((status) & __WCOREFLAG)

/* Macros for constructing status values.  */
#define __W_EXITCODE(ret, sig)  ((ret) << 8 | (sig))
#define __W_STOPCODE(sig)       ((sig) << 8 | 0x7f)
#define __WCOREFLAG             0x80


#ifdef  __USE_BSD

#ifdef __CSCC__

union wait { int w_status; };

#else

# include <endian.h>

union wait
  {
    int w_status;
    struct
      {
# if    __BYTE_ORDER == __LITTLE_ENDIAN
        unsigned int __w_termsig:7; /* Terminating signal.  */
        unsigned int __w_coredump:1; /* Set if dumped core.  */
        unsigned int __w_retcode:8; /* Return code if exited normally.  */
        unsigned int:16;
# endif                         /* Little endian.  */
# if    __BYTE_ORDER == __BIG_ENDIAN
        unsigned int:16;
        unsigned int __w_retcode:8;
        unsigned int __w_coredump:1;
        unsigned int __w_termsig:7;
# endif                         /* Big endian.  */
      } __wait_terminated;
    struct
      {
# if    __BYTE_ORDER == __LITTLE_ENDIAN
        unsigned int __w_stopval:8; /* W_STOPPED if stopped.  */
        unsigned int __w_stopsig:8; /* Stopping signal.  */
        unsigned int:16;
# endif                         /* Little endian.  */
# if    __BYTE_ORDER == __BIG_ENDIAN
        unsigned int:16;
        unsigned int __w_stopsig:8; /* Stopping signal.  */
        unsigned int __w_stopval:8; /* W_STOPPED if stopped.  */
# endif                         /* Big endian.  */
      } __wait_stopped;
  };

# define w_termsig      __wait_terminated.__w_termsig
# define w_coredump     __wait_terminated.__w_coredump
# define w_retcode      __wait_terminated.__w_retcode
# define w_stopsig      __wait_stopped.__w_stopsig
# define w_stopval      __wait_stopped.__w_stopval

#endif  /* !__CSCC__ */

#endif  /* Use BSD.  */

--- NEW FILE ---
#ifndef _BITS_WCHAR_H
#define _BITS_WCHAR_H   1

#define __WCHAR_MIN     (0)
#define __WCHAR_MAX     (65535)

#endif  /* bits/wchar.h */

--- NEW FILE ---

/* __WORDSIZE is defined by the cscc pre-processor */

--- NEW FILE ---
/* Copyright (C) 1996, 1997, 1999, 2001 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 Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 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
   Lesser General Public License for more details.

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

/*
 * Never include this file directly; use <limits.h> instead.
 */

/* Additional definitions from X/Open Portability Guide, Issue 4, Version 2
   System Interfaces and Headers, 4.16 <limits.h>

   Please note only the values which are not greater than the minimum
   stated in the standard document are listed.  The `sysconf' functions
   should be used to obtain the actual value.  */

#ifndef _XOPEN_LIM_H
#define _XOPEN_LIM_H    1

#define __need_IOV_MAX
#include <bits/stdio_lim.h>

/* We do not provide fixed values for

   ARG_MAX      Maximum length of argument to the `exec' function
                including environment data.

   ATEXIT_MAX   Maximum number of functions that may be registered
                with `atexit'.

   CHILD_MAX    Maximum number of simultaneous processes per real
                user ID.

   OPEN_MAX     Maximum number of files that one process can have open
                at anyone time.

   PAGESIZE
   PAGE_SIZE    Size of bytes of a page.

   PASS_MAX     Maximum number of significant bytes in a password.

   We only provide a fixed limit for

   IOV_MAX      Maximum number of `iovec' structures that one process has
                available for use with `readv' or writev'.

   if this is indeed fixed by the underlying system.
*/


/* Maximum number of `iovec' structures that one process has available
   for use with `readv' or writev'.  */
#define _XOPEN_IOV_MAX  _POSIX_UIO_MAXIOV


/* Maximum value of `digit' in calls to the `printf' and `scanf'
   functions.  We have no limit, so return a reasonable value.  */
#define NL_ARGMAX       _POSIX_ARG_MAX

/* Maximum number of bytes in a `LANG' name.  We have no limit.  */
#define NL_LANGMAX      _POSIX2_LINE_MAX

/* Maximum message number.  We have no limit.  */
#define NL_MSGMAX       INT_MAX

/* Maximum number of bytes in N-to-1 collation mapping.  We have no
   limit.  */
#define NL_NMAX         INT_MAX

/* Maximum set number.  We have no limit.  */
#define NL_SETMAX       INT_MAX

/* Maximum number of bytes in a message.  We have no limit.  */
#define NL_TEXTMAX      INT_MAX

/* Default process priority.  */
#define NZERO           20


/* Number of bits in a word of type `int'.  */
#ifdef INT_MAX
# if INT_MAX == 32767
#  define WORD_BIT      16
# else
#  if INT_MAX == 2147483647
#   define WORD_BIT     32
#  else
/* Safe assumption.  */
#   define WORD_BIT     64
#  endif
# endif
#elif defined __INT_MAX__
# if __INT_MAX__ == 32767
#  define WORD_BIT      16
# else
#  if __INT_MAX__ == 2147483647
#   define WORD_BIT     32
#  else
/* Safe assumption.  */
#   define WORD_BIT     64
#  endif
# endif
#else
# define WORD_BIT       32
#endif

/* Number of bits in a word of type `long int'.  */
#ifdef LONG_MAX
# if LONG_MAX == 2147483647
#  define LONG_BIT      32
# else
/* Safe assumption.  */
#  define LONG_BIT      64
# endif
#elif defined __LONG_MAX__
# if __LONG_MAX__ == 2147483647
#  define LONG_BIT      32
# else
/* Safe assumption.  */
#  define LONG_BIT      64
# endif
#else
# include <bits/wordsize.h>
# if __WORDSIZE == 64
#  define LONG_BIT      64
# else
#  define LONG_BIT      32
# endif
#endif

#endif /* bits/xopen_lim.h */





reply via email to

[Prev in Thread] Current Thread [Next in Thread]