Changeset 1506


Ignore:
Timestamp:
Sep 15, 2004, 12:27:38 AM (21 years ago)
Author:
bird
Message:

@unixroot. header reviews. ++

Location:
trunk/src/emx
Files:
5 deleted
112 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/386/setjmp.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* $Id$ */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: adjusted for LIBC runtime.
     5 */
     6
    17/*-
    28 * Copyright (c) 1998 John Birrell <jb@cimlogic.com.au>.
     
    3339 */
    3440
    35 /** @file
    36  * FreeBSD 5.1
    37  * @changed bird: adjusted for LIBC runtime.
    38  */
    39 
    4041#ifndef _MACHINE_SETJMP_H_
    4142#define _MACHINE_SETJMP_H_
  • trunk/src/emx/include/386/stdarg.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1505 r1506  
     1/* $Id$ */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: EMXisms.
     5 */
    16/*-
    27 * Copyright (c) 2002 David E. O'Brien.  All rights reserved.
     
    3439 *      @(#)stdarg.h    8.1 (Berkeley) 6/10/93
    3540 * $FreeBSD: src/sys/i386/include/stdarg.h,v 1.18 2002/11/27 16:28:18 obrien Exp $
    36  */
    37 
    38 /** @file
    39  * FreeBSD 5.1
    40  * @changed bird: EMXisms.
    4141 */
    4242
  • trunk/src/emx/include/a_out.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1505 r1506  
    1 /* a_out.h -- changed for emx by Eberhard Mattes -- Sep 1998 */
     1/* a_out.h,v 1.5 2004/09/14 22:27:31 bird Exp */
     2/** @file
     3 * GNU
     4 * @changed For emx by Eberhard Mattes -- Sep 1998
     5 */
    26
    37#ifndef __A_OUT_GNU_H__
  • trunk/src/emx/include/a_out_stab.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* a_out_stab.h,v 1.2 2004/09/14 22:27:31 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* Table of DBX symbol codes for the GNU system.
    27   Copyright 1988, 1991, 1992, 1993, 1994, 1996, 1998
  • trunk/src/emx/include/alloca.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* alloca.h (emx+gcc) */
     1/* alloca.h,v 1.2 2004/09/14 22:27:31 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36#ifndef _ALLOCA_H
    47#define _ALLOCA_H
     8
     9#include <sys/cdefs.h>
     10#include <stddef.h>
     11
     12#undef alloca
     13
     14__BEGIN_DECLS
     15void *alloca(size_t);
     16__END_DECLS
    517
    618#if !defined (alloca)
  • trunk/src/emx/include/ansidecl.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* ansidecl.h,v 1.2 2004/09/14 22:27:31 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* ANSI and traditional C compatability macros
    27   Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
     
    158163#define VA_CLOSE(AP)            } va_end(AP); }
    159164#define VA_FIXEDARG(AP, T, N)   struct Qdmy
    160  
     165
    161166#undef const
    162167#undef volatile
  • trunk/src/emx/include/ar.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* ar.h (emx+gcc) */
     1/* ar.h,v 1.2 2004/09/14 22:27:31 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 */
    25
    3 #ifndef _AR_H
    4 #define _AR_H
     6/*-
     7 * Copyright (c) 1991, 1993
     8 *      The Regents of the University of California.  All rights reserved.
     9 * (c) UNIX System Laboratories, Inc.
     10 * All or some portions of this file are derived from material licensed
     11 * to the University of California by American Telephone and Telegraph
     12 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
     13 * the permission of UNIX System Laboratories, Inc.
     14 *
     15 * This code is derived from software contributed to Berkeley by
     16 * Hugh Smith at The University of Guelph.
     17 *
     18 * Redistribution and use in source and binary forms, with or without
     19 * modification, are permitted provided that the following conditions
     20 * are met:
     21 * 1. Redistributions of source code must retain the above copyright
     22 *    notice, this list of conditions and the following disclaimer.
     23 * 2. Redistributions in binary form must reproduce the above copyright
     24 *    notice, this list of conditions and the following disclaimer in the
     25 *    documentation and/or other materials provided with the distribution.
     26 * 3. All advertising materials mentioning features or use of this software
     27 *    must display the following acknowledgement:
     28 *      This product includes software developed by the University of
     29 *      California, Berkeley and its contributors.
     30 * 4. Neither the name of the University nor the names of its contributors
     31 *    may be used to endorse or promote products derived from this software
     32 *    without specific prior written permission.
     33 *
     34 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     35 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     36 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     37 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     38 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     39 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     40 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     41 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     42 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     43 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     44 * SUCH DAMAGE.
     45 *
     46 *      @(#)ar.h        8.2 (Berkeley) 1/21/94
     47 */
    548
    6 #define ARMAG  "!<arch>\n"
    7 #define SARMAG 8
    8 #define ARFMAG "`\n"
     49#ifndef _AR_H_
     50#define _AR_H_
    951
    10 struct ar_hdr
    11 {
    12   char ar_name[16];
    13   char ar_date[12];
    14   char ar_uid[6];
    15   char ar_gid[6];
    16   char ar_mode[8];
    17   char ar_size[10];
    18   char ar_fmag[2];
     52/* Pre-4BSD archives had these magic numbers in them. */
     53#define OARMAG1 0177555
     54#define OARMAG2 0177545
     55
     56#define ARMAG           "!<arch>\n"     /* ar "magic number" */
     57#define SARMAG          8               /* strlen(ARMAG); */
     58
     59#define AR_EFMT1        "#1/"           /* extended format #1 */
     60
     61struct ar_hdr {
     62        char ar_name[16];               /* name */
     63        char ar_date[12];               /* modification time */
     64        char ar_uid[6];                 /* user id */
     65        char ar_gid[6];                 /* group id */
     66        char ar_mode[8];                /* octal file permissions */
     67        char ar_size[10];               /* size in bytes */
     68#define ARFMAG  "`\n"
     69        char ar_fmag[2];                /* consistency check */
    1970};
    2071
    21 #endif /* not _AR_H */
     72#endif /* !_AR_H_ */
  • trunk/src/emx/include/argz.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* argz.h,v 1.3 2004/09/14 22:27:31 bird Exp */
     2/** @file
     3 * GLIBC v2.3.2
     4 */
     5
    16/* Routines for dealing with '\0' separated arg vectors.
    27   Copyright (C) 1995, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
     
    1823   02111-1307 USA.  */
    1924
    20 /** @file
    21  * GLIBC v2.3.2
    22  */
    2325
    2426#ifndef _ARGZ_H
  • trunk/src/emx/include/assert.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* assert.h (emx+gcc) */
     1/* assert.h,v 1.2 2004/09/14 22:27:31 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36#if defined (__cplusplus)
  • trunk/src/emx/include/conio.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* conio.h (emx+gcc) */
     1/* conio.h,v 1.2 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36#ifndef _CONIO_H
  • trunk/src/emx/include/curses.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* curses.h,v 1.2 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * BSD
     4 * @see bsd/curses.h
     5 */
     6
    17#include <bsd/curses.h>
  • trunk/src/emx/include/db.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1505 r1506  
     1/* db.h,v 1.5 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 */
     5
    16/*-
    27 * Copyright (c) 1990, 1993, 1994
     
    3540 */
    3641
    37 /** @file
    38  * FreeBSD 5.1
    39  */
    40 
    4142#ifndef _DB_H_
    4243#define _DB_H_
  • trunk/src/emx/include/demangle.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* demangle.h,v 1.2 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* Defs for interface to demanglers.
    27   Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 2000, 2001
    38   Free Software Foundation, Inc.
    4    
     9
    510   This program is free software; you can redistribute it and/or modify
    611   it under the terms of the GNU General Public License as published by
     
    120125set_cplus_marker_for_demangling PARAMS ((int ch));
    121126
    122 extern enum demangling_styles 
     127extern enum demangling_styles
    123128cplus_demangle_set_style PARAMS ((enum demangling_styles style));
    124129
    125 extern enum demangling_styles 
     130extern enum demangling_styles
    126131cplus_demangle_name_to_style PARAMS ((const char *name));
    127132
  • trunk/src/emx/include/dirent.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1505 r1506  
     1/* dirent.h,v 1.4 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changes bird: Merged in EMX stuff and internal LIBC stuff.
     5 */
     6
    17/*-
    28 * Copyright (c) 1989, 1993
     
    3339 *      @(#)dirent.h    8.2 (Berkeley) 7/28/94
    3440 * $FreeBSD: src/include/dirent.h,v 1.13 2002/09/10 18:12:16 mike Exp $
    35  */
    36 
    37 /** @file
    38  * FreeBSD 5.1
    39  * @changes bird: Merged in EMX stuff and internal LIBC stuff.
    4041 */
    4142
  • trunk/src/emx/include/dyn-string.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* dyn-string.h,v 1.2 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* An abstract string datatype.
    27   Copyright (C) 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
     
    49
    510This file is part of GCC.
    6    
     11
    712GCC is free software; you can redistribute it and/or modify
    813it under the terms of the GNU General Public License as published by
     
    8893extern int dyn_string_append_cstr       PARAMS ((dyn_string_t, const char *));
    8994extern int dyn_string_append_char       PARAMS ((dyn_string_t, int));
    90 extern int dyn_string_substring         PARAMS ((dyn_string_t, 
     95extern int dyn_string_substring         PARAMS ((dyn_string_t,
    9196                                                 dyn_string_t, int, int));
    9297extern int dyn_string_eq                PARAMS ((dyn_string_t, dyn_string_t));
  • trunk/src/emx/include/err.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* err.h,v 1.2 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 */
     5
    16/*-
    27 * Copyright (c) 1993
     
    3540 */
    3641
    37 /** @file
    38  * FreeBSD 5.1
    39  */
    40 
    4142#ifndef _ERR_H_
    4243#define _ERR_H_
  • trunk/src/emx/include/errno.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* errno.h (emx+gcc) */
     1/* errno.h,v 1.2 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @see sys/errno.h
     5 */
    26
    37#ifndef _ERRNO_H
  • trunk/src/emx/include/error.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* error.h,v 1.3 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * GLIBC v2.3.2
     4 */
     5
    16/* Declaration for error-reporting function
    27   Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
     
    1823   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    1924   02111-1307 USA.  */
    20 
    21 /** @file
    22  * GLIBC v2.3.2
    23  */
    2425
    2526#ifndef _ERROR_H
  • trunk/src/emx/include/fcntl.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* fcntl.h (emx+gcc) */
     1/* fcntl.h,v 1.2 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * EMX
     4 * @see sys/fcntl.h
     5 */
     6
    27
    38#ifndef _FCNTL_H
  • trunk/src/emx/include/features.h

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r1505 r1506  
    1 /* Copyright (C) 1991-1993,1995-2000,2001,2002 Free Software Foundation, Inc.
    2    This file is part of the GNU C Library.
    3 
    4    The GNU C Library is free software; you can redistribute it and/or
    5    modify it under the terms of the GNU Lesser General Public
    6    License as published by the Free Software Foundation; either
    7    version 2.1 of the License, or (at your option) any later version.
    8 
    9    The GNU C Library is distributed in the hope that it will be useful,
    10    but WITHOUT ANY WARRANTY; without even the implied warranty of
    11    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    12    Lesser General Public License for more details.
    13 
    14    You should have received a copy of the GNU Lesser General Public
    15    License along with the GNU C Library; if not, write to the Free
    16    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    17    02111-1307 USA.  */
    18 
     1/* features.h,v 1.8 2004/09/14 22:27:32 bird Exp */
    192/** @file
    203 * GLIBC v2.3.2
     
    2912 *                from bitching.
    3013 */
     14
     15/* Copyright (C) 1991-1993,1995-2000,2001,2002 Free Software Foundation, Inc.
     16   This file is part of the GNU C Library.
     17
     18   The GNU C Library is free software; you can redistribute it and/or
     19   modify it under the terms of the GNU Lesser General Public
     20   License as published by the Free Software Foundation; either
     21   version 2.1 of the License, or (at your option) any later version.
     22
     23   The GNU C Library is distributed in the hope that it will be useful,
     24   but WITHOUT ANY WARRANTY; without even the implied warranty of
     25   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
     26   Lesser General Public License for more details.
     27
     28   You should have received a copy of the GNU Lesser General Public
     29   License along with the GNU C Library; if not, write to the Free
     30   Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
     31   02111-1307 USA.  */
    3132
    3233#ifndef _FEATURES_H
  • trunk/src/emx/include/fibheap.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* fibheap.h,v 1.2 2004/09/14 22:27:32 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* A Fibonacci heap datatype.
    27   Copyright 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
     
    49
    510This file is part of GCC.
    6    
     11
    712GCC is free software; you can redistribute it and/or modify it
    813under the terms of the GNU General Public License as published by
     
    3439
    3540   ExtractMin: O(lg n) amortized. O(n) worst case.
    36    DecreaseKey: O(1) amortized.  O(lg n) worst case. 
    37    Insert: O(2) amortized. O(1) actual. 
     41   DecreaseKey: O(1) amortized.  O(lg n) worst case.
     42   Insert: O(2) amortized. O(1) actual.
    3843   Union: O(1) amortized. O(1) actual.  */
    3944
  • trunk/src/emx/include/float.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1505 r1506  
    1 /* float.h (emx+gcc)
    2  * (bird: this file must be used over the one from GCC!)
     1/* float.h,v 1.5 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * EMX + GCC
     4 *
     5 * @remark Must be used instead of the GCC one.
    36 */
    47
     
    69#define _FLOAT_H
    710
    8 #if defined (__cplusplus)
    9 extern "C" {
    10 #endif
     11#include <sys/cdefs.h>
     12
    1113
    1214#define FLT_RADIX       2               /* b */
     
    117119#define SW_STACKOVERFLOW        0x0200
    118120
     121__BEGIN_DECLS
    119122unsigned _clear87 (void);
    120123unsigned _control87 (unsigned, unsigned);
    121124void _fpreset (void);
    122125unsigned _status87 (void);
     126__END_DECLS
    123127
    124128#endif /* !defined (_OMIT_387_STUFF) */
    125129#endif
    126130
    127 
    128 #if defined (__cplusplus)
    129 }
    130 #endif
    131 
    132131#endif /* not _FLOAT_H */
  • trunk/src/emx/include/floatformat.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* floatformat.h,v 1.2 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* IEEE floating point support declarations, for GDB, the GNU Debugger.
    27   Copyright 1991, 1994, 1995, 1997, 2000 Free Software Foundation, Inc.
  • trunk/src/emx/include/fnmatch.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* fnmatch.h,v 1.3 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 * @todo    Update the fnmatch code in LIBC to match this file.
     5 */
     6
    17/* Copyright 1991, 1992, 1993, 1996 Free Software Foundation, Inc.
    28
  • trunk/src/emx/include/ftw.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* ftw.h (emx+gcc) */
     1/* $Id: */
     2/** @file
     3 * EMX
     4 */
    25
    36#ifndef _FTW_H
  • trunk/src/emx/include/getopt.h

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1505 r1506  
     1/* getopt.h,v 1.6 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: Added two GNU apis for libiberty.
     5 */
     6
    17/*      $NetBSD: getopt.h,v 1.4 2000/07/07 10:43:54 ad Exp $    */
    28/*      $FreeBSD: src/include/getopt.h,v 1.1 2002/09/29 04:14:30 eric Exp $ */
     
    3844 */
    3945
    40 /** @file
    41  * FreeBSD 5.1
    42  * @changed bird: Added two GNU apis for libiberty.
    43  */
    4446
    4547#ifndef _GETOPT_H_
  • trunk/src/emx/include/glob.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* glob.h,v 1.3 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 */
     5
    16/*
    27 * Copyright (c) 1989, 1993
     
    3641 *      @(#)glob.h      8.1 (Berkeley) 6/2/93
    3742 * $FreeBSD: src/include/glob.h,v 1.7 2002/07/17 04:58:09 mikeh Exp $
    38  */
    39 
    40 /** @file
    41  * FreeBSD 5.1
    4243 */
    4344
  • trunk/src/emx/include/gmon.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* gmon.h,v 1.2 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * BSD
     4 */
    15/*-
    26 * Copyright (c) 1991 The Regents of the University of California.
     
    7074     *          calls   $0,(r0)
    7175     *
    72      *  which is separated by only three bytes, thus HASHFRACTION is 
     76     *  which is separated by only three bytes, thus HASHFRACTION is
    7377     *  calculated as:
    7478     *
  • trunk/src/emx/include/gnu/termcap.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* $Id: $ */
     2/** @file
     3 * GNU.
     4 */
    15/* Declarations for termcap library.
    26   Copyright (C) 1991, 1992 Free Software Foundation, Inc.
  • trunk/src/emx/include/grp.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
    1 /* grp.h (emx+gcc) */
     1/* grp.h,v 1.3 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 * @changed bird: path
     5 */
     6
     7/*-
     8 * Copyright (c) 1989, 1993
     9 *      The Regents of the University of California.  All rights reserved.
     10 * (c) UNIX System Laboratories, Inc.
     11 * All or some portions of this file are derived from material licensed
     12 * to the University of California by American Telephone and Telegraph
     13 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
     14 * the permission of UNIX System Laboratories, Inc.
     15 *
     16 * Redistribution and use in source and binary forms, with or without
     17 * modification, are permitted provided that the following conditions
     18 * are met:
     19 * 1. Redistributions of source code must retain the above copyright
     20 *    notice, this list of conditions and the following disclaimer.
     21 * 2. Redistributions in binary form must reproduce the above copyright
     22 *    notice, this list of conditions and the following disclaimer in the
     23 *    documentation and/or other materials provided with the distribution.
     24 * 3. All advertising materials mentioning features or use of this software
     25 *    must display the following acknowledgement:
     26 *      This product includes software developed by the University of
     27 *      California, Berkeley and its contributors.
     28 * 4. Neither the name of the University nor the names of its contributors
     29 *    may be used to endorse or promote products derived from this software
     30 *    without specific prior written permission.
     31 *
     32 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     33 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     34 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     35 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     36 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     37 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     38 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     39 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     40 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     41 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     42 * SUCH DAMAGE.
     43 *
     44 *      @(#)grp.h       8.2 (Berkeley) 1/21/94
     45 * $FreeBSD: src/include/grp.h,v 1.18 2003/04/17 14:15:25 nectar Exp $
     46 */
    247
    348#ifndef _GRP_H_
    4 #define _GRP_H_
    5 #define _GRP_H
     49#define _GRP_H_
    650
    751#include <sys/cdefs.h>
    852#include <sys/_types.h>
    953
    10 __BEGIN_DECLS
     54#define _PATH_GROUP             "/@unixroot/etc/group"
    1155
    12 #ifndef _POSIX_SOURCE
    13 #define _PATH_GROUP             "/etc/group"
     56#if !defined(_GID_T_DECLARED) && !defined(_GID_T)   /* bird */
     57typedef __gid_t         gid_t;
     58#define _GID_T_DECLARED
     59#define _GID_T                                      /* bird */
    1460#endif
    1561
    16 #if !defined(_GID_T_DECLARED) && !defined(_GID_T)
    17 typedef __gid_t gid_t;
    18 #define _GID_T_DECLARED
    19 #define _GID_T
     62#if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird */
     63typedef __size_t        size_t;
     64#define _SIZE_T_DECLARED
     65#define _SIZE_T                                     /* bird */
    2066#endif
    2167
    22 #if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T)
    23 typedef __size_t size_t;
    24 #define _SIZE_T_DECLARED
    25 #define _SIZE_T
    26 #endif
    27 
    28 
    29 struct group
    30 {
    31   char *gr_name;
    32   char *gr_passwd;
    33   gid_t gr_gid;
    34   char **gr_mem;
     68struct group {
     69        char    *gr_name;               /* group name */
     70        char    *gr_passwd;             /* group password */
     71        gid_t   gr_gid;                 /* group id */
     72        char    **gr_mem;               /* group members */
    3573};
    3674
    37 struct group   *getgrgid (gid_t);
    38 struct group   *getgrnam (const char *);
    39 
     75__BEGIN_DECLS
    4076#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
    41 struct group   *getgrent(void);
    42 int             setgrent(void);
    43 void            endgrent(void);
    44 void            setgrfile(const char *);
    45 int             setgroupent(int);
    46 int             getgrgid_r(gid_t, struct group *, char *, size_t, struct group **);
    47 int             getgrnam_r(const char *, struct group *, char *, size_t, struct group **);
     77void             endgrent(void);
     78struct group    *getgrent(void);
    4879#endif
    49 
     80struct group    *getgrgid(gid_t);
     81struct group    *getgrnam(const char *);
    5082#if __BSD_VISIBLE
    51 const char     *group_from_gid(gid_t, int);
    52 int             getgrent_r(struct group *, char *, size_t, struct group **);
    53 int             setgroupent(int);
     83const char      *group_from_gid(gid_t, int);
    5484#endif
    55 
     85#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200112 || __XSI_VISIBLE
     86/* XXX IEEE Std 1003.1, 2003 specifies `void setgrent(void)' */
     87int              setgrent(void);
     88int              getgrgid_r(gid_t, struct group *, char *, size_t,
     89                    struct group **);
     90int              getgrnam_r(const char *, struct group *, char *, size_t,
     91                    struct group **);
     92#endif
     93#if __BSD_VISIBLE
     94int              getgrent_r(struct group *, char *, size_t, struct group **);
     95int              setgroupent(int);
     96#endif
    5697__END_DECLS
    5798
    58 #endif /* not _GRP_H_ */
     99#endif /* !_GRP_H_ */
  • trunk/src/emx/include/hashtab.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* An expandable hash tables datatype. 
     1/* hashtab.h,v 1.2 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
     6/* An expandable hash tables datatype.
    27   Copyright (C) 1999, 2000 Free Software Foundation, Inc.
    38   Contributed by Vladimir Makarov (vmakarov@cygnus.com).
     
    5762   the hash table.  */
    5863typedef void (*htab_del) PARAMS ((void *));
    59  
     64
    6065/* Function called by htab_traverse for each live element.  The first
    6166   arg is the slot of the element (which can be passed to htab_clear_slot
  • trunk/src/emx/include/iconv.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* iconv.h,v 1.2 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * IGCC
     4 */
    15/* OS/2 iconv() implementation through OS/2 Unicode API
    26   Copyright (C) 2001 Free Software Foundation, Inc.
  • trunk/src/emx/include/ieee.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* ieee.h */
     1/* ieee.h,v 1.2 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36#define _IEEE           1
  • trunk/src/emx/include/inttypes.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* inttypes.h,v 1.3 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 *
     5 * @todo  Implement all the functions in this header.
     6 */
     7
    18/*-
    29 * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
     
    2734 */
    2835
    29 /** @file
    30  * FreeBSD 5.1
    31  *
    32  * @todo  Implement all the functions in this header.
    33  */
    34 
    3536#ifndef _INTTYPES_H_
    3637#define _INTTYPES_H_
  • trunk/src/emx/include/io.h

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r1505 r1506  
    1 /* io.h (emx+gcc) */
     1/* io.h,v 1.10 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36#ifndef _IO_H
  • trunk/src/emx/include/iso646.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* iso646.h */
     1/* iso646.h,v 1.2 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 */
    25
    3 #if !defined (__cplusplus)
     6/*-
     7 * Copyright (c) 1998 Alex Nash
     8 * All rights reserved.
     9 *
     10 * Redistribution and use in source and binary forms, with or without
     11 * modification, are permitted provided that the following conditions
     12 * are met:
     13 * 1. Redistributions of source code must retain the above copyright
     14 *    notice, this list of conditions and the following disclaimer.
     15 * 2. Redistributions in binary form must reproduce the above copyright
     16 *    notice, this list of conditions and the following disclaimer in the
     17 *    documentation and/or other materials provided with the distribution.
     18 *
     19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
     20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     22 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
     23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     29 * SUCH DAMAGE.
     30 *
     31 * $FreeBSD: src/include/iso646.h,v 1.4 2002/09/18 22:23:59 mike Exp $
     32 */
    433
    5 #define and     &&
    6 #define and_eq  &=
    7 #define bitand  &
    8 #define bitor   |
    9 #define compl   ~
    10 #define not     !
    11 #define not_eq  !=
    12 #define or      ||
    13 #define or_eq   |=
    14 #define xor     ^
    15 #define xor_eq  ^=
     34#ifndef _ISO646_H_
     35#define _ISO646_H_
    1636
    17 #endif
     37#define and     &&
     38#define and_eq  &=
     39#define bitand  &
     40#define bitor   |
     41#define compl   ~
     42#define not     !
     43#define not_eq  !=
     44#define or      ||
     45#define or_eq   |=
     46#define xor     ^
     47#define xor_eq  ^=
     48
     49#endif /* !_ISO646_H_ */
  • trunk/src/emx/include/libgen.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 #ifndef _LIBGEN_H
    2 #define _LIBGEN_H
     1/* libgen.h,v 1.2 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 */
    35
    4 #if defined (__cplusplus)
    5 extern "C" {
     6/*      $OpenBSD: libgen.h,v 1.4 1999/05/28 22:00:22 espie Exp $        */
     7/*      $FreeBSD: src/include/libgen.h,v 1.2 2002/03/23 17:24:53 imp Exp $      */
     8
     9/*
     10 * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
     11 * All rights reserved.
     12 *
     13 * Redistribution and use in source and binary forms, with or without
     14 * modification, are permitted provided that the following conditions
     15 * are met:
     16 * 1. Redistributions of source code must retain the above copyright
     17 *    notice, this list of conditions and the following disclaimer.
     18 * 2. Redistributions in binary form must reproduce the above copyright
     19 *    notice, this list of conditions and the following disclaimer in the
     20 *    documentation and/or other materials provided with the distribution.
     21 * 3. The name of the author may not be used to endorse or promote products
     22 *    derived from this software without specific prior written permission.
     23 *
     24 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
     25 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
     26 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
     27 * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     28 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     29 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     30 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     31 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     32 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
     33 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     34 */
     35
     36#ifndef _LIBGEN_H_
     37#define _LIBGEN_H_
     38
     39#include <sys/cdefs.h>
     40
     41__BEGIN_DECLS
     42
     43char    *basename(const char *);
     44char    *dirname(const char *);
     45#if 0
     46char    *regcmp(const char *, ...);
     47char    *regex(const char *, const char *, ...);
     48
     49extern char *__loc1;
    650#endif
    751
    8 /* Return directory part of PATH or "." if none is available.  */
    9 extern char *dirname (char *pathname);
     52__END_DECLS
    1053
    11 /* Return final component of PATH. */
    12 #undef basename
    13 extern char *basename (char *pathname);
    14 
    15 #if defined (__cplusplus)
    16 }
    17 #endif
    18 
    19 #endif /* libgen.h */
     54#endif /* _LIBGEN_H_ */
  • trunk/src/emx/include/libiberty.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* libiberty.h,v 1.2 2004/09/14 22:27:33 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* Function declarations for libiberty.
    27
    38   Copyright 2001, 2002 Free Software Foundation, Inc.
    4    
     9
    510   Note - certain prototypes declared in this header file are for
    611   functions whoes implementation copyright does not belong to the
     
    2429   Foundation, Inc., 59 Temple Place - Suite 330,
    2530   Boston, MA 02111-1307, USA.
    26    
     31
    2732   Written by Cygnus Support, 1994.
    2833
  • trunk/src/emx/include/limits.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* limits.h,v 1.3 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: made some minor adjustments.
     5 * @remark  Most of the values here aren't really absolute maximum values.
     6 *          Take care to check the specification before changing anything.
     7 * @todo    Review and make adjustments.
     8 */
     9
    110/*-
    211 * Copyright (c) 1988, 1993
     
    3342 *      @(#)limits.h    8.2 (Berkeley) 1/4/94
    3443 * $FreeBSD: src/include/limits.h,v 1.16 2003/04/29 13:35:58 kan Exp $
    35  */
    36 
    37 /** @file
    38  * FreeBSD 5.1
    39  * @changed bird: made some minor adjustments.
    40  * @remark  Most of the values here aren't really absolute maximum values.
    41  *          Take care to check the specification before changing anything.
    42  * @todo    Review and make adjustments.
    4344 */
    4445
  • trunk/src/emx/include/locale.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1505 r1506  
     1/* $Id; $ */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: removed unsupported values and added comments to lconv.
     5 * @changed bird: Changed the LC_* values to match those unidef.h sets.
     6 */
     7
    18/*
    29 * Copyright (c) 1991, 1993
     
    3340 *      @(#)locale.h    8.1 (Berkeley) 6/2/93
    3441 * $FreeBSD: src/include/locale.h,v 1.7 2002/10/09 09:19:27 tjr Exp $
    35  */
    36 
    37 /** @file
    38  * FreeBSD 5.1
    39  * @changed bird: removed unsupported values and added comments to lconv.
    40  * @changed bird: Changed the LC_* values to match those unidef.h sets.
    4142 */
    4243
  • trunk/src/emx/include/malloc.h

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1505 r1506  
    1 /* malloc.h (emx+gcc) */
     1/* malloc.h,v 1.7 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * EMX
     4 * @todo    Merge with stdlib.h.
     5 */
    26
    37#ifndef _MALLOC_H
  • trunk/src/emx/include/math.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1505 r1506  
    1 /* math.h (emx+gcc) */
     1/* math.h,v 1.5 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * EMX
     4 * @todo This needs C99 attention!
     5 */
    26
    37#ifndef _MATH_H
  • trunk/src/emx/include/md5.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* md5.h,v 1.2 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* md5.h - Declaration of functions and data types used for MD5 sum
    27   computing library functions.
  • trunk/src/emx/include/memory.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* memory.h,v 1.3 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 */
     5
    16/*
    27 * Copyright (c) 1988, 1993
     
    3439 */
    3540
    36 /** @file
    37  * FreeBSD 5.1
    38  */
    39 
    4041#include <string.h>
    4142
  • trunk/src/emx/include/mpool.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* mpool.h,v 1.2 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 */
     5
    16/*-
    27 * Copyright (c) 1991, 1993, 1994
     
    3338 *      @(#)mpool.h     8.2 (Berkeley) 7/14/94
    3439 * $FreeBSD: src/include/mpool.h,v 1.9 2002/03/23 17:24:53 imp Exp $
    35  */
    36 
    37 /** @file
    38  * FreeBSD 5.1
    3940 */
    4041
  • trunk/src/emx/include/ndbm.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* ndbm.h,v 1.2 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 */
     5
    16/*-
    27 * Copyright (c) 1990, 1993
     
    3641 *      @(#)ndbm.h      8.1 (Berkeley) 6/2/93
    3742 * $FreeBSD: src/include/ndbm.h,v 1.4 2002/03/23 17:24:53 imp Exp $
    38  */
    39 
    40 /** @file
    41  * FreeBSD 5.1
    4243 */
    4344
  • trunk/src/emx/include/netdb.h

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r1505 r1506  
    1 /*- Modified for emx by hv and em 1994-1997
    2  *- Modified for gcc by bird 2003
     1/* netdb.h,v 1.8 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * BSD
     4 *
     5 * @changed Modified for emx by hv and em 1994-1997
     6 * @changed Modified for gcc by bird 2003
     7 */
     8
     9/* netdb.h,v 1.8 2004/09/14 22:27:34 bird Exp */
     10/*-
    311 *
    412 * Copyright (c) 1980, 1983, 1988 Regents of the University of California.
     
    3442 *
    3543 *      from: @(#)netdb.h       5.15 (Berkeley) 4/3/91
    36  *      netdb.h,v 1.7 2004/09/12 19:40:25 bird Exp
     44 *      netdb.h,v 1.8 2004/09/14 22:27:34 bird Exp
    3745 */
    3846
     
    6472
    6573
    66 #define _PATH_HEQUIV    "/mptn/etc/hosts.equiv"
    67 #define _PATH_HOSTS     "/mptn/etc/hosts"
    68 #define _PATH_NETWORKS  "/mptn/etc/networks"
    69 #define _PATH_PROTOCOLS "/mptn/etc/protocols"
    70 #define _PATH_SERVICES  "/mptn/etc/services"
     74#define _PATH_HEQUIV    "/@unixroot/etc/hosts.equiv"
     75#define _PATH_HOSTS     "/@unixroot/etc/hosts"
     76#define _PATH_NETWORKS  "/@unixroot/etc/networks"
     77#define _PATH_PROTOCOLS "/@unixroot/etc/protocols"
     78#define _PATH_SERVICES  "/@unixroot/etc/services"
    7179
    7280#ifdef TCPV40HDRS
  • trunk/src/emx/include/nl_types.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* nl_types.h,v 1.2 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 */
     5
    16/*-
    27 * Copyright 1990, by Alfalfa Software Incorporated, Cambridge, Massachusetts.
  • trunk/src/emx/include/nss.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* nss.h,v 1.2 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 */
     5
    16/*-
    27 * Copyright (c) 2003 Networks Associates Technology, Inc.
  • trunk/src/emx/include/nsswitch.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* nsswitch.h,v 1.2 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 */
     5
    16/*      $NetBSD: nsswitch.h,v 1.6 1999/01/26 01:04:07 lukem Exp $       */
    27/*      $FreeBSD: src/include/nsswitch.h,v 1.3 2003/04/17 14:14:21 nectar Exp $ */
     
    4752
    4853#ifndef _PATH_NS_CONF
    49 #define _PATH_NS_CONF   "/etc/nsswitch.conf"
     54#define _PATH_NS_CONF   "/@unixroot/etc/nsswitch.conf"
    5055#endif
    5156
     
    104109/*
    105110 * ns_dtab `method' function signature.
    106  */ 
     111 */
    107112typedef int (*nss_method)(void *_retval, void *_mdata, va_list _ap);
    108113
     
    130135#define NS_FILES_CB(F,C)        { NSSRC_FILES,  F,      C },
    131136#define NS_COMPAT_CB(F,C)       { NSSRC_COMPAT, F,      C },
    132  
     137
    133138#ifdef HESIOD
    134139#   define NS_DNS_CB(F,C)       { NSSRC_DNS,    F,      C },
     
    183188                       nss_module_unregister_fn *);
    184189
    185 /* 
     190/*
    186191 * Many NSS interfaces follow the getXXnam, getXXid, getXXent pattern.
    187192 * Developers are encouraged to use nss_lookup_type where approriate.
  • trunk/src/emx/include/objalloc.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* objalloc.h,v 1.2 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* objalloc.h -- routines to allocate memory for objects
    27   Copyright 1997, 2001 Free Software Foundation, Inc.
  • trunk/src/emx/include/obstack.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* obstack.h,v 1.2 2004/09/14 22:27:34 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* obstack.h - object stack macros
    27   Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1996, 1997, 1998,
  • trunk/src/emx/include/os2.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
    1 /* os2.h (emx+gcc) */
     1/* os2.h,v 1.3 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36#ifndef _OS2_H
  • trunk/src/emx/include/os2emx.h

    • Property cvs2svn:cvs-rev changed from 1.18 to 1.19
    r1505 r1506  
    1 /* os2emx.h (emx+gcc) */
     1/* os2emx.h,v 1.19 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36#ifndef _OS2EMX_H
  • trunk/src/emx/include/os2thunk.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1505 r1506  
    1 /* os2thunk.h (emx+gcc) */
     1/* os2thunk.h,v 1.4 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36#ifndef _OS2THUNK_H
    47#define _OS2THUNK_H
     8
     9#include <sys/cdefs.h>
     10
     11__BEGIN_DECLS
    512
    613typedef unsigned long _far16ptr;
     
    6168#define _THUNK_PTR_STRUCT_OK(ptr) _THUNK_PTR_SIZE_OK ((ptr), sizeof (*(ptr)))
    6269
     70__END_DECLS
     71
    6372#endif /* not _OS2THUNK_H */
  • trunk/src/emx/include/os2tk.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* os2tk.h (emx+gcc) */
     1/* os2tk.h,v 1.2 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36#ifndef __OS2_H__
  • trunk/src/emx/include/partition.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* partition.h,v 1.3 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* List implementation of a partition of consecutive integers.
    27   Copyright (C) 2000, 2001 Free Software Foundation, Inc.
  • trunk/src/emx/include/paths.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* paths.h,v 1.2 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 * @changed bird: /@unixroot
     5 */
     6
    17/*
    28 * Copyright (c) 1989, 1993
     
    4147
    4248/* Default search path. */
    43 #define _PATH_DEFPATH   "/usr/bin:/bin"
     49#define _PATH_DEFPATH   "/@unixroot/usr/bin:/@unixroot/bin"
    4450/* All standard utilities path. */
    4551#define _PATH_STDPATH \
    46         "/usr/bin:/bin:/usr/sbin:/sbin:"
     52        "/@unixroot/usr/bin:/@unixroot/bin:/@unixroot/usr/sbin:/@unixroot/sbin:"
    4753/* Locate system binaries */
    4854#define _PATH_SYSPATH   \
    49         "/sbin:/usr/sbin"
     55        "/@unixroot/sbin:/@unixroot/usr/sbin"
    5056
    51 #define _PATH_AUTHCONF  "/etc/auth.conf"
    52 #define _PATH_BSHELL    "/bin/sh"
    53 #define _PATH_CAPABILITY        "/etc/capability"
    54 #define _PATH_CAPABILITY_DB     "/etc/capability.db"
    55 #define _PATH_CONSOLE   "/dev/console"
    56 #define _PATH_CP        "/bin/cp"
    57 #define _PATH_CSHELL    "/bin/csh"
    58 #define _PATH_DEFTAPE   "/dev/sa0"
    59 #define _PATH_DEVNULL   "/dev/null"
    60 #define _PATH_DEVZERO   "/dev/zero"
    61 #define _PATH_DRUM      "/dev/drum"
    62 #define _PATH_ETC       "/etc"
    63 #define _PATH_FTPUSERS  "/etc/ftpusers"
    64 #define _PATH_HALT      "/sbin/halt"
    65 #define _PATH_IFCONFIG  "/sbin/ifconfig"
    66 #define _PATH_KMEM      "/dev/kmem"
    67 #define _PATH_LIBMAP_CONF       "/etc/libmap.conf"
    68 #define _PATH_LOCALE    "/usr/share/locale"
    69 #define _PATH_LOGIN     "/usr/bin/login"
    70 #define _PATH_MAILDIR   "/var/mail"
    71 #define _PATH_MAN       "/usr/share/man"
    72 #define _PATH_MDCONFIG  "/sbin/mdconfig"
    73 #define _PATH_MEM       "/dev/mem"
    74 #define _PATH_MKSNAP_FFS        "/sbin/mksnap_ffs"
    75 #define _PATH_MOUNT     "/sbin/mount"
    76 #define _PATH_NEWFS     "/sbin/newfs"
    77 #define _PATH_NOLOGIN   "/var/run/nologin"
    78 #define _PATH_RCP       "/bin/rcp"
    79 #define _PATH_REBOOT    "/sbin/reboot"
    80 #define _PATH_RLOGIN    "/usr/bin/rlogin"
    81 #define _PATH_RM        "/bin/rm"
    82 #define _PATH_RSH       "/usr/bin/rsh"
    83 #define _PATH_SENDMAIL  "/usr/sbin/sendmail"
    84 #define _PATH_SHELLS    "/etc/shells"
    85 #define _PATH_TTY       "/dev/tty"
     57#define _PATH_AUTHCONF  "/@unixroot/etc/auth.conf"
     58#define _PATH_BSHELL    "/@unixroot/bin/sh"
     59#define _PATH_CAPABILITY        "/@unixroot/etc/capability"
     60#define _PATH_CAPABILITY_DB     "/@unixroot/etc/capability.db"
     61#define _PATH_CONSOLE   "/@unixroot/dev/console"
     62#define _PATH_CP        "/@unixroot/bin/cp"
     63#define _PATH_CSHELL    "/@unixroot/bin/csh"
     64#define _PATH_DEFTAPE   "/@unixroot/dev/sa0"
     65#define _PATH_DEVNULL   "/@unixroot/dev/null"
     66#define _PATH_DEVZERO   "/@unixroot/dev/zero"
     67#define _PATH_DRUM      "/@unixroot/dev/drum"
     68#define _PATH_ETC       "/@unixroot/etc"
     69#define _PATH_FTPUSERS  "/@unixroot/etc/ftpusers"
     70#define _PATH_HALT      "/@unixroot/sbin/halt"
     71#define _PATH_IFCONFIG  "/@unixroot/sbin/ifconfig"
     72#define _PATH_KMEM      "/@unixroot/dev/kmem"
     73#define _PATH_LIBMAP_CONF       "/@unixroot/etc/libmap.conf"
     74#define _PATH_LOCALE    "/@unixroot/usr/share/locale"
     75#define _PATH_LOGIN     "/@unixroot/usr/bin/login"
     76#define _PATH_MAILDIR   "/@unixroot/var/mail"
     77#define _PATH_MAN       "/@unixroot/usr/share/man"
     78#define _PATH_MDCONFIG  "/@unixroot/sbin/mdconfig"
     79#define _PATH_MEM       "/@unixroot/dev/mem"
     80#define _PATH_MKSNAP_FFS        "/@unixroot/sbin/mksnap_ffs"
     81#define _PATH_MOUNT     "/@unixroot/sbin/mount"
     82#define _PATH_NEWFS     "/@unixroot/sbin/newfs"
     83#define _PATH_NOLOGIN   "/@unixroot/var/run/nologin"
     84#define _PATH_RCP       "/@unixroot/bin/rcp"
     85#define _PATH_REBOOT    "/@unixroot/sbin/reboot"
     86#define _PATH_RLOGIN    "/@unixroot/usr/bin/rlogin"
     87#define _PATH_RM        "/@unixroot/bin/rm"
     88#define _PATH_RSH       "/@unixroot/usr/bin/rsh"
     89#define _PATH_SENDMAIL  "/@unixroot/usr/sbin/sendmail"
     90#define _PATH_SHELLS    "/@unixroot/etc/shells"
     91#define _PATH_TTY       "/@unixroot/dev/tty"
    8692#define _PATH_UNIX      "don't use _PATH_UNIX"
    87 #define _PATH_VI        "/usr/bin/vi"
    88 #define _PATH_WALL      "/usr/bin/wall"
     93#define _PATH_VI        "/@unixroot/usr/bin/vi"
     94#define _PATH_WALL      "/@unixroot/usr/bin/wall"
    8995
    9096/* Provide trailing slash, since mostly used for building pathnames. */
    91 #define _PATH_DEV       "/dev/"
    92 #define _PATH_TMP       "/tmp/"
    93 #define _PATH_VARDB     "/var/db/"
    94 #define _PATH_VARRUN    "/var/run/"
    95 #define _PATH_VARTMP    "/var/tmp/"
    96 #define _PATH_YP        "/var/yp/"
    97 #define _PATH_UUCPLOCK  "/var/spool/lock/"
     97#define _PATH_DEV       "/@unixroot/dev/"
     98#define _PATH_TMP       "/@unixroot/tmp/"
     99#define _PATH_VARDB     "/@unixroot/var/db/"
     100#define _PATH_VARRUN    "/@unixroot/var/run/"
     101#define _PATH_VARTMP    "/@unixroot/var/tmp/"
     102#define _PATH_YP        "/@unixroot/var/yp/"
     103#define _PATH_UUCPLOCK  "/@unixroot/var/spool/lock/"
    98104
    99105/* How to get the correct name of the kernel. */
     
    104110#ifdef RESCUE
    105111#undef  _PATH_DEFPATH
    106 #define _PATH_DEFPATH   "/rescue:/usr/bin:/bin"
     112#define _PATH_DEFPATH   "/@unixroot/rescue:/@unixroot/usr/bin:/@unixroot/bin"
    107113#undef  _PATH_STDPATH
    108 #define _PATH_STDPATH   "/rescue:/usr/bin:/bin:/usr/sbin:/sbin"
     114#define _PATH_STDPATH   "/@unixroot/rescue:/@unixroot/usr/bin:/@unixroot/bin:/@unixroot/usr/sbin:/@unixroot/sbin"
    109115#undef  _PATH_SYSPATH
    110 #define _PATH_SYSPATH   "/rescue:/sbin:/usr/sbin"
     116#define _PATH_SYSPATH   "/@unixroot/rescue:/@unixroot/sbin:/@unixroot/usr/sbin"
    111117#undef  _PATH_BSHELL
    112 #define _PATH_BSHELL    "/rescue/sh"
     118#define _PATH_BSHELL    "/@unixroot/rescue/sh"
    113119#undef  _PATH_CP
    114 #define _PATH_CP        "/rescue/cp"
     120#define _PATH_CP        "/@unixroot/rescue/cp"
    115121#undef  _PATH_CSHELL
    116 #define _PATH_CSHELL    "/rescue/csh"
     122#define _PATH_CSHELL    "/@unixroot/rescue/csh"
    117123#undef  _PATH_HALT
    118 #define _PATH_HALT      "/rescue/halt"
     124#define _PATH_HALT      "/@unixroot/rescue/halt"
    119125#undef  _PATH_IFCONFIG
    120 #define _PATH_IFCONFIG  "/rescue/ifconfig"
     126#define _PATH_IFCONFIG  "/@unixroot/rescue/ifconfig"
    121127#undef  _PATH_MDCONFIG
    122 #define _PATH_MDCONFIG  "/rescue/mdconfig"
     128#define _PATH_MDCONFIG  "/@unixroot/rescue/mdconfig"
    123129#undef  _PATH_MOUNT
    124 #define _PATH_MOUNT     "/rescue/mount"
     130#define _PATH_MOUNT     "/@unixroot/rescue/mount"
    125131#undef  _PATH_NEWFS
    126 #define _PATH_NEWFS     "/rescue/newfs"
     132#define _PATH_NEWFS     "/@unixroot/rescue/newfs"
    127133#undef  _PATH_RCP
    128 #define _PATH_RCP       "/rescue/rcp"
     134#define _PATH_RCP       "/@unixroot/rescue/rcp"
    129135#undef  _PATH_REBOOT
    130 #define _PATH_REBOOT    "/rescue/reboot"
     136#define _PATH_REBOOT    "/@unixroot/rescue/reboot"
    131137#undef  _PATH_RM
    132 #define _PATH_RM        "/rescue/rm"
     138#define _PATH_RM        "/@unixroot/rescue/rm"
    133139#undef  _PATH_VI
    134 #define _PATH_VI        "/rescue/vi"
     140#define _PATH_VI        "/@unixroot/rescue/vi"
    135141#undef  _PATH_WALL
    136 #define _PATH_WALL      "/rescue/wall"
     142#define _PATH_WALL      "/@unixroot/rescue/wall"
    137143#endif /* RESCUE */
    138144
  • trunk/src/emx/include/process.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* process.h (emx+gcc) */
     1/* process.h,v 1.2 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * EMX
     4 * @see sys/process.h
     5 */
    26
    37#ifndef _PROCESS_H
  • trunk/src/emx/include/protocol/rwhod.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* $Id$ */
    12#ifndef _PROTOCOL_RWHOD_H_
    23#define _PROTOCOL_RWHOD_H_
  • trunk/src/emx/include/protocols/rwhod.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1505 r1506  
     1/* $Id$ */
    12/*
    23 * Copyright (c) 1983, 1993
     
    7475#define WHODTYPE_STATUS 1               /* host status */
    7576
    76 #define _PATH_RWHODIR   "/var/rwho"
     77#define _PATH_RWHODIR   "/@unixroot/var/rwho"
    7778
    7879#endif /*!TCPV40HDRS*/
  • trunk/src/emx/include/pwd.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1505 r1506  
     1/* pwd.h,v 1.4 2004/09/14 22:27:35 bird Exp */
     2/**
     3 * FreeBSD 5.2
     4 * @changed bird: some EMXisms.
     5 */
     6
    17/*-
    28 * Copyright (c) 1989, 1993
     
    4046 */
    4147
    42 /**
    43  * FreeBSD 5.2
    44  * @changed bird: some EMXisms.
    45  */
    46 
    4748#ifndef _PWD_H_
    4849#define _PWD_H_
     
    7778
    7879
    79 #define _PATH_PWD               "/etc"
    80 #define _PATH_PASSWD            "/etc/passwd"
     80#define _PATH_PWD               "/@unixroot/etc"
     81#define _PATH_PASSWD            "/@unixroot/etc/passwd"
    8182#define _PASSWD                 "passwd"
    82 #define _PATH_MASTERPASSWD      "/etc/master.passwd"
     83#define _PATH_MASTERPASSWD      "/@unixroot/etc/master.passwd"
    8384#define _MASTERPASSWD           "master.passwd"
    8485
    85 #define _PATH_MP_DB             "/etc/pwd.db"
     86#define _PATH_MP_DB             "/@unixroot/etc/pwd.db"
    8687#define _MP_DB                  "pwd.db"
    87 #define _PATH_SMP_DB            "/etc/spwd.db"
     88#define _PATH_SMP_DB            "/@unixroot/etc/spwd.db"
    8889#define _SMP_DB                 "spwd.db"
    8990
    90 #define _PATH_PWD_MKDB          "/usr/sbin/pwd_mkdb"
     91#define _PATH_PWD_MKDB          "/@unixroot/usr/sbin/pwd_mkdb"
    9192
    9293/* Historically, the keys in _PATH_MP_DB/_PATH_SMP_DB had the format
  • trunk/src/emx/include/regex.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* regex.h,v 1.2 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 */
    15/*-
    26 * Copyright (c) 1992 Henry Spencer.
     
    3741 *      @(#)regex.h     8.2 (Berkeley) 1/3/94
    3842 * $FreeBSD: src/include/regex.h,v 1.6 2002/10/03 18:12:03 mike Exp $
    39  */
    40 
    41 /** @file
    42  * FreeBSD 5.1
    4343 */
    4444
  • trunk/src/emx/include/regexp.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* regexp.h,v 1.3 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 */
     5
    16/*
    27 * Copyright (c) 1986 by University of Toronto.
     
    3944 */
    4045
    41 /** @file
    42  * FreeBSD 5.1
    43  */
    44 
    4546#ifndef _REGEXP_H_
    4647#define _REGEXP_H_
  • trunk/src/emx/include/resolv.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1505 r1506  
    1 /* Modified for EMX by hv 1994,1996
    2  * Modified for gcc by bird 2003
    3  *
     1/* resolv.h,v 1.5 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * BSD
     4 * @changed EM: For EMX by hv 1994,1996
     5 * @changed bird: For IGCC.
     6 */
     7/*
    48 * Copyright (c) 1983, 1987, 1989 The Regents of the University of California.
    59 * All rights reserved.
     
    3438 *
    3539 *      from: @(#)resolv.h      5.15 (Berkeley) 4/3/91
    36  *      resolv.h,v 1.4 2003/07/11 11:39:47 bird Exp
     40 *      resolv.h,v 1.5 2004/09/14 22:27:35 bird Exp
    3741 */
    3842
     
    7074
    7175#ifndef _PATH_RESCONF
    72 #define _PATH_RESCONF        "/mptn/etc/resolv.conf"
     76#define _PATH_RESCONF        "/@unixroot/etc/resolv.conf"
    7377#endif
    7478#endif /* TCPV40HDRS */
  • trunk/src/emx/include/safe-ctype.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* safe-ctype.h,v 1.2 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * GNU, -liberty
     4 */
     5
    16/* <ctype.h> replacement macros.
    27
  • trunk/src/emx/include/search.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* search.h,v 1.3 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: _SIZE_T
     5 */
    16/*-
    27 * Written by J.T. Conklin <jtc@netbsd.org>
     
    510 *      $NetBSD: search.h,v 1.12 1999/02/22 10:34:28 christos Exp $
    611 * $FreeBSD: src/include/search.h,v 1.10 2002/10/16 14:29:23 robert Exp $
    7  */
    8 
    9 /** @file
    10  * FreeBSD 5.1
    11  * @changed bird: _SIZE_T
    1212 */
    1313
  • trunk/src/emx/include/setjmp.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* setjmp.h,v 1.3 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: @todo'ed the functions LIBC doesn't implement.
     5 */
    16/*-
    27 * Copyright (c) 1990, 1993
     
    4045 */
    4146
    42 /** @file
    43  * FreeBSD 5.1
    44  * @changed bird: @todo'ed the functions LIBC doesn't implement.
    45  */
    46 
    4747#ifndef _SETJMP_H_
    4848#define _SETJMP_H_
  • trunk/src/emx/include/sgtty.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* sgtty.h (emx+gcc) */
     1/* sgtty.h,v 1.2 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * EMX
     4 */
    25
    36/* empty */
  • trunk/src/emx/include/share.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* share.h (emx+gcc) */
     1/* share.h,v 1.2 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * EMX. VAC legacy.
     4 */
    25
    36#ifndef _SHARE_H
  • trunk/src/emx/include/socks.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* socks.h,v 1.3 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * BSD
     4 */
    15/*-----------------------------------------------------------------
    26Copyright (c) 1989 Regents of the University of California.
  • trunk/src/emx/include/sort.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* sort.h,v 1.2 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
    15/* Sorting algorithms.
    26   Copyright (C) 2000 Free Software Foundation, Inc.
     
    48
    59This file is part of GCC.
    6    
     10
    711GCC is free software; you can redistribute it and/or modify it
    812under the terms of the GNU General Public License as published by
     
    4549
    4650
    47    
    48    
     51
     52
  • trunk/src/emx/include/spawn.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/** @file
     2 * GLIBC 2.3.2
     3 * @changed bird: we don't have sched.h or the GLIBC standard definitions.
     4 */
     5
    16/* Definitions for POSIX spawn interface.
    27   Copyright (C) 2000 Free Software Foundation, Inc.
     
    1823   02111-1307 USA.  */
    1924
    20 /** @file
    21  * GLIBC 2.3.2
    22  * @changed bird: we don't have features.h, sched.h or the GLIBC standard definitions.
    23  */
    24 
    2525#ifndef _SPAWN_H
    2626#define _SPAWN_H        1
    2727
     28#include <features.h>
    2829#ifndef __EMX__                         /* bird */
    29 #include <features.h>
    3030#include <sched.h>
    3131#endif                                  /* bird */
  • trunk/src/emx/include/splay-tree.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* A splay-tree datatype. 
     1/* splay-tree.h,v 1.2 2004/09/14 22:27:35 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5/* A splay-tree datatype.
    26   Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
    37   Contributed by Mark Mitchell (mark@markmitchell.com).
    48
    59This file is part of GCC.
    6    
     10
    711GCC is free software; you can redistribute it and/or modify it
    812under the terms of the GNU General Public License as published by
     
    2327
    2428     Lewis, Harry R. and Denenberg, Larry.  Data Structures and Their
    25      Algorithms.  Harper-Collins, Inc.  1991. 
     29     Algorithms.  Harper-Collins, Inc.  1991.
    2630
    2731   The major feature of splay trees is that all basic tree operations
     
    121125                                                void *));
    122126extern void splay_tree_delete           PARAMS((splay_tree));
    123 extern splay_tree_node splay_tree_insert         
     127extern splay_tree_node splay_tree_insert
    124128                                        PARAMS((splay_tree,
    125129                                                splay_tree_key,
     
    127131extern void splay_tree_remove           PARAMS((splay_tree,
    128132                                                splay_tree_key));
    129 extern splay_tree_node splay_tree_lookup   
     133extern splay_tree_node splay_tree_lookup
    130134                                        PARAMS((splay_tree,
    131135                                                splay_tree_key));
     
    147151extern int splay_tree_compare_pointers  PARAMS((splay_tree_key,
    148152                                                splay_tree_key));
    149                                                
     153                                       
    150154#ifdef __cplusplus
    151155}
  • trunk/src/emx/include/stdint.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* stdint.h,v 1.2 2004/09/14 22:27:36 bird Exp */
    12/** @file
    23 * FreeBSD 5.1
     4 * @see sys/stdint.h
    35 */
    46#include <sys/stdint.h>
  • trunk/src/emx/include/stdio.h

    • Property cvs2svn:cvs-rev changed from 1.12 to 1.13
    r1505 r1506  
     1/* stdio.h,v 1.13 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: EMX isms + LIBC implementation specifics.
     5 * @chagned bird: Made quite a few @todos on function which aren't implemented.
     6 */
     7
    18/*-
    29 * Copyright (c) 1990, 1993
     
    3643 *      @(#)stdio.h     8.5 (Berkeley) 4/29/95
    3744 * $FreeBSD: src/include/stdio.h,v 1.51 2003/01/13 08:41:47 tjr Exp $
    38  */
    39 
    40 /** @file
    41  * FreeBSD 5.1
    42  * @changed bird: EMX isms + LIBC implementation specifics.
    43  * @chagned bird: Made quite a few @todos on function which aren't implemented.
    4445 */
    4546
     
    503504#endif
    504505
    505 #endif /* bird: Skip FreeBSD sepcific LIBC stuff. */
     506#endif /* bird: Skip FreeBSD specific LIBC stuff. */
    506507
    507508
  • trunk/src/emx/include/stdlib.h

    • Property cvs2svn:cvs-rev changed from 1.23 to 1.24
    r1505 r1506  
     1/* stdlib.h,v 1.24 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: EMXifications and OS2ifications.
     5 */
     6
    17/*-
    28 * Copyright (c) 1990, 1993
     
    3339 *      @(#)stdlib.h    8.5 (Berkeley) 5/19/95
    3440 * $FreeBSD: src/include/stdlib.h,v 1.48 2003/03/12 20:29:58 das Exp $
    35  */
    36 
    37 /** @file
    38  * FreeBSD 5.1
    39  * @changed bird: EMXifications and OS2ifications.
    4041 */
    4142
  • trunk/src/emx/include/string.h

    • Property cvs2svn:cvs-rev changed from 1.12 to 1.13
    r1505 r1506  
     1/* string.h,v 1.13 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: EMXifications.
     5 * @changed bird: GNU extension(s).
     6 */
     7
    18/*-
    29 * Copyright (c) 1990, 1993
     
    3340 *      @(#)string.h    8.1 (Berkeley) 6/2/93
    3441 * $FreeBSD: src/include/string.h,v 1.18 2002/10/14 20:38:40 mike Exp $
    35  */
    36 
    37 /** @file
    38  * FreeBSD 5.1
    39  * @changed bird: EMXifications.
    40  * @changed bird: GNU extension(s).
    4142 */
    4243
  • trunk/src/emx/include/stringlist.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* stringlist.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 */
    15/*      $NetBSD: stringlist.h,v 1.2 1997/01/17 06:11:36 lukem Exp $     */
    26
     
    3539
    3640#ifndef _STRINGLIST_H
    37 #define _STRINGLIST_H 
     41#define _STRINGLIST_H
    3842#include <sys/cdefs.h>
    3943#include <sys/types.h>
  • trunk/src/emx/include/strings.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* strings.h,v 1.3 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: EMXifications.
     5 */
     6
    17/*-
    28 * Copyright (c) 2002 Mike Barcroft <mike@FreeBSD.org>
     
    2733 */
    2834
    29 /** @file
    30  * FreeBSD 5.1
    31  * @changed bird: EMXifications.
    32  */
    33 
    3435#ifndef _STRINGS_H_
    3536#define _STRINGS_H_
  • trunk/src/emx/include/symcat.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* symcat.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
    15/* Symbol concatenation utilities.
    26
     
    1216   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    1317   GNU General Public License for more details.
    14  
     18
    1519   You should have received a copy of the GNU General Public License along
    1620   with this program; if not, write to the Free Software Foundation, Inc.,
     
    4549   works for __STDC__, not for traditional C which will still resolve
    4650   to "foo".  */
    47 #define XSTRING(s) STRINGX(s) 
     51#define XSTRING(s) STRINGX(s)
    4852
    4953#endif /* SYM_CAT_H */
  • trunk/src/emx/include/sys/errno.h

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r1505 r1506  
     1/* $Id: $ */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: errno wrapper and added comments about defines which have moved.
     5 */
     6
    17/*
    28 * Copyright (c) 1982, 1986, 1989, 1993
     
    4046 */
    4147
    42 /** @file
    43  * FreeBSD 5.1
    44  * @changed bird: errno wrapper and added comments about defines which have moved.
    45  */
    46 
    4748#ifndef _SYS_ERRNO_H_
    4849#define _SYS_ERRNO_H_
  • trunk/src/emx/include/sys/fcntl.h

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1505 r1506  
     1/* $Id: $ */
     2/** @file
     3 * FreeBSD 5.1 + EMX
     4 *
     5 * @changed bird: EMX isms.
     6 * @changed bird: Removed (non KERNEL) stuff we don't implement and added
     7 *          EMX specific stuff.
     8 * @todo    Consider implementing the flags and commands we don't currently
     9 *          include.
     10 */
     11
     12
    113/*-
    214 * Copyright (c) 1983, 1990, 1993
     
    4052 */
    4153
    42 /** @file
    43  * FreeBSD 5.1 + EMX
    44  *
    45  * @changed bird: EMX isms.
    46  * @changed bird: Removed (non KERNEL) stuff we don't implement and added
    47  *          EMX specific stuff.
    48  * @todo    Consider implementing the flags and commands we don't currently
    49  *          include.
    50  */
    51 
    5254#ifndef _SYS_FCNTL_H_
    5355#define _SYS_FCNTL_H_
  • trunk/src/emx/include/sys/process.h

    • Property cvs2svn:cvs-rev changed from 1.4 to 1.5
    r1505 r1506  
    1 /* sys/process.h (emx+gcc) */
     1/* $Id: $ */
     2/** @file
     3 * EMX
     4 */
    25
    36#ifndef _SYS_PROCESS_H
  • trunk/src/emx/include/sys/syslog.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* $Id: $ */
     2/** @file
     3 * FreeBSD 5.1
     4 */
    15/*
    26 * Copyright (c) 1982, 1986, 1988, 1993
     
    3539 */
    3640
    37 /** @file
    38  * FreeBSD 5.1
    39  */
    40 
    4141#ifndef _SYS_SYSLOG_H_
    4242#define _SYS_SYSLOG_H_
    4343
    44 #define _PATH_LOG       "/var/run/log"
    45 #define _PATH_OLDLOG    "/dev/log"      /* backward compatibility */
     44#define _PATH_LOG       "/@unixroot/var/run/log"
     45#define _PATH_OLDLOG    "/@unixroot/dev/log"    /* backward compatibility */
    4646
    4747/*
  • trunk/src/emx/include/sys/termio.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* sys/termio.h (emx+gcc) */
    2 
     1/* $Id: $ */
     2/** @file
     3 * EMX
     4 */
    35#ifndef _SYS_TERMIO_H
    46#define _SYS_TERMIO_H
    57
    6 #if defined (__cplusplus)
    7 extern "C" {
    8 #endif
    98
    109/* Request codes */
     
    150149};
    151150
    152 #if defined (__cplusplus)
    153 }
    154 #endif
    155 
    156151#endif /* not _SYS_TERMIO_H */
  • trunk/src/emx/include/sys/termios.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
    1 /* sys/termios.h (emx+gcc) */
     1/* $Id$ */
     2/** @file
     3 * EMX.
     4 */
    25
    36#ifndef _SYS_TERMIOS_H_
    47#define _SYS_TERMIOS_H_
    58
    6 #if defined (__cplusplus)
    7 extern "C" {
    8 #endif
     9#include <sys/cdefs.h>
     10
    911
    1012/* tcsetattr() */
     
    139141};
    140142
    141 
     143__BEGIN_DECLS
    142144speed_t cfgetispeed (__const__ struct termios *);
    143145speed_t cfgetospeed (__const__ struct termios *);
     
    154156int     cfsetspeed (struct termios *, speed_t);
    155157#endif /* !_POSIX_SOURCE */
    156 
    157 #if defined (__cplusplus)
    158 }
    159 #endif
     158__END_DECLS
    160159
    161160#endif /* not _SYS_TERMIOS_H_ */
  • trunk/src/emx/include/sys/utime.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
    1 
     1/* $Id: $ */
     2/** @file
     3 * FreeBSD 5.1
     4 * @changed bird: the usual emx stuff.
     5 */
    26/*-
    37 * Copyright (c) 1990, 1993
     
    3640 */
    3741
    38 /** @file
    39  * FreeBSD 5.1
    40  * @changed bird: the usual emx stuff.
    41  */
    42 
    4342#ifndef _UTIME_H_
    4443#define _UTIME_H_
  • trunk/src/emx/include/syslog.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* symlink */
     1/* syslog.h,v 1.2 2004/09/14 22:27:36 bird Exp */
    22/** @file
    33 * @see sys/syslog.h.
  • trunk/src/emx/include/termcap.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* termcap.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * GNU
     4 * @see gnu/termcap.h
     5 */
    16#include <gnu/termcap.h>
  • trunk/src/emx/include/termio.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* termio.h (emx+gcc) */
    2 
     1/* termio.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * EMX
     4 * @see sys/termio.h
     5 */
    36#ifndef _TERMIO_H
    47#define _TERMIO_H
  • trunk/src/emx/include/termios.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1505 r1506  
     1/* termios.h,v 1.4 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * EMX
     4 * @see sys/termios.h.
     5 */
    16#include <sys/termios.h>
  • trunk/src/emx/include/ternary.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* ternary.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* ternary.h - Ternary Search Trees
    27   Copyright 2001 Free Software Foundation, Inc.
     
    3439ternary_node;
    3540
    36 /* Insert string S into tree P, associating it with DATA. 
     41/* Insert string S into tree P, associating it with DATA.
    3742   Return the data in the tree associated with the string if it's
    3843   already there, and replace is 0.
     
    4247                            PTR data, int replace));
    4348
    44 /* Delete the ternary search tree rooted at P. 
     49/* Delete the ternary search tree rooted at P.
    4550   Does NOT delete the data you associated with the strings. */
    4651void ternary_cleanup PARAMS ((ternary_tree p));
  • trunk/src/emx/include/time.h

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1505 r1506  
     1/** @file
     2 * FreeBSD 5.1
     3 *
     4 * @changed EMX isms.
     5 * @changed Removed timezone() function as it clashes with the timezone
     6 *          variable defined in EMX and OGBSI6.
     7 * @changed Changed CLK_TCK and CLOCKS_PER_SEC to 100.
     8 * @changed Commented out tm_gmtoff and tm_zone in struct tm as LIBC doesn't
     9 *          implement these yet.
     10 *
     11 * @todo    Implement tm_gmtoff and tm_zone members in struct tm.
     12 * @todo    Implement clock_getres(), clock_gettime(), clock_settime(), nanosleep().
     13 *          asctime_r(), ctime_r(), gmtime_r() and localtime_r() which are defined in
     14 *          various POSIX standard revisions.
     15 * @todo    Implement tzsetwall(), timelocal(), timegm() which are BSD specific.
     16 */
    117/*
    218 * Copyright (c) 1989, 1993
     
    4359 */
    4460
    45 /** @file
    46  * FreeBSD 5.1
    47  *
    48  * @changed EMX isms.
    49  * @changed Removed timezone() function as it clashes with the timezone
    50  *          variable defined in EMX and OGBSI6.
    51  * @changed Changed CLK_TCK and CLOCKS_PER_SEC to 100.
    52  * @changed Commented out tm_gmtoff and tm_zone in struct tm as LIBC doesn't
    53  *          implement these yet.
    54  *
    55  * @todo    Implement tm_gmtoff and tm_zone members in struct tm.
    56  * @todo    Implement clock_getres(), clock_gettime(), clock_settime(), nanosleep().
    57  *          asctime_r(), ctime_r(), gmtime_r() and localtime_r() which are defined in
    58  *          various POSIX standard revisions.
    59  * @todo    Implement tzsetwall(), timelocal(), timegm() which are BSD specific.
    60  */
    61 
    6261#ifndef _TIME_H_
    6362#define _TIME_H_
  • trunk/src/emx/include/types.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1505 r1506  
    1 /* toolkit compatibility. */
     1/* types.h,v 1.4 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * IGCC, OS/2 Tcpip compataility.
     4 */
    25#ifndef __TYPES_H_
    36#define __TYPES_H_
     
    1417
    1518#include <errno.h>
    16 /*#include <nerrno.h> */
     19#include <nerrno.h>
    1720#include <sys/time.h>
    1821#include <utils.h>
  • trunk/src/emx/include/uconv.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* uconv.h,v 1.3 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * IGCC.
     4 */
    15/*
    26 * Legalesy-free Unicode API interface for OS/2
     
    1418#define __UCONV_H__
    1519
    16 #ifdef __cplusplus
    17 extern "C" {
    18 #endif
     20#include <unidef.h>
     21#include <sys/cdefs.h>
    1922
    20 #include <unidef.h>
     23__BEGIN_DECLS
    2124
    2225/* Substitution options */
     
    128131#define UCONV_NOTIMPLEMENTED    ULS_NOTIMPLEMENTED
    129132
    130 #ifdef __cplusplus
    131 }
    132 #endif
     133__END_DECLS
    133134
    134135#endif /* __UCONV_H__ */
  • trunk/src/emx/include/ulimit.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* ulimit.h (emx+gcc) */
     1/* ulimit.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 * @changed bird: Added EMX and Linux defines.
     5 */
     6/*-
     7 * Copyright (c) 2002 Kyle Martin <mkm@ieee.org>
     8 * All rights reserved.
     9 *
     10 * Redistribution and use in source and binary forms, with or without
     11 * modification, are permitted provided that the following conditions
     12 * are met:
     13 * 1. Redistributions of source code must retain the above copyright
     14 *    notice, this list of conditions and the following disclaimer.
     15 * 2. Redistributions in binary form must reproduce the above copyright
     16 *    notice, this list of conditions and the following disclaimer in the
     17 *    documentation and/or other materials provided with the distribution.
     18 *
     19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
     20 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     22 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
     23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     29 * SUCH DAMAGE.
     30 *
     31 * $FreeBSD: src/include/ulimit.h,v 1.4 2003/01/08 01:18:13 tjr Exp $
     32 */
    233
    3 #ifndef _ULIMIT_H
    4 #define _ULIMIT_H
     34#ifndef _ULIMIT_H_
     35#define _ULIMIT_H_
    536
    6 #include <sys/ulimit.h>
     37#include <sys/cdefs.h>
    738
    8 #if defined (__cplusplus)
    9 extern "C" {
    10 #endif
     39#define UL_GETFSIZE     1
     40#define UL_SETFSIZE     2
    1141
    12 long ulimit (int, ...);
     42/* bird: emx start */
     43#define UL_GFILLIM      UL_GETFSIZE
     44#define UL_SFILLIM      UL_SETFSIZE
     45#define UL_GMEMLIM      3
     46#define UL_NOFILES      4
     47#define UL_OBJREST      81
     48/* GNU/Linux compatability. */
     49#define __UL_GETMAXBRK  UL_GMEMLIM
     50#define __UL_GETOPENMAX UL_NOFILES
     51/* bird: emx end */
    1352
    14 long _ulimit (int, ...);
     53__BEGIN_DECLS
     54long    ulimit(int, ...);
     55__END_DECLS
    1556
    16 #if defined (__cplusplus)
    17 }
    18 #endif
    19 
    20 #endif /* not _ULIMIT_H */
     57#endif /* !_ULIMIT_H_ */
  • trunk/src/emx/include/ulserr.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
    44#ifndef ulserr_h__
    55#define ulserr_h__
    6 #warning Please, don not use ulserr.h. You should be using ulserrno.h!
     6#warning Please, do not use ulserr.h. You should be using ulserrno.h!
    77#include <ulserrno.h>
    88#endif /* ulserr_h__ */
  • trunk/src/emx/include/ulserrno.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* ulserrno.h,v 1.3 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * IGCC.
     4 */
    15/*
    26 * Legalesy-free Unicode API interface for OS/2
  • trunk/src/emx/include/ulsitem.h

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
     1/* ulsitem.h,v 1.3 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * IGCC.
     4 */
    15/*
    26 * Legalesy-free Unicode API interface for OS/2
  • trunk/src/emx/include/umalloc.h

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r1505 r1506  
    1 /* umalloc.h (emx+gcc) */
     1/* umalloc.h,v 1.4 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * EMX.
     4 */
     5
    26
    37#ifndef _UMALLOC_H
     
    711#include <sys/_types.h>
    812
    9 #if defined (__cplusplus)
    10 extern "C" {
    11 #endif
     13__BEGIN_DECLS
    1214
    1315#if !defined (_SIZE_T)
     
    99101void *_utmalloc (Heap_t, size_t);
    100102
    101 #if defined (__cplusplus)
    102 }
    103 #endif
     103__END_DECLS
    104104
    105105#endif /* not _UMALLOC_H */
  • trunk/src/emx/include/unidef.h

    • Property cvs2svn:cvs-rev changed from 1.7 to 1.8
    r1505 r1506  
    1414#define __UNIDEF_H__
    1515
    16 #ifdef __cplusplus
    17 extern "C" {
    18 #endif
    19 
     16#include <sys/cdefs.h>
    2017#include <stddef.h>
    2118#include <time.h>
     
    243240
    244241
     242__BEGIN_DECLS
    245243/* Locale Management Function Prototypes */
    246 
    247244int APIENTRY UniCreateLocaleObject (int locale_spec_type, const void *locale_spec,
    248245  LocaleObject *locale_object_ptr);
     
    362359int APIENTRY UniQueryCountryName (UniChar *country, UniChar *isolang, UniChar **infoitem);
    363360
    364 
    365 #ifdef __cplusplus
    366 }
    367 #endif
     361__END_DECLS
    368362
    369363#endif /* __UNIDEF_H__ */
  • trunk/src/emx/include/unikbd.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* unikbd.h,v 1.1 2003/05/27 16:03:42 bird Exp */
     1/* unikbd.h,v 1.2 2004/09/14 22:27:36 bird Exp */
    22/** @file
    33 * Legalesy-free Unicode API interface for OS/2
     
    1414#define __UNIKBD_H__
    1515
    16 #ifdef __cplusplus
    17 extern "C" {
    18 #endif
    1916
    2017/*******************************************************************************
    2118*   Header Files                                                               *
    2219*******************************************************************************/
     20#include <sys/cdefs.h>
    2321#include <unidef.h>
    2422
     
    341339*   Internal Functions                                                         *
    342340*******************************************************************************/
     341__BEGIN_DECLS
    343342APIRET KBDLINK UniCreateKeyboard(KHAND * phKeyboard, const KBDNAME * puszName, ULONG ulMode);
    344343APIRET KBDLINK UniDestroyKeyboard(KHAND hKeyboard);
     
    349348APIRET KBDLINK UniTranslateDeadkey(KHAND hKeyboard, VDKEY usDead, UniChar ucIn, UniChar * pucOut, VDKEY * pusDeadKey);
    350349APIRET KBDLINK UniUntranslateKey(KHAND hKeyboard, UniChar uc, VDKEY vdkey, VSCAN * pscan, ULONG * eshift);
    351 
    352 #ifdef __cplusplus
    353 }
     350__END_DECLS
     351
    354352#endif
    355 #endif
    356 
    357 
     353
     354
  • trunk/src/emx/include/unistd.h

    • Property cvs2svn:cvs-rev changed from 1.17 to 1.18
    r1505 r1506  
     1/* $Id: */
     2/** @file
     3 * EMX/FreeBSD 5.1
     4 *
     5 * @changed Commented out stuff which isn't implemented, TCPIP stuff at bottom.
     6 * @todo    Several man-years.. ;) Serious, complete the FreeBSD 5.1 merge and
     7 *          implement all the functions. Currently there is a bunch of POSIX
     8 *          #defines missing.
     9 */
     10
    111/*-
    212 * Copyright (c) 1991, 1993, 1994
     
    3545 */
    3646
    37 /** @file
    38  * EMX/FreeBSD 5.1
    39  *
    40  * @changed Commented out stuff which isn't implemented, TCPIP stuff at bottom.
    41  * @todo    Several man-years.. ;) Serious, complete the FreeBSD 5.1 merge and
    42  *          implement all the functions. Currently there is a bunch of POSIX
    43  *          #defines missing.
    44  */
    45 
    4647#ifndef _UNISTD_H_
    4748#define _UNISTD_H_
  • trunk/src/emx/include/utils.h

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1505 r1506  
    1 /* emx/gcc */
     1/* utils.h,v 1.6 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * OS/2 TCPIP
     4 */
     5
    26#ifndef _UTILS_H_
    37#define _UTILS_H_
     8
     9#include <sys/cdefs.h>
    410
    511#ifndef TCPCALL
     
    2733#endif
    2834
    29 #ifdef __cplusplus
    30 extern "C" {
    31 #endif
     35__BEGIN_DECLS
    3236
    3337#if !defined(_SIZE_T_DECLARED) && !defined(_SIZE_T) /* bird: emx */
     
    4044int strncasecmp (__const__ char *, __const__ char *, size_t);
    4145
    42 #ifdef __cplusplus
    43 }
    44 #endif
     46__END_DECLS
    4547
    4648/* MIN/MAX */
  • trunk/src/emx/include/utime.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* utime.h (emx+gcc) */
    2 
    3 #ifndef _UTIME_H
    4 #define _UTIME_H
     1/* utime.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * FreeBSD 5.1
     4 * @see sys/utime.h
     5 */
    56#include <sys/utime.h>
    6 #endif /* not _UTIME_H */
  • trunk/src/emx/include/varargs.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
    1 /* varargs.h (emx+gcc) */
     1/* varargs.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * FreeBSD 5.2
     4 */
     5/*-
     6 * Copyright (c) 1990, 1993
     7 *      The Regents of the University of California.  All rights reserved.
     8 * (c) UNIX System Laboratories, Inc.
     9 * All or some portions of this file are derived from material licensed
     10 * to the University of California by American Telephone and Telegraph
     11 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
     12 * the permission of UNIX System Laboratories, Inc.
     13 *
     14 * Redistribution and use in source and binary forms, with or without
     15 * modification, are permitted provided that the following conditions
     16 * are met:
     17 * 1. Redistributions of source code must retain the above copyright
     18 *    notice, this list of conditions and the following disclaimer.
     19 * 2. Redistributions in binary form must reproduce the above copyright
     20 *    notice, this list of conditions and the following disclaimer in the
     21 *    documentation and/or other materials provided with the distribution.
     22 * 3. All advertising materials mentioning features or use of this software
     23 *    must display the following acknowledgement:
     24 *      This product includes software developed by the University of
     25 *      California, Berkeley and its contributors.
     26 * 4. Neither the name of the University nor the names of its contributors
     27 *    may be used to endorse or promote products derived from this software
     28 *    without specific prior written permission.
     29 *
     30 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
     31 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     32 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     33 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
     34 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     35 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
     36 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
     37 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
     38 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
     39 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
     40 * SUCH DAMAGE.
     41 *
     42 *      @(#)varargs.h   8.2 (Berkeley) 3/22/94
     43 * $FreeBSD: src/sys/i386/include/varargs.h,v 1.8 1999/08/28 00:44:27 peter Exp $
     44 */
    245
    3 #ifndef _VARARGS_H
    4 #define _VARARGS_H
     46#ifndef _VARARGS_H_
     47#define _VARARGS_H_
    548
    6 #if !defined (NULL)
    7 #if defined (__cplusplus)
    8 #define NULL 0
     49typedef char *va_list;
     50
     51#define __va_size(type) \
     52        (((sizeof(type) + sizeof(int) - 1) / sizeof(int)) * sizeof(int))
     53
     54#ifdef __GNUC__
     55#define va_alist        __builtin_va_alist
     56#endif
     57#if __GNUC__ > 1
     58#define va_dcl  int va_alist; ...
    959#else
    10 #define NULL ((void *)0)
    11 #endif
     60#define va_dcl  int va_alist;
    1261#endif
    1362
    14 #define _VA_LIST
     63#define va_start(ap) \
     64        ((ap) = (va_list)&va_alist)
    1565
    16 #define _VA_ROUND(type) ((sizeof (type) + 3) & -4)
     66#define va_arg(ap, type) \
     67        (*(type *)((ap) += __va_size(type), (ap) - __va_size(type)))
    1768
    18 #define va_alist __builtin_va_alist
    19 #define va_dcl int __builtin_va_alist;
    20 #define va_list char *
     69#define va_end(ap)
    2170
    22 #define va_start(alist) alist = (char *)&__builtin_va_alist
    23 #define va_end(alist) (alist = 0, (void)0)
    24 #define __std_va_arg(alist,t) (alist += _VA_ROUND (t), \
    25                                *((t *)(alist - _VA_ROUND (t))))
    26 
    27 #ifdef __BOUNDS_CHECKING_ON
    28 #include <fix-args.h>
    29 #else
    30 #define va_arg(alist,t) __std_va_arg(alist,t)
    31 #endif
    32 
    33 #endif /* not _VARARGS_H */
     71#endif /* !_VARARGS_H_ */
  • trunk/src/emx/include/xregex.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* xregex.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* This file redefines all regex external names before including
    27   a renamed copy of glibc's regex.h.  */
     
    510#define _XREGEX_H 1
    611
    7 #  define regfree xregfree 
     12#  define regfree xregfree
    813#  define regexec xregexec
    914#  define regcomp xregcomp
  • trunk/src/emx/include/xregex2.h

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* xregex2.h,v 1.2 2004/09/14 22:27:36 bird Exp */
     2/** @file
     3 * GNU, -liberty.
     4 */
     5
    16/* Definitions for data structures and routines for the regular
    27   expression library, version 0.12.
  • trunk/src/emx/src/lib/misc/basename.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
    11/*
    2     Locale support implementation through OS/2 Unicode API.
    3     Copyright (c) 2003 InnoTek Systemberatung GmbH
    4 
    5     For conditions of distribution and use, see the file COPYING.
    6 
    7     Standard XPG basename() implementation.
    8     Returns a pointer to the last component of a pathname.
    9     If pathname ends with a slash, it is removed.
    10     If pathname is NULL or empty, "." is returned.
    11     If pathname consist only of slashes, "/" is returned.
    12 */
     2 * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
     3 * All rights reserved.
     4 *
     5 * Redistribution and use in source and binary forms, with or without
     6 * modification, are permitted provided that the following conditions
     7 * are met:
     8 * 1. Redistributions of source code must retain the above copyright
     9 *    notice, this list of conditions and the following disclaimer.
     10 * 2. Redistributions in binary form must reproduce the above copyright
     11 *    notice, this list of conditions and the following disclaimer in the
     12 *    documentation and/or other materials provided with the distribution.
     13 * 3. The name of the author may not be used to endorse or promote products
     14 *    derived from this software without specific prior written permission.
     15 *
     16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
     17 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
     18 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
     19 * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     20 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     21 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     22 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     23 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     24 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
     25 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     26 */
    1327
    1428#include "libc-alias.h"
     29#if 0
     30#ifndef lint
     31static char rcsid[] = "$OpenBSD: basename.c,v 1.4 1999/05/30 17:10:30 espie Exp $";
     32#endif /* not lint */
     33#endif
     34#include <sys/cdefs.h>
     35__FBSDID("$FreeBSD: src/lib/libc/gen/basename.c,v 1.7 2002/12/30 01:41:14 marcel Exp $");
     36
     37#include <errno.h>
    1538#include <libgen.h>
     39#include <stdlib.h>
    1640#include <string.h>
    17 #include <ctype.h>
     41#include <sys/param.h>
    1842
    19 char *_STD(basename) (char *pathname); /* header is messing with the name redefinition. */
     43char *
     44_STD(basename)(path)
     45        const char *path;
     46{
     47        static char *bname = NULL;
     48        const char *endp, *startp;
    2049
    21 char *_STD(basename) (char *pathname)
    22 {
    23   char *x;
    24   char *oldpath = pathname;
     50        if (bname == NULL) {
     51                bname = (char *)malloc(MAXPATHLEN);
     52                if (bname == NULL)
     53                        return(NULL);
     54        }
    2555
    26   if (!pathname || !*pathname)
    27     return ".";
     56        /* Empty or NULL string gets treated as "." */
     57        if (path == NULL || *path == '\0') {
     58                (void)strcpy(bname, ".");
     59                return(bname);
     60        }
    2861
    29   /* Skip drive specifier, if any */
    30   if (isalpha (pathname [0]) && (pathname [1] == ':'))
    31     pathname += 2;
     62        /* Strip trailing slashes */
     63        endp = path + strlen(path) - 1;
     64        while (endp > path && (*endp == '/' || *endp == '\\'))
     65                endp--;
    3266
    33   x = strchr (pathname, 0);
    34   /* Remove all trailing slashes */
    35   while ((x [-1] == '/' || x [-1] == '\\') && (x > pathname))
    36     *--x = 0;
    37   if (x == pathname)
    38   {
    39     /* If pathname contains a drive letter, returns DRIVE:/, not just "/" */
    40     if (oldpath != pathname)
    41     {
    42       *x++ = '/';
    43       *x = 0;
    44       return oldpath;
    45     }
    46     return "/";
    47   }
     67        /* All slashes becomes "/" */
     68        if (endp == path && (*endp == '/' || *endp == '\\')) {
     69                (void)strcpy(bname, "/");
     70                return(bname);
     71        }
    4872
    49   while ((x > pathname) && (x [-1] != '/') && (x [-1] != '\\'))
    50     x--;
     73        /* Find the start of the base */
     74        startp = endp;
     75        while (startp > path && *(startp - 1) != '/' && *(startp - 1) != '\\' && *(startp - 1) != ':')
     76                startp--;
    5177
    52   return x;
     78        if (endp - startp + 2 > MAXPATHLEN) {
     79                errno = ENAMETOOLONG;
     80                return(NULL);
     81        }
     82        (void)strncpy(bname, startp, endp - startp + 1);
     83        bname[endp - startp + 1] = '\0';
     84        return(bname);
    5385}
     86
  • trunk/src/emx/src/lib/misc/dirname.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r1505 r1506  
     1/* $Id$ */
    12/*
    2     Locale support implementation through OS/2 Unicode API.
    3     Copyright (c) 2003 InnoTek Systemberatung GmbH
    4 
    5     For conditions of distribution and use, see the file COPYING.
    6 
    7     Standard XPG dirname() implementation.
    8     This function complements the XPG basename() function. If path is
    9     NULL, a empty string, or does not contain slashes (forward or backward),
    10     "." is returned. Otherwise it returns a pointer to the directory part
    11     of the pathname; the last slash in the pathname is replaced with zero.
    12 */
     3 * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
     4 * All rights reserved.
     5 *
     6 * Redistribution and use in source and binary forms, with or without
     7 * modification, are permitted provided that the following conditions
     8 * are met:
     9 * 1. Redistributions of source code must retain the above copyright
     10 *    notice, this list of conditions and the following disclaimer.
     11 * 2. Redistributions in binary form must reproduce the above copyright
     12 *    notice, this list of conditions and the following disclaimer in the
     13 *    documentation and/or other materials provided with the distribution.
     14 * 3. The name of the author may not be used to endorse or promote products
     15 *    derived from this software without specific prior written permission.
     16 *
     17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
     18 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
     19 * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
     20 * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
     21 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     22 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
     23 * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
     24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     25 * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
     26 * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     27 */
    1328
    1429#include "libc-alias.h"
     30#if 0
     31#ifndef lint
     32static char rcsid[] = "$OpenBSD: dirname.c,v 1.4 1999/05/30 17:10:30 espie Exp $";
     33#endif /* not lint */
     34#endif
     35#include <sys/cdefs.h>
     36__FBSDID("$FreeBSD: src/lib/libc/gen/dirname.c,v 1.7 2002/12/30 01:41:14 marcel Exp $");
     37
     38#include <errno.h>
    1539#include <libgen.h>
     40#include <stdlib.h>
    1641#include <string.h>
     42#include <sys/param.h>
    1743
    18 char *_STD(dirname) (char *pathname)
     44char *
     45_STD(dirname)(path)
     46        const char *path;
    1947{
    20   char *x;
     48        static char *bname = NULL;
     49        const char *endp;
    2150
    22   if (!pathname || !*pathname)
    23     return ".";
     51        if (bname == NULL) {
     52                bname = (char *)malloc(MAXPATHLEN);
     53                if (bname == NULL)
     54                        return(NULL);
     55        }
    2456
    25   x = strchr (pathname, 0);
    26   while ((x > pathname) && (x [-1] != '/') && (x [-1] != '\\') && (x [-1] != ':'))
    27     x--;
    28   while ((x > pathname) && ((x [-1] == '/') || (x [-1] == '\\')))
    29     x--;
     57        /* Empty or NULL string gets treated as "." */
     58        if (path == NULL || *path == '\0') {
     59                (void)strcpy(bname, ".");
     60                return(bname);
     61        }
    3062
    31   if (x == pathname)
    32     return ".";
     63        /* Strip trailing slashes */
     64        endp = path + strlen(path) - 1;
     65        while (endp > path && (*endp == '/' || *endp == '\\'))
     66                endp--;
    3367
    34   *x = 0;
    35   return pathname;
     68        /* Find the start of the dir */
     69        while (endp > path && *endp != '/' && *endp != '/' && *endp != ':')
     70                endp--;
     71
     72        /* Either the dir is "/" or there are no slashes */
     73        if (endp == path) {
     74                (void)strcpy(bname, *endp == '/' || *endp == '\\' ? "/" : ".");
     75                return(bname);
     76        } else {
     77                do {
     78                        endp--;
     79                } while (endp > path && (*endp == '/' || *endp == '\\'));
     80        }
     81
     82        if (endp - path + 2 > MAXPATHLEN) {
     83                errno = ENAMETOOLONG;
     84                return(NULL);
     85        }
     86        (void)strncpy(bname, path, endp - path + 1);
     87        bname[endp - path + 1] = '\0';
     88        return(bname);
    3689}
  • trunk/src/emx/src/lib/sys/pathrewrite.c

    • Property cvs2svn:cvs-rev changed from 1.2 to 1.3
    r1505 r1506  
    207207
    208208
     209/*
     210 * Unix root.
     211 */
     212/** The unixroot directory. */
     213static char                 gszUnixRoot[260];
     214/** /@unixroot/ -> ${UNIXROOT} rewrite rules */
     215static __LIBC_PATHREWRITE   gBltinRule_unixroot =
     216{   __LIBC_PRWF_CASE_SENSITIVE | __LIBC_PRWF_TYPE_DIR,      "/@unixroot",  10, gszUnixRoot, 0 };
     217
     218
    209219/*******************************************************************************
    210220*   Internal Functions                                                         *
    211221*******************************************************************************/
    212222static void __libc_pathRewriteDeleteDir(PDIRECTORY pDir);
    213 void __libc_pathRewriteInit(void);
     223static void __libc_pathRewriteInit(void);
    214224/* static void __libc_pathRewriteTerm(void); */
     225
     226_CRT_INIT1(__libc_pathRewriteInit)
    215227
    216228/**
     
    218230 * @remark  Cannot be static as GCC will optimize it away then.
    219231 */
    220 void __libc_pathRewriteInit(void)
    221 {
     232static void __libc_pathRewriteInit(void)
     233{
     234    static void *pfnDummy = __libc_pathRewriteInit;
    222235    LIBCLOG_ENTER("\n");
    223236    const char *psz;
     237
     238    /*
     239     * Extra unix features.
     240     */
     241    if (1)
     242    {
     243        /*
     244         * Check for unixroot.
     245         */
     246        psz = getenv("UNIXROOT");
     247        if (psz)
     248        {
     249            size_t cch = strlen(psz);
     250            if (cch < sizeof(gszUnixRoot) - 1)
     251            {
     252                memcpy(gszUnixRoot, psz, cch + 1);
     253                gBltinRule_unixroot.cchTo = cch;
     254                __libc_PathRewriteAdd(&gBltinRule_unixroot, 1);
     255            }
     256        }
     257    }
    224258
    225259    /*
     
    321355            memcpy(szSym, pszSym, pszSymEnd - pszSym);
    322356            szSym[pszSymEnd - pszSym] = '\0';
    323             rc = DosQueryProcAddr(hmod, 0, (PSZ)szSym, (PFN*)&pfnRewriter);
     357            rc = DosQueryProcAddr(hmod, 0, (PSZ)szSym, (PFN*)(void *)&pfnRewriter);
    324358            if (!rc)
    325359            {
     
    341375
    342376    LIBCLOG_RETURN_VOID();
     377    pfnDummy = pfnDummy;
    343378}
    344 _CRT_INIT1(__libc_pathRewriteInit);
    345379
    346380
Note: See TracChangeset for help on using the changeset viewer.