Changeset 967


Ignore:
Timestamp:
Jan 11, 2004, 8:00:09 PM (22 years ago)
Author:
bird
Message:

Initial porting.

Location:
trunk/src/emx/src/lib/bsd
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/bsd/db/hash/hash_bigkey.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    3535 */
    3636
     37#include "libc-alias.h" /*bird*/
    3738#if defined(LIBC_SCCS) && !defined(lint)
    3839static char sccsid[] = "@(#)hash_bigkey.c       8.3 (Berkeley) 5/31/94";
  • trunk/src/emx/src/lib/bsd/db/hash/hash_buf.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    3535 */
    3636
     37#include "libc-alias.h" /*bird*/
    3738#if defined(LIBC_SCCS) && !defined(lint)
    3839static char sccsid[] = "@(#)hash_buf.c  8.5 (Berkeley) 7/15/94";
  • trunk/src/emx/src/lib/bsd/db/hash/hash_func.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    3535 */
    3636
     37#include "libc-alias.h" /*bird*/
    3738#if defined(LIBC_SCCS) && !defined(lint)
    3839static char sccsid[] = "@(#)hash_func.c 8.2 (Berkeley) 2/21/94";
  • trunk/src/emx/src/lib/bsd/db/hash/hash_page.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    7373
    7474#include <db.h>
     75#ifndef __DBINTERFACE_PRIVATE
     76#error "__DBINTERFACE_PRIVATE is not defined!"
     77#endif
    7578#include "hash.h"
    7679#include "page.h"
  • trunk/src/emx/src/lib/bsd/db/hash/ndbm.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    3535 */
    3636
     37#include "libc-alias.h" /*bird*/
    3738#if defined(LIBC_SCCS) && !defined(lint)
    3839static char sccsid[] = "@(#)ndbm.c      8.4 (Berkeley) 7/21/94";
  • trunk/src/emx/src/lib/bsd/stdlib/hcreate.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    44 * Copyright (c) 2001 Christopher G. Demetriou
    55 * All rights reserved.
    6  * 
     6 *
    77 * Redistribution and use in source and binary forms, with or without
    88 * modification, are permitted provided that the following conditions
     
    2020 * 4. The name of the author may not be used to endorse or promote products
    2121 *    derived from this software without specific prior written permission.
    22  * 
     22 *
    2323 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
    2424 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     
    3131 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
    3232 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    33  * 
     33 *
    3434 * <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>>
    3535 */
     
    4747 */
    4848
     49#include "libc-alias.h"
    4950#include <sys/cdefs.h>
    5051#if 0
     
    8990
    9091int
    91 hcreate(size_t nel)
     92_STD(hcreate)(size_t nel)
    9293{
    9394        size_t idx;
     
    131132
    132133void
    133 hdestroy(void)
     134_STD(hdestroy)(void)
    134135{
    135136        struct internal_entry *ie;
     
    152153
    153154ENTRY *
    154 hsearch(ENTRY item, ACTION action)
     155_STD(hsearch)(ENTRY item, ACTION action)
    155156{
    156157        struct internal_head *head;
  • trunk/src/emx/src/lib/bsd/stdlib/insque.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    55 *
    66 * As long as the above copyright statement and this notice remain
    7  * unchanged, you can do what ever you want with this file. 
     7 * unchanged, you can do what ever you want with this file.
    88 */
     9#include "libc-alias.h"
    910#include <sys/cdefs.h>
    1011__FBSDID("$FreeBSD: src/lib/libc/stdlib/insque.c,v 1.3 2003/01/04 07:34:41 tjr Exp $");
     
    1920
    2021void
    21 insque(void *element, void *pred)
     22_STD(insque)(void *element, void *pred)
    2223{
    2324        struct que_elem *prev, *next, *elem;
  • trunk/src/emx/src/lib/bsd/stdlib/lsearch.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    55 *
    66 * As long as the above copyright statement and this notice remain
    7  * unchanged, you can do what ever you want with this file. 
     7 * unchanged, you can do what ever you want with this file.
    88 */
     9#include "libc-alias.h"
    910#include <sys/types.h>
    1011#include <sys/cdefs.h>
     
    2021    int (*)(const void *, const void *), int);
    2122
    22 void *lsearch(const void *key, void *base, size_t *nelp, size_t width,
     23void *_STD(lsearch)(const void *key, void *base, size_t *nelp, size_t width,
    2324    int (*compar)(const void *, const void *))
    2425{
     
    2728}
    2829
    29 void *lfind(const void *key, const void *base, size_t *nelp, size_t width,
     30void *_STD(lfind)(const void *key, const void *base, size_t *nelp, size_t width,
    3031    int (*compar)(const void *, const void *))
    3132{
  • trunk/src/emx/src/lib/bsd/stdlib/remque.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    55 *
    66 * As long as the above copyright statement and this notice remain
    7  * unchanged, you can do what ever you want with this file. 
     7 * unchanged, you can do what ever you want with this file.
    88 */
     9#include "libc-alias.h"
    910#include <sys/cdefs.h>
    1011__FBSDID("$FreeBSD: src/lib/libc/stdlib/remque.c,v 1.3 2003/01/04 07:34:41 tjr Exp $");
     
    1516
    1617void
    17 remque(void *element)
     18_STD(remque)(void *element)
    1819{
    1920        struct que_elem *prev, *next, *elem;
  • trunk/src/emx/src/lib/bsd/stdlib/tdelete.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516#if 0
     
    3334 */
    3435void *
    35 tdelete(const void * __restrict vkey, void ** __restrict vrootp,
     36_STD(tdelete)(const void * __restrict vkey, void ** __restrict vrootp,
    3637    int (*compar)(const void *, const void *))
    3738{
  • trunk/src/emx/src/lib/bsd/stdlib/tfind.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516#if 0
     
    2627/* find a node, or return 0 */
    2728void *
    28 tfind(vkey, vrootp, compar)
     29_STD(tfind)(vkey, vrootp, compar)
    2930        const void *vkey;               /* key to be found */
    3031        void * const *vrootp;           /* address of the tree root */
  • trunk/src/emx/src/lib/bsd/stdlib/tsearch.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516#if 0
     
    2627/* find or insert datum into search tree */
    2728void *
    28 tsearch(vkey, vrootp, compar)
     29_STD(tsearch)(vkey, vrootp, compar)
    2930        const void *vkey;               /* key to be located */
    3031        void **vrootp;                  /* address of tree root */
  • trunk/src/emx/src/lib/bsd/stdlib/twalk.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r966 r967  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516#if 0
     
    5051/* Walk the nodes of a tree */
    5152void
    52 twalk(vroot, action)
     53_STD(twalk)(vroot, action)
    5354        const void *vroot;      /* Root of the tree to be walked */
    5455        void (*action)(const void *, VISIT, int);
Note: See TracChangeset for help on using the changeset viewer.