mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
new upstream
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: extern.h,v 1.25 2003/08/07 09:37:42 agc Exp $ */
|
||||
/* $NetBSD: extern.h,v 1.27 2004/02/08 00:32:48 jsm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@@ -32,6 +32,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "machdep.h"
|
||||
|
||||
/* program mode */
|
||||
|
||||
@@ -44,8 +44,8 @@ __RCSID("$NetBSD: main.c,v 1.21 2003/08/07 09:37:43 agc Exp $");
|
||||
#endif /* not lint */
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <setjmp.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: misc.c,v 1.13 2003/08/07 09:37:43 agc Exp $ */
|
||||
/* $NetBSD: misc.c,v 1.14 2004/02/08 00:32:48 jsm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@@ -34,13 +34,14 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)misc.c 8.2 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: misc.c,v 1.13 2003/08/07 09:37:43 agc Exp $");
|
||||
__RCSID("$NetBSD: misc.c,v 1.14 2004/02/08 00:32:48 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/file.h>
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/file.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pl_1.c,v 1.17 2003/08/07 09:37:43 agc Exp $ */
|
||||
/* $NetBSD: pl_1.c,v 1.18 2004/01/27 20:23:36 jsm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@@ -34,7 +34,7 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)pl_1.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: pl_1.c,v 1.17 2003/08/07 09:37:43 agc Exp $");
|
||||
__RCSID("$NetBSD: pl_1.c,v 1.18 2004/01/27 20:23:36 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@@ -129,12 +129,12 @@ choke(int n __attribute__((__unused__)))
|
||||
void
|
||||
child(int n __attribute__((__unused__)))
|
||||
{
|
||||
union wait status;
|
||||
int status;
|
||||
int pid;
|
||||
|
||||
signal(SIGCHLD, SIG_IGN);
|
||||
do {
|
||||
pid = wait3((int *)&status, WNOHANG, (struct rusage *)0);
|
||||
pid = wait3(&status, WNOHANG, (struct rusage *)0);
|
||||
if (pid < 0 || (pid > 0 && !WIFSTOPPED(status)))
|
||||
hasdriver = 0;
|
||||
} while (pid > 0);
|
||||
|
||||
10
sail/sync.c
10
sail/sync.c
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sync.c,v 1.21 2003/08/07 09:37:45 agc Exp $ */
|
||||
/* $NetBSD: sync.c,v 1.22 2004/01/27 20:27:59 jsm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1983, 1993
|
||||
@@ -34,10 +34,13 @@
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: sync.c,v 1.21 2003/08/07 09:37:45 agc Exp $");
|
||||
__RCSID("$NetBSD: sync.c,v 1.22 2004/01/27 20:27:59 jsm Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
#include <sys/file.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
@@ -45,9 +48,6 @@ __RCSID("$NetBSD: sync.c,v 1.21 2003/08/07 09:37:45 agc Exp $");
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <sys/file.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
#include "extern.h"
|
||||
|
||||
Reference in New Issue
Block a user