VirtualBox

Changeset 96159 in vbox


Ignore:
Timestamp:
Aug 12, 2022 10:13:29 AM (2 years ago)
Author:
vboxsync
Message:

IPRT/nocrt: strtod, a makefile correction, and ERANGE errno mapping. bugref:10261

Location:
trunk/src/VBox/Runtime
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/Makefile.kmk

    r96157 r96159  
    17401740        $$(xargs $$(QUIET)$$(SED) -rn -f "$$(VBOX_PATH_RUNTIME_SRC)/nocrt-aliases.sed" --append "$$@" , $$(filter %.c %.cpp %.asm, $$^) )
    17411741        $$(QUIET)$$(APPEND) -n "$$@" "" ""
    1742         $$(QUIET)$$(CP) --changed -f -- "$$@" "$$(patsubst %.ts,%s,$$@)"
     1742        $$(QUIET)$$(CP) --changed -f -- "$$@" "$$(patsubst %.ts,%,$$@)"
    17431743
    17441744$$($(target)_0_OUTDIR)/genalias/genalias.ts + $$($(target)_2_VBOX_NOCRT_ALIAS_FILES): | $$(VBOX_GENALIAS)
     
    18541854        common/sort/nocrt-qsort_r.cpp \
    18551855        common/sort/nocrt-bsearch.cpp \
    1856         common/string/nocrt-atof.cpp \
    18571856        common/string/nocrt-strdup.cpp \
    18581857        common/string/nocrt-stricmp.cpp \
     1858        common/string/nocrt-strtod.cpp \
     1859        common/string/nocrt-atof.cpp \
    18591860        common/string/nocrt-strtol.cpp \
    18601861        common/string/nocrt-strtoll.cpp \
  • trunk/src/VBox/Runtime/common/err/RTErrConvertFromErrno.cpp

    r93115 r96159  
    154154#endif
    155155#ifdef ERANGE
    156         case ERANGE:            return VERR_INVALID_PARAMETER;  /** @todo fix duplicate error */
     156        case ERANGE:            return VERR_OUT_OF_RANGE;
    157157#endif
    158158#ifdef EDEADLK
  • trunk/src/VBox/Runtime/common/err/RTErrConvertToErrno.cpp

    r93115 r96159  
    156156#endif
    157157#ifdef ERANGE
    158         //case VERR_INVALID_PARAMETER:    return ERANGE;
     158        case VERR_OUT_OF_RANGE:                     return ERANGE;
     159        case VERR_FLOAT_UNDERFLOW:                  return ERANGE;
     160        case VWRN_FLOAT_UNDERFLOW:                  return ERANGE;
     161        case VERR_FLOAT_OVERFLOW:                   return ERANGE;
     162        case VWRN_FLOAT_OVERFLOW:                   return ERANGE;
    159163#endif
    160164#ifdef EDEADLK
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette