Andrew Schwartzmeyer
86801f0457
Various code cleanups
2016-03-04 20:02:37 -08:00
Andrew Schwartzmeyer
61667a43b5
Ignore built library on OS X
2016-03-04 20:02:37 -08:00
Andrew Schwartzmeyer
7146cc0b86
Fix test of FQDN
...
We can't use `hostname --fqdn` or any other shell tool because there is
no POSIX compatible way to do this short of system calls.
Unfortunately this means the test practically reimplements the original
code, but oh well.
2016-03-04 20:02:37 -08:00
George Fleming
5e0728e48e
New native code to support creation of hard links
2016-03-04 15:59:32 -08:00
George Fleming
19dbaaf54c
Add native test for createSymLink
2016-02-26 15:16:42 -08:00
George Fleming
4bfa1fa231
Add new CreateSymLink function
2016-02-26 14:31:17 -08:00
Andrew Schwartzmeyer
8650c6a6a1
Add readme
2016-01-15 12:39:42 -08:00
Andrew Schwartzmeyer
6e85659672
Rename tests to test
...
Requires moving a submodule, so its better to do it now when everything
is moving.
2016-01-14 10:24:16 -08:00
Andrew Schwartzmeyer
494f08a16b
Remove terminal queries
...
Thanks to improvements in System.Console, we no longer rely on these.
2016-01-14 10:07:29 -08:00
Andrew Schwartzmeyer
e612ccb1e8
Rename to psl-native
...
The name `psnative` would have been confusing when this goes
cross-platform; instead use the `psl` suffix for PowerShell on Linux.
2016-01-14 10:07:11 -08:00
Andrew Schwartzmeyer
6e8ce797fc
Rename native to src
...
With the removal of the host, this submodule is now just one thing:
libpsnative, so it makes sense to have a `src` directory instead of a
poorly named `monad-native/native`.
2016-01-12 13:53:56 -08:00
Andrew Schwartzmeyer
5bcd714893
Remove host code
...
Moved to OMI provider as the local shell no longer depends on a custom
native host.
2016-01-05 17:37:03 -08:00
Andrew Schwartzmeyer
eb6099fb49
Clean up native host CLI
...
- Fix launching of specific assembly via --assembly
- Fix displaying help via --native-help
2015-12-22 13:06:05 -08:00
Andrew Schwartzmeyer
3d52aa35da
Use _POSIX_HOST_NAME_MAX instead of HOST_NAME_MAX
...
For OS X compatibility.
2015-12-21 10:15:16 -08:00
Andrew Schwartzmeyer
5b1bc20618
Handle error in GetEnvAbsolutePath
...
Can't return nullptr because its an invalid cast for the return type.
2015-12-21 10:15:13 -08:00
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