patch-scores_c 705 B

123456789101112131415161718192021222324252627
  1. $OpenBSD: patch-scores_c,v 1.1 2017/05/07 17:46:24 espie Exp $
  2. Index: scores.c
  3. --- scores.c.orig
  4. +++ scores.c
  5. @@ -28,20 +28,10 @@
  6. #define UNLOCK
  7. #else
  8. -/*#define LOCK flock( fp->_cnt , LOCK_EX ) /* peeked at stdio.h ! */
  9. -/*#define UNLOCK flock( fp->_cnt , LOCK_UN ) /* */
  10. -/* #define LOCK while((lock = creat(LOCKFILE,0))==-1) Not a good way */
  11. -
  12. #define LOCK if((lock = open(LOCKFILE, O_CREAT | O_TRUNC | O_WRONLY, "r"))==-1){errx (1,"%s","Lockfile creation failed\n"); exit(1);} /* Marina */
  13. #define UNLOCK unlink(LOCKFILE)
  14. -#endif
  15. -
  16. -#ifndef MSDOS /* M001 */
  17. -extern int getuid();
  18. -#else
  19. -#define getuid() 0
  20. #endif
  21. #ifdef COMPARE_BY_NAME