[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Patch for mintlib



Here is a small patch for the MiNTLIB (necessary if you run a
MiNTLIB-linked program under TOS).

*** do_stat.c.orig	Thu Apr 21 21:59:19 1994
--- do_stat.c	Thu Apr 21 22:00:01 1994
***************
*** 100,106 ****
  	if (nval == 1) {
  		st->st_mode = S_IFCHR | 0600;
  		st->st_attr = 0;
! 		st->st_ino = ++__inode;
  		st->st_rdev = 0;
  		st->st_mtime = st->st_ctime = st->st_atime = 
  			time((time_t *)0) - 2;
--- 100,106 ----
  	if (nval == 1) {
  		st->st_mode = S_IFCHR | 0600;
  		st->st_attr = 0;
! 		st->st_ino = __inode++;
  		st->st_rdev = 0;
  		st->st_mtime = st->st_ctime = st->st_atime = 
  			time((time_t *)0) - 2;
*** fstat.c.orig	Thu Apr 21 21:57:14 1994
--- fstat.c	Thu Apr 21 21:57:59 1994
***************
*** 89,95 ****
  	st->st_blksize = 1024;
  /* note: most Unixes measure st_blocks in 512 byte units */
  	st->st_blocks = (st->st_size + 511) / 512;
! 	st->st_ino = ++__inode;
  	st->st_nlink = 1;
  	return 0;
  }
--- 89,95 ----
  	st->st_blksize = 1024;
  /* note: most Unixes measure st_blocks in 512 byte units */
  	st->st_blocks = (st->st_size + 511) / 512;
! 	st->st_ino = __inode++;
  	st->st_nlink = 1;
  	return 0;
  }