Commit Graph
317 Commits
Author SHA1 Message Date
Andrew Schwartzmeyer 129bff77a2 Return 0, not undefined FALSE 2015-12-19 11:58:37 -08:00
Andrew Schwartzmeyer 262471958f Fix Boost include dir variable
Boost_INCLUDE_DIRS is only used intermittently by CMake, whereas
Boost_INCLUDE_DIR (no S) is always populated correctly.
2015-12-19 11:54:01 -08:00
Andrew Schwartzmeyer fc81606886 Remove icuuc entirely
While we no longer used it, we still linked to it and included its
header. This is now gone.
2015-12-19 11:52:30 -08:00
Andrew Schwartzmeyer e2b2279fcb Remove icuuc dependency from host
Broke this dependency by changing the
`SetPowerShellAssemblyLoadContext()` function to expect an LPStr on
Linux, instead of an LPWStr, which is easier to deal with because .NET
can marshal an LPStr automatically.
2015-12-15 14:23:09 -08:00
Andrew Schwartzmeyer a33977edb2 Resurrect PowerShell's AssemblyLoadContext 2015-12-09 12:55:50 -08:00
Paul Allen 418b947f38 Null terminate exePath 2015-12-07 17:11:05 -08:00
Andrew Schwartzmeyer d0960b3cf2 Refactor host for dotnet-cli
- Now uses Boost
- No longer uses libicu
2015-12-07 15:59:53 -08:00
Andy Schwartzmeyer 84c56b5c49 Merge pull request 300 from dev/removelang1 into develop
Merge dev/removelang1 to develop
2015-12-01 23:43:35 +00:00
Alex Jordan 2fd54306f9 Removed BAD_ENVIRONMENT from comments and added errno back to several fns 2015-11-25 00:37:45 +00:00
Alex Jordan 6fd5d5d40e Removed LANG dependancies from native fns 2015-11-25 00:29:57 +00:00
Alex Jordan 284f28f52b Removing explicit test of en_US.UTF-8 in native code and moving to a unit test 2015-11-24 23:37:12 +00:00
George Fleming 58e1f8d7fe Merge pull request 282 from dev/setdate-native into develop
Merge dev/setdate-native to develop
2015-11-16 19:32:09 +00:00
George Fleming f2b70e32ba Remove microsecond 2015-11-13 10:05:55 -08:00
George Fleming f1c8f15fb5 SetDate function 2015-11-12 16:31:30 -08:00
Andy Schwartzmeyer 07a2f9fe80 Merge pull request 265 from dev/defaulthost into develop
Merge dev/defaulthost to develop
2015-11-09 21:03:57 +00:00
Andrew Schwartzmeyer ed5e179e79 Merge branch 'develop' into dev/limits 2015-11-09 09:51:06 -08:00
Andrew Schwartzmeyer 3bdcf50465 Use HOST_NAME_MAX as specified in gethostname(2)
NAME_MAX is the "maximum number of bytes in a filename," which is
irrelevant to the gethostname libc function.
2015-11-09 09:46:53 -08:00
Andrew Schwartzmeyer 22cc11e2d9 Rename appDomainFriendlyName to psl_cmdline_host 2015-11-06 20:01:41 -08:00
Andrew Schwartzmeyer 48af92c286 Update usage text 2015-11-06 20:01:29 -08:00
Andrew Schwartzmeyer 0e119de0c9 Refactor argument parsing for new interface
Only one argument is accepted by the native host, which is an optional
path to a managed host assembly (aka the PowerShell console). If not
specified, lib/powershell/powershell.exe is used by default. All other
arguments are forwarded as-is to the managed host.
2015-11-06 19:59:04 -08:00
Andrew Schwartzmeyer 96cda45f34 Expose pshost's pwrshPath (PowerShell libraries)
It's the determined path of the PowerShell libraries (whether specified
via PWRSH_ROOT or found relative to the native bin/powershell
executable). Like exePath, this is available only after a call to
startCoreCLR.
2015-11-06 19:55:19 -08:00
Andy Schwartzmeyer 6933f1d817 Merge pull request 263 from wip/werror into develop
Added -Werror to treat all warnings as errors to monad-native CMake
2015-11-06 23:24:08 +00:00
Alex Jordan 9c6edbc7a1 Added -Werror to treat all warnings as errors to monad-native CMake 2015-11-06 23:03:45 +00:00
Andy Schwartzmeyer 99485dea3e Merge pull request 252 from dev/fixgetcomputername into develop
Merge dev/fixgetcomputername to develop
2015-11-05 05:25:16 +00:00
Andrew Schwartzmeyer 8c9c9b2284 Fix username tests by checking for null 2015-11-04 21:22:55 -08:00
Andrew Schwartzmeyer d5c0ad08cb Fix test since gethostname gets the nodename
The nodename is not necessarily the short name returned by hostname.
2015-11-04 20:30:52 -08:00
George Fleming dfea2bf927 Further cleanup of pal.h 2015-11-04 08:53:54 -08:00
George Fleming cec13f438c Merge pull request 245 from dev/isexecutable-native into develop
Merge dev/isexecutable-native to develop
2015-11-03 22:02:05 +00:00
George Fleming 102f6163a1 Remove unnecessary code 2015-11-03 12:24:36 -08:00
George Fleming 8747ba1e47 Clean up of pal.h 2015-11-03 12:24:36 -08:00
George Fleming 43f2d476f5 New IsExecutable function 2015-11-03 12:24:36 -08:00
Andrew Schwartzmeyer 9bb5b7e52c Use make install target
Instead of manually and always resolving to monad-linux/{bin,lib}, we
use the CMake `install()` command to generate a `make install` target
which places powershell, libpshost, and libpsnative in
${CMAKE_INSTALL_PREFIX}/{bin,lib} respectively. CMAKE_INSTALL_PREFIX
defaults to `/usr/local` which we will want upon actual package
installation. During development, we will override this to be the path
to monad-linux in the superproject's Makefile.

Also move test output so monad-native Jenkins job can pick it up.
2015-10-30 18:49:18 -07:00
George Fleming c9cac40c5a Merge pull request 236 from dev/symlink-native into develop
Adding new isSymLink() function
2015-10-30 23:34:59 +00:00
George Fleming 2de4fe9be6 Adding new isSymLink() function 2015-10-30 11:47:44 -07:00
Andy Schwartzmeyer 4ca36b52ab Merge pull request 226 from dev/FQDN into develop
Merge dev/FQDN to develop
2015-10-29 16:47:37 +00:00
George Fleming 3a02f1b3a0 Change /bin/hostname to just hostname, and let sh figure out the path 2015-10-29 08:47:36 -07:00
George Fleming 2eaf911346 Add new getfullyqualifiedname test 2015-10-28 16:42:15 -07:00
George Fleming 2d442eb732 Skip getaddrinfo if hostname is already FQDN 2015-10-28 16:41:24 -07:00
Andy Schwartzmeyer 435111d4e5 Merge pull request 224 from dev/defaults into develop
Add sensible defaults for powershell and coreclr
2015-10-28 21:33:14 +00:00
George Fleming 29d496e3ac Adding additional comments 2015-10-28 10:24:43 -07:00
Andrew Schwartzmeyer 4d2b184892 Add sensible defaults for powershell and coreclr 2015-10-27 23:47:54 -07:00
George Fleming e776d01cc8 Change reference of GetComputerName 2015-10-27 16:43:43 -07:00
George Fleming 9ce93b0897 Merge branch 'develop' into dev/FQDN 2015-10-27 15:56:58 -07:00
George Fleming c21fad08a5 Merge pull request 221 from dev/GetComputerName-Native into develop 2015-10-27 22:42:36 +00:00
George Fleming 1759f9a2f6 Changes per Zack comments 2015-10-27 15:33:25 -07:00
George Fleming 11bcfb06d3 Add GetFullyQualifiedName() 2015-10-27 14:56:57 -07:00
George Fleming 7f6a494bf0 Modify return value 2015-10-27 14:21:25 -07:00
George Fleming 81f833cf25 Remove <iostream> 2015-10-27 10:57:02 -07:00
George Fleming b7260951f1 Remove debug output 2015-10-27 10:55:27 -07:00
George Fleming 9718cd02ab Remove W suffix of native function 2015-10-27 10:48:31 -07:00