#include #include #include "syscalls.c" #include "../fs/fs.h" int main(int argc, char **argv) { sbrk(1024); sbrk(1024); sbrk(1024); write(1,"dupa",4); puts("started ADD"); while(1); // FILE *input; // input=fopen("input2.txt","r"); //stdin /* int sum=0; int i=0; while(1); char *buf=malloc(256); //printf("(buf= 0x%08X)\n",buf); while(1) { char *ret=gets(buf); if(ret==NULL) { printf("returned NULL. ABORTING"); break; } printf("entered %s: ",buf); //buf[strlen(buf)-1]=0; // remove \n //process(buf); } while(1) { printf("enter numer %i: ",i+1); fgets(buf,255,input); printf("entered %s: ",buf); if(buf[1]=='x')break; i++; sum+=atoi(buf); } printf("avg = %i \n\n",sum/i); */ execve(15,0,0); }