VirtualBox

Changeset 77834 in vbox for trunk


Ignore:
Timestamp:
Mar 21, 2019 8:47:07 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
129517
Message:

IPRT: Spealiced RTFileCopyPartEx and associated prep/cleanup functions for linux copy_file_range(). [build fix] bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/RTFileCopyPartEx-linux.cpp

    r77833 r77834  
    4141
    4242#ifndef __NR_copy_file_range
    43 # define __NR_copy_file_range       285
     43# if defined(RT_ARCH_X86) || defined(RT_ARCH_AMD64)
     44#  define __NR_copy_file_range      285
     45# endif
    4446#endif
    4547
     48
     49#ifndef __NR_copy_file_range
     50# include "../../generic/RTFileCopyPartEx-generic.cpp"
     51#else  /* __NR_copy_file_range - whole file */
    4652/* Include the generic code as a fallback since copy_file_range is rather new . */
    47 #define IPRT_FALLBACK_VERSION
    48 #include "../../generic/RTFileCopyPartEx-generic.cpp"
    49 #undef  IPRT_FALLBACK_VERSION
     53# define IPRT_FALLBACK_VERSION
     54# include "../../generic/RTFileCopyPartEx-generic.cpp"
     55# undef  IPRT_FALLBACK_VERSION
    5056
    5157
     
    167173    return rc;
    168174}
    169 RT_EXPORT_SYMBOL(RTFileCopyPartEx);
    170175
     176#endif /* __NR_copy_file_range */
    171177
Note: See TracChangeset for help on using the changeset viewer.

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