Andrew Schwartzmeyer
cb3fe8d16e
Remove currentExeAbsolutePath
2015-10-22 14:44:34 -07:00
Andrew Schwartzmeyer
b4b0f70ad1
Fix warning in GetDirectory()
2015-10-22 14:44:34 -07:00
Andrew Schwartzmeyer
6b1f0d9847
Remove coreclr_path
...
Obtained via CORE_ROOT, like on Windows.
2015-10-22 14:44:34 -07:00
Andrew Schwartzmeyer
4e6b7a8e6e
Move start/stop functions
2015-10-22 13:57:37 -07:00
Andrew Schwartzmeyer
2c4b99455a
Reconcile with coreruncommon.cpp
2015-10-22 13:35:00 -07:00
Andrew Schwartzmeyer
80c68707aa
Rename to (start|stop)CoreCLR()
2015-10-22 13:31:22 -07:00
Andrew Schwartzmeyer
27563ab7b7
Remove CoreCLRUtil namespace
...
So that is all accessible from C
2015-10-22 12:39:59 -07:00
Andrew Schwartzmeyer
fa79c480d0
Add 'src/host/unixcoreruncommon/' from commit 'a566a181a076f4fa49f4874934c080309424bd6c'
...
git-subtree-dir: src/host/unixcoreruncommon
git-subtree-mainline: ba972b0113
git-subtree-split: a566a181a0
2015-10-22 11:58:35 -07:00
Andrew Schwartzmeyer
a1b9511f38
Refactor most CLR code into libpshost
2015-10-21 19:15:05 -07:00
Andrew Schwartzmeyer
be95c604e6
Reindent host code using project standards
2015-10-21 15:37:42 -07:00
Andrew Schwartzmeyer
6cddef6b1e
Use stream in one statement
...
This just really bugged me and I had it stashed from earlier
2015-10-21 15:06:54 -07:00
Andrew Schwartzmeyer
fd8566f111
Refactor host_common into pshost static lib
...
For reuse by psrp provider
2015-10-20 11:54:46 -07:00
Andrew Schwartzmeyer
020a768c31
Use getpwuid(geteuid()) instead of getlogin()
...
This removes the dependency on a TTY and now does what is expected: gets
the (possibly impersonated) username of the current process/thread.
Implementation and tests updated, still uses reentrant versions where possible.
2015-09-23 15:57:23 -07:00
Andrew Schwartzmeyer
39174a0afb
Fix GetCpInfo
...
- Move cpinfo related code out of pal.h and into getcpinfo.h
- Use static cpinfo struct (not pointer) in test and pass address
- Whitespace cleanup
2015-08-28 15:59:31 -07:00
Aaron
6753151161
Got rid of warnings from cpinfo struct
2015-08-28 15:44:04 -07:00
Aaron
782d164247
Changes to documentation
2015-08-28 15:17:34 -07:00
Aaron
0acd64bfc7
Deleted CMakeCache.txt
2015-08-26 13:32:21 -07:00
Aaron
f32441327d
Merge Conflict
2015-08-26 13:28:51 -07:00
Aaron
4762820519
Get rid of merge conflict
2015-08-26 13:03:51 -07:00
Aaron
b6d880eab8
Merge Conflict
2015-08-26 11:55:58 -07:00
Aaron
805394e423
Got rid of merge conflict
2015-08-26 09:28:48 -07:00
Aaron
8080e53786
made changes based on feedback from pull request
2015-08-25 13:47:39 -07:00
Andrew Schwartzmeyer
42ce3fa48b
Remove type_name and function_name from host
...
Custom hosting code was refactored to take a path to an assembly instead
of an assembly name coupled with a type and function to
execute. Instead, the host now directly executes the given assembly,
calling its Main function.
The path is resolved relative to the current directory, as should be
expected.
2015-08-21 17:39:52 -07:00
Andy Schwartzmeyer
9f2fdfeb2d
Merge pull request 123 from dev/123-main into develop
2015-08-21 23:28:32 +00:00
Andrew Schwartzmeyer
46d3894c02
Call into Main of PowerShell assembly
...
Instead of UnmanagedMain. Requires patch to CoreCLR (submitted upstream
but backported until we've integrated their work).
2015-08-21 16:17:16 -07:00
Peter Honeder
24f0f853a8
added testing code to call into Main
2015-08-21 16:16:38 -07:00
Aaron Katz
aba54f074d
Merge pull request 102 from dev/9-getcomputername into develop
2015-08-21 16:56:54 +00:00
Aaron
23ad440cfc
made changes based on feedback from pull request
2015-08-21 09:55:39 -07:00
Aaron
50f9af1bd3
changes back on feedback from pull request
2015-08-20 14:40:02 -07:00
Aaron
e4fd76b739
Added changed from feedback from Andy
2015-08-17 17:02:40 -07:00
Aaron
d7355a0572
implemented suggested changes based off of feedback
2015-08-14 12:26:15 -07:00
Aaron
4f62559eaf
Merge remote-tracking branch 'origin/develop' into dev/8-getcpinfo
2015-08-14 11:34:48 -07:00
Aaron
2241d63a28
No longer defining LPSTR
2015-08-14 11:27:22 -07:00
Aaron
1a796b5924
Changes to make converting beteween UTF8 and UTF16
2015-08-14 10:51:25 -07:00
Aaron
53e7c11e69
Added changes based of feedback from Peter
2015-08-14 09:26:45 -07:00
Andrew Schwartzmeyer
d298302e8c
Use libicu properly in tests
2015-08-13 21:34:59 -07:00
Andrew Schwartzmeyer
60a9a360a1
Use libicu properly for UTF-16 conversion
...
- No more messy calculations
- Only one include, not four
- No resizing
- No memcpy
- Faster because of fromUTF8()
2015-08-13 21:27:08 -07:00
Andrew Schwartzmeyer
70a163e061
Use known size instead of calculation
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
674ca43046
Use just LOGIN_NAME_MAX
...
The +1 is unnecessary since LOGIN_NAME_MAX includes null.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
db7117bd47
Use length() instead of size()
...
To be consistent with everything else.
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
fc8f5d18c4
Use 0 instead of '\0'
...
To be consistent with tests
2015-08-13 20:32:30 -07:00
Andrew Schwartzmeyer
bb67bfaae7
Remove std::string utf8
...
Not used consistently. Use in-place for comparison.
2015-08-13 17:53:28 -07:00
Andrew Schwartzmeyer
46677d776b
Return FALSE instead of 0
2015-08-13 17:44:05 -07:00
Aaron
72ea5abd0b
New line for {
2015-08-13 10:53:09 -07:00
Aaron
1b537f0c8f
Changed based of feedback
2015-08-13 10:48:38 -07:00
Aaron
f496f91af0
Added changes to code based on additional documention and using a 16 bit string
2015-08-13 09:47:10 -07:00
Aaron
01f85ecf1c
Fixed Merge Confilct with CMakeLists.txt
2015-08-12 14:04:39 -07:00
Aaron
f2ce0d713d
changes to pal.h
2015-08-12 13:56:55 -07:00
Andrew Schwartzmeyer
9a42b894f2
Convert to Allman style with 4-space indentation
2015-08-07 18:43:58 -07:00
Andrew Schwartzmeyer
da1e65cfaf
Add -Wall to CMAKE_CXX_FLAGS
2015-08-07 12:07:19 -07:00