#include <stdlib.h>
#include <fcntl.h>

#ifndef O_BINARY
#define O_BINARY 0
#endif

#ifndef stdin
#define stdin 0
#endif

#ifndef stdout
#define stdout 1
#endif

#ifndef stderr
#define stderr 2
#endif

main(argc,argv)
int argc;
char **argv;
{
char buff[16384];
int file, n;
register i, j;

if (argc!=2) 
  {
  write(stdout,"Enter number of Mb's you want to spare ? ",41);
  read(stdin,buff,10);
  n=atoi(buff);
  }
else
  n=atoi(argv[1]);

if (n<1) 
  {
  write(stderr,"One Bullshit!!!\n",16);
  exit(1);
  }

if ((file=open("bullshits",O_WRONLY|O_CREAT|O_TRUNC|O_BINARY,384))<0)
  {
  write(stderr,"Two Bullshits!!!\n",17);
  exit(2);
  }

for (j=0;j<n;j++)
  for (i=0;i<64;i++)
    if ((write(file,buff,16384))==-1)
      {
      write(stderr,"Three Bullshits!!!\n",19);
      exit(3);
      }

if (close(file))
  {
  write(stderr,"Four bullshits!!!\n",18);
  exit(4);
  }

return 0;
}

