Changeset 783


Ignore:
Timestamp:
Oct 2, 2003, 3:07:48 AM (22 years ago)
Author:
bird
Message:

Initial porting.

Location:
trunk/src/emx/src/lib/bsd
Files:
1 added
15 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/lib/bsd/gen/_rand48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516__FBSDID("$FreeBSD: src/lib/libc/gen/_rand48.c,v 1.2 2002/03/22 21:52:05 obrien Exp $");
  • trunk/src/emx/src/lib/bsd/gen/drand48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516__FBSDID("$FreeBSD: src/lib/libc/gen/drand48.c,v 1.2 2002/03/22 21:52:05 obrien Exp $");
     
    2021
    2122double
    22 drand48(void)
     23_STD(drand48)(void)
    2324{
    2425        return erand48(_rand48_seed);
  • trunk/src/emx/src/lib/bsd/gen/erand48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516__FBSDID("$FreeBSD: src/lib/libc/gen/erand48.c,v 1.2 2002/03/22 21:52:05 obrien Exp $");
     
    1819
    1920double
    20 erand48(unsigned short xseed[3])
     21_STD(erand48)(unsigned short xseed[3])
    2122{
    2223        _dorand48(xseed);
  • trunk/src/emx/src/lib/bsd/gen/jrand48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516__FBSDID("$FreeBSD: src/lib/libc/gen/jrand48.c,v 1.2 2002/03/22 21:52:05 obrien Exp $");
     
    1819
    1920long
    20 jrand48(unsigned short xseed[3])
     21_STD(jrand48)(unsigned short xseed[3])
    2122{
    2223        _dorand48(xseed);
  • trunk/src/emx/src/lib/bsd/gen/lcong48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516__FBSDID("$FreeBSD: src/lib/libc/gen/lcong48.c,v 1.2 2002/03/22 21:52:05 obrien Exp $");
     
    2223
    2324void
    24 lcong48(unsigned short p[7])
     25_STD(lcong48)(unsigned short p[7])
    2526{
    2627        _rand48_seed[0] = p[0];
  • trunk/src/emx/src/lib/bsd/gen/lrand48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516__FBSDID("$FreeBSD: src/lib/libc/gen/lrand48.c,v 1.2 2002/03/22 21:52:05 obrien Exp $");
     
    2021
    2122long
    22 lrand48(void)
     23_STD(lrand48)(void)
    2324{
    2425        _dorand48(_rand48_seed);
  • trunk/src/emx/src/lib/bsd/gen/mrand48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516__FBSDID("$FreeBSD: src/lib/libc/gen/mrand48.c,v 1.2 2002/03/22 21:52:05 obrien Exp $");
     
    2021
    2122long
    22 mrand48(void)
     23_STD(mrand48)(void)
    2324{
    2425        _dorand48(_rand48_seed);
  • trunk/src/emx/src/lib/bsd/gen/nrand48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516__FBSDID("$FreeBSD: src/lib/libc/gen/nrand48.c,v 1.2 2002/03/22 21:52:05 obrien Exp $");
     
    1819
    1920long
    20 nrand48(unsigned short xseed[3])
     21_STD(nrand48)(unsigned short xseed[3])
    2122{
    2223        _dorand48(xseed);
  • trunk/src/emx/src/lib/bsd/gen/seed48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include <sys/cdefs.h>
    1516__FBSDID("$FreeBSD: src/lib/libc/gen/seed48.c,v 1.2 2002/03/22 21:52:05 obrien Exp $");
     
    2223
    2324unsigned short *
    24 seed48(unsigned short xseed[3])
     25_STD(seed48)(unsigned short xseed[3])
    2526{
    2627        static unsigned short sseed[3];
  • trunk/src/emx/src/lib/bsd/gen/srand48.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    1212 */
    1313
     14#include "libc-alias.h"
    1415#include "rand48.h"
    1516
     
    1920
    2021void
    21 srand48(long seed)
     22_STD(srand48)(long seed)
    2223{
    2324        _rand48_seed[0] = RAND48_SEED_0;
  • trunk/src/emx/src/lib/bsd/stdlib/heapsort.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    3838static char sccsid[] = "@(#)heapsort.c  8.1 (Berkeley) 6/4/93";
    3939#endif /* LIBC_SCCS and not lint */
     40#include "libc-alias.h" /* bird: Get the right mapping of libc functions. */
    4041#include <sys/cdefs.h>
    4142__FBSDID("$FreeBSD: src/lib/libc/stdlib/heapsort.c,v 1.4 2002/03/21 22:48:41 obrien Exp $");
  • trunk/src/emx/src/lib/bsd/stdlib/merge.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    3838static char sccsid[] = "@(#)merge.c     8.2 (Berkeley) 2/14/94";
    3939#endif /* LIBC_SCCS and not lint */
     40#include "libc-alias.h" /* bird: Get the right mapping of libc functions. */
    4041#include <sys/cdefs.h>
    4142__FBSDID("$FreeBSD: src/lib/libc/stdlib/merge.c,v 1.6 2002/03/21 22:48:42 obrien Exp $");
  • trunk/src/emx/src/lib/bsd/stdlib/qsort.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    3535static char sccsid[] = "@(#)qsort.c     8.1 (Berkeley) 6/4/93";
    3636#endif /* LIBC_SCCS and not lint */
     37#include "libc-alias.h" /* bird: Get the right mapping of libc functions. */
    3738#include <sys/cdefs.h>
    3839__FBSDID("$FreeBSD: src/lib/libc/stdlib/qsort.c,v 1.12 2002/09/10 02:04:49 wollman Exp $");
     
    108109#ifdef I_AM_QSORT_R
    109110void
    110 qsort_r(void *a, size_t n, size_t es, void *thunk, cmp_t *cmp)
     111_STD(qsort_r)(void *a, size_t n, size_t es, void *thunk, cmp_t *cmp)
    111112#else
    112113#define thunk NULL
    113114void
    114 qsort(void *a, size_t n, size_t es, cmp_t *cmp)
     115_STD(qsort)(void *a, size_t n, size_t es, cmp_t *cmp)
    115116#endif
    116117{
     
    122123        if (n < 7) {
    123124                for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es)
    124                         for (pl = pm; 
     125                        for (pl = pm;
    125126                             pl > (char *)a && CMP(thunk, pl - es, pl) > 0;
    126127                             pl -= es)
     
    170171        if (swap_cnt == 0) {  /* Switch to insertion sort */
    171172                for (pm = (char *)a + es; pm < (char *)a + n * es; pm += es)
    172                         for (pl = pm; 
     173                        for (pl = pm;
    173174                             pl > (char *)a && CMP(thunk, pl - es, pl) > 0;
    174175                             pl -= es)
  • trunk/src/emx/src/lib/bsd/stdlib/radixsort.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    3838static char sccsid[] = "@(#)radixsort.c 8.2 (Berkeley) 4/28/95";
    3939#endif /* LIBC_SCCS and not lint */
     40#include "libc-alias.h" /* bird: Get the right mapping of libc functions. */
    4041#include <sys/cdefs.h>
    4142__FBSDID("$FreeBSD: src/lib/libc/stdlib/radixsort.c,v 1.6 2002/03/22 09:18:34 obrien Exp $");
  • trunk/src/emx/src/lib/bsd/stdlib/random.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.2
    r782 r783  
    3535static char sccsid[] = "@(#)random.c    8.2 (Berkeley) 5/19/95";
    3636#endif /* LIBC_SCCS and not lint */
     37#include "libc-alias.h" /* bird: Get the right mapping of libc functions. */
    3738#include <sys/cdefs.h>
    3839__FBSDID("$FreeBSD: src/lib/libc/stdlib/random.c,v 1.22 2003/02/04 11:24:08 ache Exp $");
Note: See TracChangeset for help on using the changeset viewer.