/**************************************************************************************
Copyright (c) 2002 The UbixOS Project
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are prohibited.
$Id$
**************************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/sys.h>
int main();
void _start() {
main();
}
int main() {
int i=0;
i = getpid();
printf("This is my pid: [%i]\n",i);
for (i=0;i<5;i++) {
printf("Init Code [%i]\n",i);
}
if (getpid() != 1) {
printf("Sorry This Program Must Be Started By The Kernel!!!!\n");
exit(1);
}
printf("Initializing system.\n");
exec("shell");
while(1) {
printf(".");
}
exit(1);
}