Changeset c735afb in mainline


Ignore:
Timestamp:
2018-07-05T21:41:24Z (6 years ago)
Author:
Dzejrou <dzejrou@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
199b6d8
Parents:
b57a3ee
git-author:
Dzejrou <dzejrou@…> (2018-06-25 18:54:33)
git-committer:
Dzejrou <dzejrou@…> (2018-07-05 21:41:24)
Message:

cpp: fix problems caused by new HelenOS changes (and leftowers from rebase)

Location:
uspace/lib
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/elf/elf_load.c

    rb57a3ee rc735afb  
    112112        pcb->dynamic = info->finfo.dynamic;
    113113        pcb->rtld_runtime = info->env;
    114         pcb->cpp_data = info->finfo.cpp_data;
    115114}
    116115
  • uspace/lib/c/generic/elf/elf_mod.c

    rb57a3ee rc735afb  
    200200        elf->info->interp = NULL;
    201201        elf->info->dynamic = NULL;
    202         elf->info->cpp_data.ctors_count = 0;
    203         elf->info->cpp_data.dtors_count = 0;
    204202
    205203        if (phdr_len > sizeof(phdr)) {
  • uspace/lib/c/include/loader/pcb.h

    rb57a3ee rc735afb  
    7575        /** Pointer to dynamic linker state structure (rtld_t). */
    7676        void *rtld_runtime;
    77         /** C++ related data. */
    78         cpp_data_t cpp_data;
    7977} pcb_t;
    8078
  • uspace/lib/cpp/include/__bits/random.hpp

    rb57a3ee rc735afb  
    10301030             *       something better.
    10311031             */
    1032             hel::srandom(hel::time(nullptr));
     1032            hel::srand(hel::time(nullptr));
    10331033        }
    10341034
    10351035        result_type operator()()
    10361036        {
    1037             return hel::random();
     1037            return hel::rand();
    10381038        }
    10391039
  • uspace/lib/cpp/include/__bits/stdexcept.hpp

    rb57a3ee rc735afb  
    4949
    5050        protected:
    51             const char* what_;
     51            char* what_;
    5252    };
    5353
     
    9696
    9797        protected:
    98             const char* what_;
     98            char* what_;
    9999    };
    100100
  • uspace/lib/cpp/include/__bits/thread/threading.hpp

    rb57a3ee rc735afb  
    3333{
    3434    extern "C" {
     35        #include <async.h>
    3536        #include <fibril.h>
    3637        #include <fibril_synch.h>
     
    157158            static void sleep(time_unit time)
    158159            {
    159                 hel::fibril_usleep(time);
     160                hel::async_usleep(time);
    160161            }
    161162        };
  • uspace/lib/cpp/include/csetjmp

    rb57a3ee rc735afb  
    3232#include <__bits/common.hpp>
    3333
     34/**
     35 * TODO: Currently the <setjmp.h> header uses
     36 *       _Noreturn, which is not available in C++.
     37 */
     38
    3439namespace std::hel
    3540{
    3641    extern "C" {
    37         #include <setjmp.h>
     42        //#include <setjmp.h>
    3843    }
    3944}
     
    4146namespace std
    4247{
    43     using std::hel::jmp_buf;
    44     using std::hel::longjmp;
     48    /* using std::hel::jmp_buf; */
     49    /* using std::hel::longjmp; */
    4550}
    4651
    47 using std::hel::jmp_buf;
    48 using std::hel::longjmp;
     52/* using std::hel::jmp_buf; */
     53/* using std::hel::longjmp; */
    4954
    5055#endif
  • uspace/lib/cpp/include/cstdlib

    rb57a3ee rc735afb  
    7878    /* using std::hel::wcstombs; */
    7979
    80     using std::hel::random; // Supposed to be rand.
    81     using std::hel::srandom; // Supposed to be srand.
     80    using std::hel::rand;
     81    using std::hel::srand;
    8282    using std::hel::qsort;
    8383    /* using std::hel::bsearch; */
     
    127127/* using std::hel::wcstombs; */
    128128
    129 using std::hel::random; // Supposed to be rand.
    130 using std::hel::srandom; // Supposed to be srand.
     129using std::hel::rand;
     130using std::hel::srand;
    131131using std::hel::qsort;
    132132/* using std::hel::bsearch; */
  • uspace/lib/cpp/src/string.cpp

    rb57a3ee rc735afb  
    9999    }
    100100
     101    namespace hel
     102    {
     103        extern "C" int asprintf(char**, const char*, ...);
     104    }
     105
    101106    string to_string(int val)
    102107    {
Note: See TracChangeset for help on using the changeset viewer.