Add newere method

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39924 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2016-06-26 05:56:10 +00:00
parent 35962654cb
commit 04406427e3
5 changed files with 122 additions and 53 deletions

View file

@ -36,6 +36,14 @@
extern "C" {
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5,GS_API_LATEST)
enum {
NSTaskTerminationReasonExit = 1,
NSTaskTerminationReasonUncaughtSignal = 2
};
typedef NSInteger NSTaskTerminationReason;
#endif
@interface NSTask : NSObject
{
#if GS_EXPOSE(NSTask)
@ -53,6 +61,7 @@ extern "C" {
BOOL _hasTerminated;
BOOL _hasCollected;
BOOL _hasNotified;
NSTaskTerminationReason _terminationReason;
#endif
#if GS_NONFRAGILE
#else
@ -97,6 +106,9 @@ extern "C" {
#if OS_API_VERSION(GS_API_MACOSX, GS_API_LATEST)
- (int) processIdentifier;
#endif
#if OS_API_VERSION(MAC_OS_X_VERSION_10_5,GS_API_LATEST)
- (NSTaskTerminationReason) terminationReason;
#endif
- (int) terminationStatus;
/*