libcpp.cc
lib/kmalloc.h
sys/video.h
lib/libcpp.h
lib/libcpp.h
ubixos/types.h
sys/_types.h
sys/video.h
lib/kmalloc.h
src/sys/lib/libcpp.cc
int int __cxa_atexit (void(*func)(void *), void *arg, void *d) __cxa_atexit void(*)(void *) func void * arg void * d
void void __cxa_pure_virtual () __cxa_pure_virtual
void void __dso_handle () __dso_handle
void void __pure_virtual () __pure_virtual
void void operator delete (void *ptr) operator delete void * ptr kfree
void void operator delete[] (void *ptr) operator delete[] void * ptr kfree
void * void* operator new (unsigned size) operator new unsigned size kmalloc
void * void* operator new[] (unsigned size) operator new[] unsigned size kmalloc

    /*****************************************************************************************
    Copyright(c)2002-2004TheUbixOSProject
    Allrightsreserved.

    Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,are
    permittedprovidedthatthefollowingconditionsaremet:

    Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistof
    conditions,thefollowingdisclaimerandthelistofauthors.Redistributionsinbinary
    formmustreproducetheabovecopyrightnotice,thislistofconditions,thefollowing
    disclaimerandthelistofauthorsinthedocumentationand/orothermaterialsprovided
    withthedistribution.NeitherthenameoftheUbixOSProjectnorthenamesofits
    contributorsmaybeusedtoendorseorpromoteproductsderivedfromthissoftware
    withoutspecificpriorwrittenpermission.

    THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANY
    EXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOF
    MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALL
    THECOPYRIGHTOWNERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,
    SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENT
    OFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,OR
    TORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHIS
    SOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

    $Id: libcpp_8cc.xml 88 2016-01-12 00:11:29Z reddawg $

    *****************************************************************************************/

    extern"C"
    {
    #include<lib/kmalloc.h>
    #include<sys/video.h>
    void__pure_virtual(){while(1);}

    void__cxa_pure_virtual(){while(1);}

    /*Don'tplanonexitingthekernel...sodonothing.*/
    int__cxa_atexit(void(*func)(void*),void*arg,void*d){return0;}

    void__dso_handle(){while(1);}
    }

    #include<lib/libcpp.h>

    void*operator new[](unsignedsize)
    {
    returnkmalloc(size);
    }

    voidoperator delete[](void*ptr)
    {
    kfree(ptr);

    return;
    }

    void*operator new(unsignedsize)
    {
    void*ptr=kmalloc(size);
    returnptr;
    }

    voidoperator delete(void*ptr)
    {
    kfree(ptr);
    return;
    }

    /***
    $Log: libcpp_8cc.xml,v $
    Revision 1.6  2006/12/19 14:12:52  reddawg
    rtld-elf almost workign

    Revision1.1.1.12006/06/0112:46:16reddawg
    ubix2

    Revision1.22005/10/1200:13:37reddawg
    Removed

    Revision1.1.1.12005/09/2617:24:12reddawg
    nomessage

    Revision1.52004/09/0822:04:10apwillia
    Addedcallingofstaticconstructors,commentedouttty_printfinkprintf(duetodeadlock)

    Revision1.42004/07/2022:58:33reddawg
    retiringtothelaptopforthenightmustsyncinworktoresumefromthere

    Revision1.32004/07/0212:28:24reddawg
    Changesfornewlibc,someonepleasetestthatthekernelstillworks

    Revision1.22004/05/1904:07:43reddawg
    kmalloc(size,pid)nomoreitisnokmalloc(size);thewayitshouldofbeen

    Revision1.1.1.12004/04/1512:07:10reddawg
    UbixOSv1.0

    Revision1.22004/04/1316:36:33reddawg
    Changedourcopyright,itisallnowunderaBSD-Stylelicense

    END
    ***/