Newer
Older
ubixos / src / bin / init / main.c
@reddawg reddawg on 28 May 2002 771 bytes Its Been lots of work
/**************************************************************************************
 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 <unistd.h>

int main();

void _start() {
  main();
  }

int main() {
  int i=0;
  char data[32];
  i = getpid();
  printf("This is my pid: [%i]\n",i);
  for (i=0;i<5;i++) {
    printf("Init Code [%i]\n",i);
    }
  data[0] = 'T';
  data[1] = 'e';
  data[2] = 's';
  data[3] = 't';
  data[10] = 'Y';
  data[11] = '0';
  data[31] = '\n';
  fwrite(data,sizeof(data),stdout);
  while(1);
  exit();
  }