You've already forked linux-packaging-mono
Imported Upstream version 5.20.0.180
Former-commit-id: ff953ca879339fe1e1211f7220f563e1342e66cb
This commit is contained in:
parent
0e2d47d1c8
commit
0510252385
@@ -9,6 +9,7 @@
|
||||
#cmakedefine01 HAVE_F_DUPFD_CLOEXEC
|
||||
#cmakedefine01 HAVE_O_CLOEXEC
|
||||
#cmakedefine01 HAVE_GETIFADDRS
|
||||
#cmakedefine01 HAVE_UTSNAME_DOMAINNAME
|
||||
#cmakedefine01 HAVE_STAT64
|
||||
#cmakedefine01 HAVE_PIPE2
|
||||
#cmakedefine01 HAVE_STAT_BIRTHTIME
|
||||
@@ -31,11 +32,12 @@
|
||||
#cmakedefine01 HAVE_TIOCGWINSZ
|
||||
#cmakedefine01 HAVE_SCHED_GETAFFINITY
|
||||
#cmakedefine01 HAVE_SCHED_SETAFFINITY
|
||||
#cmakedefine01 HAVE_ARC4RANDOM
|
||||
#cmakedefine01 HAVE_ARC4RANDOM_BUF
|
||||
#cmakedefine01 KEVENT_HAS_VOID_UDATA
|
||||
#cmakedefine01 HAVE_FDS_BITS
|
||||
#cmakedefine01 HAVE_PRIVATE_FDS_BITS
|
||||
#cmakedefine01 HAVE_STATFS
|
||||
#cmakedefine01 HAVE_SYS_SOCKIO_H
|
||||
#cmakedefine01 HAVE_SYS_POLL_H
|
||||
#cmakedefine01 HAVE_EPOLL
|
||||
#cmakedefine01 HAVE_ACCEPT4
|
||||
|
||||
@@ -118,11 +118,15 @@ template <typename T, size_t N>
|
||||
char(&_ArraySizeHelper(T(&array)[N]))[N];
|
||||
#define ARRAY_SIZE(array) (sizeof(_ArraySizeHelper(array)))
|
||||
|
||||
#else // __cplusplus
|
||||
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0]))
|
||||
#endif // __cplusplus
|
||||
|
||||
/**
|
||||
* Abstraction helper method to safely copy strings using strlcpy or strcpy_s
|
||||
* or a different safe copy method, depending on the current platform.
|
||||
*/
|
||||
inline void SafeStringCopy(char* destination, size_t destinationSize, const char* source)
|
||||
inline static void SafeStringCopy(char* destination, size_t destinationSize, const char* source)
|
||||
{
|
||||
#if HAVE_STRCPY_S
|
||||
strcpy_s(destination, destinationSize, source);
|
||||
@@ -133,24 +137,6 @@ inline void SafeStringCopy(char* destination, size_t destinationSize, const char
|
||||
#endif
|
||||
}
|
||||
|
||||
/**
|
||||
* Overload of SafeStringCopy that takes a signed int32_t as buffer
|
||||
* size. Asserts that its positive, but defensively treats the size
|
||||
* as 0 (no-op) if it's negative.
|
||||
*/
|
||||
inline void SafeStringCopy(char* destination, int32_t destinationSize, const char* source)
|
||||
{
|
||||
assert(destinationSize >= 0);
|
||||
|
||||
if (destinationSize > 0)
|
||||
{
|
||||
size_t unsignedSize = UnsignedCast(destinationSize);
|
||||
SafeStringCopy(destination, unsignedSize, source);
|
||||
}
|
||||
}
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
/**
|
||||
* Converts an intptr_t to a file descriptor.
|
||||
* intptr_t is the type used to marshal file descriptors so we can use SafeHandles effectively.
|
||||
@@ -187,6 +173,13 @@ static inline bool CheckInterrupted(TInt result)
|
||||
return result < 0 && errno == EINTR;
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
static inline bool CheckInterrupted(ssize_t result)
|
||||
{
|
||||
return result < 0 && errno == EINTR;
|
||||
}
|
||||
|
||||
#endif // __cplusplus
|
||||
|
||||
inline static uint32_t Int32ToUint32(int32_t value)
|
||||
@@ -206,3 +199,9 @@ inline static int32_t Uint32ToInt32(uint32_t value)
|
||||
assert(value <= INT_MAX);
|
||||
return (int32_t)value;
|
||||
}
|
||||
|
||||
inline static int32_t SizeTToInt32(size_t value)
|
||||
{
|
||||
assert(value <= INT_MAX);
|
||||
return (int32_t)value;
|
||||
}
|
||||
|
||||
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_compat_la-pal_errno.Plo
vendored
Normal file
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_compat_la-pal_errno.Plo
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_compat_la-pal_io.Plo
vendored
Normal file
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_compat_la-pal_io.Plo
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_compat_la-pal_memory.Plo
vendored
Normal file
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_compat_la-pal_memory.Plo
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_compat_la-pal_random.Plo
vendored
Normal file
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_compat_la-pal_random.Plo
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
@@ -1,4 +1,4 @@
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_system_native_la-pal_errno.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_native_la-pal_errno.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_errno.c \
|
||||
/usr/include/stdc-predef.h pal_config.h ../../config.h \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_errno.h \
|
||||
@@ -1,4 +1,4 @@
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_system_native_la-pal_io.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_native_la-pal_io.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_io.c \
|
||||
/usr/include/stdc-predef.h \
|
||||
/mnt/jenkins/workspace/release-tarball-mono/external/corefx/src/Native/Unix/Common/pal_compiler.h \
|
||||
@@ -1,4 +1,4 @@
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_system_native_la-pal_maphardwaretype.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_native_la-pal_maphardwaretype.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_maphardwaretype.c \
|
||||
/usr/include/stdc-predef.h pal_config.h ../../config.h \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_maphardwaretype.h \
|
||||
@@ -1,4 +1,4 @@
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_system_native_la-pal_memory.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_native_la-pal_memory.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_memory.c \
|
||||
/usr/include/stdc-predef.h \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_memory.h \
|
||||
@@ -1,4 +1,4 @@
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_system_native_la-pal_networking.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_native_la-pal_networking.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_networking.c \
|
||||
/usr/include/stdc-predef.h pal_config.h ../../config.h \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_networking.h \
|
||||
@@ -76,6 +76,7 @@
|
||||
/usr/include/asm-generic/sockios.h \
|
||||
/usr/include/x86_64-linux-gnu/bits/socket2.h \
|
||||
/usr/include/x86_64-linux-gnu/bits/in.h \
|
||||
/usr/include/x86_64-linux-gnu/sys/time.h \
|
||||
/usr/include/x86_64-linux-gnu/sys/epoll.h \
|
||||
/usr/include/x86_64-linux-gnu/bits/epoll.h /usr/include/netdb.h \
|
||||
/usr/include/rpc/netdb.h /usr/include/x86_64-linux-gnu/bits/siginfo.h \
|
||||
@@ -297,6 +298,8 @@ pal_config.h:
|
||||
|
||||
/usr/include/x86_64-linux-gnu/bits/in.h:
|
||||
|
||||
/usr/include/x86_64-linux-gnu/sys/time.h:
|
||||
|
||||
/usr/include/x86_64-linux-gnu/sys/epoll.h:
|
||||
|
||||
/usr/include/x86_64-linux-gnu/bits/epoll.h:
|
||||
@@ -1,4 +1,4 @@
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_system_native_la-pal_networkstatistics.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_native_la-pal_networkstatistics.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_networkstatistics.c \
|
||||
/usr/include/stdc-predef.h pal_config.h ../../config.h
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_system_native_la-pal_random.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_native_la-pal_random.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_random.c \
|
||||
/usr/include/stdc-predef.h /usr/include/stdlib.h /usr/include/features.h \
|
||||
/usr/include/x86_64-linux-gnu/sys/cdefs.h \
|
||||
@@ -1,4 +1,4 @@
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_system_native_la-pal_tcpstate.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/libmono_native_la-pal_tcpstate.lo: \
|
||||
../../external/corefx/src/Native/Unix/System.Native/pal_tcpstate.c \
|
||||
/usr/include/stdc-predef.h pal_config.h ../../config.h \
|
||||
/mnt/jenkins/workspace/release-tarball-mono/external/corefx/src/Native/Unix/Common/pal_types.h \
|
||||
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_unified_la-pal_errno.Plo
vendored
Normal file
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_unified_la-pal_errno.Plo
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_unified_la-pal_io.Plo
vendored
Normal file
1
external/corefx/src/Native/Unix/System.Native/.deps/libmono_native_unified_la-pal_io.Plo
vendored
Normal file
@@ -0,0 +1 @@
|
||||
# dummy
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user