< prev index next >
src/jdk.jpackage/unix/native/libapplauncher/PosixPlatform.h
Print this page
@@ -21,17 +21,15 @@
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
-#include "Platform.h"
-
-#ifdef POSIX
-
#ifndef POSIXPLATFORM_H
#define POSIXPLATFORM_H
+#include "Platform.h"
+#include <signal.h>
class PosixPlatform : virtual public Platform {
protected:
TString fixName(const TString& name);
@@ -49,28 +47,24 @@
virtual void SetCurrentDirectory(TString Value);
virtual Module LoadLibrary(TString FileName);
virtual void FreeLibrary(Module AModule);
virtual Procedure GetProcAddress(Module AModule, std::string MethodName);
- virtual std::vector<TString> GetLibraryImports(const TString FileName);
- virtual std::vector<TString> FilterOutRuntimeDependenciesForPlatform(
- std::vector<TString> Imports);
virtual Process* CreateProcess();
virtual TString GetTempDirectory();
+ void InitStreamLocale(wios *stream);
+ void addPlatformDependencies(JavaLibrary *pJavaLibrary);
};
-
class PosixProcess : public Process {
private:
pid_t FChildPID;
sigset_t saveblock;
int FOutputHandle;
int FInputHandle;
-#ifdef MAC
struct sigaction savintr, savequit;
-#endif //MAC
bool FRunning;
void Cleanup();
bool ReadOutput();
@@ -87,6 +81,5 @@
virtual void SetInput(TString Value);
virtual std::list<TString> GetOutput();
};
#endif // POSIXPLATFORM_H
-#endif // POSX
< prev index next >