$(LIBRARY)(_svrctl.o) \
$(LIBRARY)(_getsysinfo.o) \
$(LIBRARY)(_getprocnr.o) \
+ $(LIBRARY)(_devctl.o) \
$(LIBRARY)(_findproc.o) \
$(LIBRARY)(asynchio.o) \
$(LIBRARY)(configfile.o) \
$(LIBRARY)(_svrctl.o): _svrctl.c
$(CC1) _svrctl.c
+$(LIBRARY)(_devctl.o): _devctl.c
+ $(CC1) _devctl.c
+
$(LIBRARY)(_getprocnr.o): _getprocnr.c
$(CC1) _getprocnr.c
message m;
m.m1_p1 = proc_name;
- m.m1_i1 = strlen(proc_name) + 1;
+ m.m1_i1 = -1; /* search by name */
+ m.m1_i2 = strlen(proc_name) + 1;
if (_syscall(MM, GETPROCNR, &m) < 0) return(-1);
*proc_nr = m.m1_i1;
return(0);
#include <unistd.h>
-PUBLIC int getprocnr(proc_nr)
-int *proc_nr; /* return process number here */
+PUBLIC int getprocnr()
{
message m;
- m.m1_i1 = 0; /* tell PM to get own process nr */
+ m.m1_i1 = -1; /* get own process number */
+ m.m1_i2 = 0; /* get own process number */
if (_syscall(MM, GETPROCNR, &m) < 0) return(-1);
- *proc_nr = m.m1_i1;
- return(0);
+ return(m.m1_i1);
}
$(LIBRARY)(close.o) \
$(LIBRARY)(closedir.o) \
$(LIBRARY)(creat.o) \
+ $(LIBRARY)(devctl.o) \
$(LIBRARY)(dup.o) \
$(LIBRARY)(dup2.o) \
$(LIBRARY)(execl.o) \
$(LIBRARY)(creat.o): creat.s
$(CC1) creat.s
+$(LIBRARY)(devctl.o): devctl.s
+ $(CC1) devctl.s
+
$(LIBRARY)(dup.o): dup.s
$(CC1) dup.s
../servers/pm/pm \
../servers/fs/fs \
../servers/sm/sm \
- ../servers/is/is \
../drivers/tty/tty \
../drivers/memory/memory \
- ../drivers/at_wini/at_wini \
- ../drivers/rtl8139/rtl8139 \
- ../drivers/fxp/fxp \
../drivers/log/log \
+ ../drivers/at_wini/at_wini \
../drivers/bios_wini/bios_wini \
../servers/init/init \
# bootdev.img