Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/eglib
AgeCommit message (Collapse)Author
2016-09-03Prefer SHGetKnownFolderPath() in g_get_home_dir() over HOMEDRIVE/HOMEPATHNiklas Therning
environment variables Relying on the HOMEDRIVE/HOMEPATH environment variables is fragile as those variables don't always have to be set. One such scenario is when running on a Jenkins slave. When not set g_get_home_dir() in eglib would return NULL which led to a crash in ves_icall_System_Environment_InternalGetHome(). This patch changes g_get_home_dir() to first try to call SHGetKnownFolderPath() to get the current user's profile directory (i.e. home dir). If that fails it falls back to the USERPROFILE environment variable. If that isn't available the function will fallback to the original behavior and try with HOMEDRIVE/HOMEPATH.
2016-08-09Handle NetBSD specific iconv(3) call prototype (#3376)Kamil Rytarowski
In the past there were wars between constified and unconstified second parameter.. NetBSD went with constifying it. POSIX went without const and most other OSes standarized. NetBSD is still having incompatible function prototype. LIBRARY Standard C Library (libc, -lc) SYNOPSIS #include <iconv.h> size_t iconv(iconv_t cd, const char ** restrict src, size_t * restrict srcleft, char ** restrict dst, size_t * restrict dstleft);
2016-08-09Fix shell portability, detected with NetBSD/pkgsrc (#3375)Kamil Rytarowski
2016-08-08Explicitly use the ANSI version of GetLocaleInfo() in g_win32_getlocale()Niklas Therning
Since UNICODE is defined when Mono is compiled under Windows the GetLocaleInfo() macro will expand to GetLocaleInfoW() which returns the current locale identifier in g_win32_getlocale() in 16-bit Unicode. g_win32_getlocale() however expects an 8-bit encoding. By using GetLocaleInfoA() explicitly we'll get the identifier back as an ordinary 8-bit C string. This patch fixes the mono/tests/threadpool-exceptions5.exe test.
2016-07-11Fixed up configure overridable allocators option. Moved g_vasprintf ↵Dolphin Hawkins
implementation to gstr which forwards to the system vasprintf when appropriate
2016-07-11Fixed eglib test build errorDolphin Hawkins
2016-07-11fixed formatting errorDolphin Hawkins
2016-07-11Enabled g_mem_set_vtable through the configure option ↵Dolphin Hawkins
--with-overridable-allocators and exposed through mono_set_allocator_vtable
2016-07-11[eglib] Fix Windows buildAlexander Köplinger
2016-07-11[eglib] Fix compilation on Windows after 3bebb7696eAlexander Köplinger
eglib uses G_OS_WIN32 instead of HOST_WIN32 for the Windows-specific code.
2016-07-09Moved ensure_directory_exists to eglib.Marcos Henrich
Moved ensure_directory_exists in apdomain.c to g_ensure_directory_exists in eglib/src/gpath.c so it can be reused.
2016-05-23[eglib] Use the PRi64 defines from inttypes.h to define G_GINT64_FORMAT etc. ↵Zoltan Varga
Get rid of support for older MSVC versions.
2016-05-20[eglib] Ignore nl_langinfo as it doesn't return the actual system default. ↵Rodrigo Kumpera
Fixes #41128. nl_langinfo doesn't query the right system value, it returns ASCII on OSX, for example.
2016-02-11Remove table that was not licensed under MITMiguel de Icaza
2016-02-03Merge pull request #2542 from akoeplinger/remove-changelogAlexander Köplinger
Remove ChangeLog files from the repo
2016-01-30Check for libtoolize rather than libtoolNeil Mayhew
Current Debian packaging puts libtool in its own package (libtool-bin) leaving only libtoolize in the main package. The mono build process uses libtoolize not libtool, so during autogen check for libtoolize not libtool.
2016-01-29Remove ChangeLog references from Makefile and .gitattributeAlexander Köplinger
2016-01-29Remove ChangeLog files from the repoAlexander Köplinger
They weren't updated in the last 6 years and aren't helpful anymore (e.g. by causing unrelated matches during git grep searches).
2015-10-14[runtime] Reworked coop GC stack handling in platforms with restricted ↵João Matos
access to register contexts.
2015-10-12Revert "Reworked coop GC stack handling in platforms with restricted access ↵João Matos
to register contexts."
2015-10-12Merge pull request #2101 from tritao/stack-coop-gcRodrigo Kumpera
Reworked coop GC stack handling in platforms with restricted access to register contexts.
2015-10-09[Apple] Disable environment access on Apple platforms that are not OSX.Rodrigo Kumpera
The two known ways to access the environment variables are no longer allowed Apple. Until something blessed by them is found, we'll provide no way to list all the envvars of the current process.
2015-10-08[runtime] Reworked coop GC stack handling in platforms with restricted ↵João Matos
access to register contexts.
2015-09-23Merge pull request #1971 from angeloc/masterMiguel de Icaza
eglib: checking locale_charset function availability
2015-09-10[eglib] Fixed vasprintf function detection.triton
Fixes the Cygwin build, see https://github.com/mono/mono/pull/1966.
2015-09-05eglib: checking for locale_charset functionAngelo Compagnucci
This patch checks if locale_charset function is availabe in libiconv or libcharset and changes the linking options accordingly.
2015-08-18Merge pull request #1983 from saper/noeglibstaticZoltan Varga
Do not build libeglib-static.a
2015-08-17Merge pull request #1870 from saper/langinfo_hRodrigo Kumpera
[eglib] Prefer <langinfo.h> to <localcharset.h>
2015-08-16Do not build libeglib-static.aMarcin Cieslak
1) libeglib.a is already a static library 2) It is not used anywhere, unlike other lib*-static.a libraries in the Mono runtime
2015-08-07Add a conditional for fork and exec* functions.Rolf Bjarne Kvinge
They're not available on WatchOS.
2015-08-06Better handling of vasprintf checkingAngelo Compagnucci
This patch improves the handling of vasprint checking. It switches the unneeded have_vasprintf variable with the AC_CHECK_FUNCS defined ac_cv_func_vasprintf one.
2015-08-05Fixing initialization of have_vasprintfAngelo Compagnucci
This patch initialize properly have_vasprintf in case vasprint function is found. Solves multiple definition of `vasprintf' error in case vasprint is not properly detected.
2015-07-24[eglib] Workaround lack of raise().João Matos
2015-06-12[eglib] Prefer <langinfo.h> to <localcharset.h>Marcin Cieslak
For platforms that have external libiconv located in some non-default directory (e.g. /usr/local/lib) it is very difficult to force libtool to pick up a static libiconv.a when needed. We currently build eglib as a static library, and then we continue to link eglib (with -leglib) to other binaries and libraries. As -leglib is a static library, we should either 1) incorporate the contents of libiconv.a into libeglib.a (therefore we would _require_ libiconv.a to be installed). 2) prepare stub libiconv.la file and provide it to all libeglib.a consumers as a dependency. We should not just detect HAVE_LOCALCHARSET_H, add it to CPPFLAGS and then continue without linking libiconv properly as a static library; This manifests with the error message during linking: gunicode.c:223: undefined reference to `locale_charset' This workaround makes us look for <langinfo.h> first, which - if available - will be there in the standard C library. This fixes the gunicode.c problem for FreeBSD and similar platforms, that may install GNU iconv as an add-on library.
2015-06-11[eglib] Ensures that home and user name always have a non-null value.Rodrigo Kumpera
2015-06-08Override Environment.SpecialFolder.Personal with $HOMEJan Beich
Any port that writes to Environment.SpecialFolder.Personal during build or when running tests may end up with files outside of stage area that aren't cleaned up by the ports framework. The issue lies with Mono looking in /etc/passwd first and only if no entry found there in HOME. Patch based on discussion in https://github.com/mono/mono/pull/371 Obtained from: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=193426
2015-03-12[eglib] Fixed file being created without read/write permission on Windows.João Matos
This bug manifested itself as files being written to disk with 0 bytes. Fixes the AOT compiler on Windows not working properly. https://bugzilla.xamarin.com/show_bug.cgi?id=27900
2015-02-26Don't use _NSGetEnviron on arm64.Rolf Bjarne Kvinge
2015-02-13Fix a warning.Zoltan Varga
2015-01-29[eglib] [io-layer] Have a single wrapper around getdtablesize. This removes ↵Rodrigo Kumpera
the duplicate on io-layer and exports the eglib one.
2014-11-26[msvc] duplicate 1d6b8a75fa31d60e9ddbc0b9eddbf05ed3fb6c12 for eglibJo Shields
2014-11-22[runtime] Add a wrapper around atexit () since it is missing on some android ↵Zoltan Varga
versions.
2014-11-22[runtime] Remove another getdtablesize () reference.Zoltan Varga
2014-11-22[runtime] Remove a getdtablesize () reference from eglib too.Zoltan Varga
2014-10-26[build] Enable dolt on mingw32Kornel Pal
2014-09-10[runtime] Redirect runtime logging to asl_log only on ios, not when running ↵Zoltan Varga
the cross compiler.
2014-08-29[eglib] Fix stderr output redirection.Rodrigo Kumpera
2014-08-27[eglib] Fix logging on iOS (asl_vlog != asl_log)Sebastien Pouliot
asl_vlog last parameter is a va_list and giving it a char* leads to crash which calls our native unhandled exception handler, which also tries to log what happens making the watchdog unhappy about the food quality 0x000000008badf00d
2014-08-26[eglib] Fix compilation on PLATFORM_ANDROID.Jonathan Pryor
Compilation of eglib/src/goutput.c was broken in commit 989165e1: mono/eglib/src/goutput.c: In function 'monoeg_log_default_handler': mono/eglib/src/goutput.c:159:75: error: 'args' undeclared (first use in this function) __android_log_vprint (to_android_priority (log_level), log_domain, "%s", args); ^ mono/eglib/src/goutput.c:159:75: note: each undeclared identifier is reported only once for each function it appears in mono/eglib/src/goutput.c: In function 'default_stdout_handler': mono/eglib/src/goutput.c:168:2: error: incompatible type for argument 4 of '__android_log_vprint' __android_log_vprint (ANDROID_LOG_ERROR, "mono", "%s", message); ^ mono/eglib/src/goutput.c:139:0: $ANDROID_NDK_PATH/platforms/android-4/arch-arm/usr/include/android/log.h:109:5: note: expected 'va_list' but argument is of type 'const gchar *' int __android_log_vprint(int prio, const char *tag, ^ mono/eglib/src/goutput.c: In function 'default_stderr_handler': mono/eglib/src/goutput.c:175:2: error: incompatible type for argument 4 of '__android_log_vprint' __android_log_vprint (ANDROID_LOG_ERROR, "mono", "%s", message); ^ (The cause of the breakage is that __android_log_vprint() takes a va_args parameter, which is no longer present in 989165e1.) Use __android_log_write() instead of __android_log_vprint(). Note: __android_log_write() writes a "simple string" to `adb logcat`, meaning there is no printf(3)-style formatting applied.
2014-08-25[eglib] Restore previous defaults for some platforms.Rodrigo Kumpera