metamodel: rename 'universal' to 'enum'
[nit.git] / lib / standard / exec.nit
index eda24a9..ddeca9d 100644 (file)
@@ -40,12 +40,6 @@ class Process
                return _data.status
        end
 
-       # send a signal to the process
-       fun kill(signal: Int) do _data.kill(signal)
-
-       # send the TERM (15) signal
-       fun term do kill(15)
-
        # launch a command with some arguments
        init(command: String, arguments: String...)
        do
@@ -80,8 +74,8 @@ end
 
 # stdout of the processus is readable
 class IProcess
-special Process
-special IStream
+       super Process
+       super IStream
        var _in: FDIStream
        
        redef fun close do _in.close
@@ -105,8 +99,8 @@ end
 
 # stdin of the processus is writable
 class OProcess
-special Process
-special OStream
+       super Process
+       super OStream
        var _out: OStream
 
        redef fun close do _out.close
@@ -130,9 +124,9 @@ end
 
 # stdin and stdout are both accessible
 class IOProcess
-special IProcess
-special OProcess
-special IOStream
+       super IProcess
+       super OProcess
+       super IOStream
 
        redef fun close
        do
@@ -168,12 +162,11 @@ redef class NativeString
 end
 
 private universal NativeProcess
-special Pointer
+       super Pointer
        fun id: Int is extern "exec_NativeProcess_NativeProcess_id_0"
        fun is_finished: Bool is extern "exec_NativeProcess_NativeProcess_is_finished_0"
        fun status: Int is extern "exec_NativeProcess_NativeProcess_status_0"
        fun wait is extern "exec_NativeProcess_NativeProcess_wait_0"
-       fun kill(s: Int) is extern "exec_NativeProcess_NativeProcess_kill_1"
 
        fun in_fd: Int is extern "exec_NativeProcess_NativeProcess_in_fd_0"
        fun out_fd: Int is extern "exec_NativeProcess_NativeProcess_out_fd_0"