View | Details | Raw Unified | Return to bug 156888
Collapse All | Expand All

(-)nawk/Makefile (-1 / +1 lines)
Lines 7-13 Link Here
7
#
7
#
8
8
9
PORTNAME=	nawk
9
PORTNAME=	nawk
10
PORTVERSION=	20100523
10
PORTVERSION=	20110506
11
CATEGORIES=	lang
11
CATEGORIES=	lang
12
MASTER_SITES=	http://www.cs.princeton.edu/~bwk/btl.mirror/
12
MASTER_SITES=	http://www.cs.princeton.edu/~bwk/btl.mirror/
13
DISTNAME=	awk
13
DISTNAME=	awk
(-)nawk/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (nawk/awk.tar.gz) = 0a533b796fc1be8606a2133e87b0f3965686e80f3606da0ae6e85a377a781e2d
1
SHA256 (nawk/awk.tar.gz) = edc078a0d31efec7ccc477ddf47a676601e01ab6322664cec21702706a46b829
2
SIZE (nawk/awk.tar.gz) = 117839
2
SIZE (nawk/awk.tar.gz) = 106833
(-)nawk/files/patch-main.c (-6 / +6 lines)
Lines 1-5 Link Here
1
--- main.c.orig	2007-05-01 16:05:28.000000000 -0500
1
--- main.c.orig	2011-05-06 12:27:59.000000000 +0000
2
+++ main.c	2008-07-08 15:33:37.000000000 -0500
2
+++ main.c	2011-05-08 11:25:32.000000000 +0000
3
@@ -34,6 +34,8 @@
3
@@ -34,6 +34,8 @@
4
 #include "awk.h"
4
 #include "awk.h"
5
 #include "ytab.h"
5
 #include "ytab.h"
Lines 9-19 Link Here
9
 extern	char	**environ;
9
 extern	char	**environ;
10
 extern	int	nfields;
10
 extern	int	nfields;
11
 
11
 
12
@@ -67,6 +69,7 @@
12
@@ -68,6 +70,7 @@
13
 		exit(1);
13
 		exit(1);
14
 	}
14
 	}
15
 	signal(SIGFPE, fpecatch);
15
 	signal(SIGFPE, fpecatch);
16
+	feenableexcept(FE_DIVBYZERO|FE_INEXACT|FE_OVERFLOW);
16
+	feenableexcept(FE_DIVBYZERO|FE_INEXACT|FE_OVERFLOW);
17
 	yyin = NULL;
17
 
18
 	symtab = makesymtab(NSYMTAB/NSYMTAB);
18
 	srand_seed = 1;
19
 	while (argc > 1 && argv[1][0] == '-' && argv[1][1] != '\0') {
19
 	srand(srand_seed);
(-)nawk/files/patch-run.c (-6 / +7 lines)
Lines 1-6 Link Here
1
--- run.c.orig	2009-11-26 23:59:16.000000000 +0000
1
--- run.c.orig	2011-04-30 20:09:59.000000000 +0000
2
+++ run.c	2010-04-29 22:50:49.000000000 +0000
2
+++ run.c	2011-05-08 11:35:23.000000000 +0000
3
@@ -1504,20 +1504,78 @@
3
@@ -1506,13 +1506,71 @@
4
 			nextarg = nextarg->nnext;
4
 			nextarg = nextarg->nnext;
5
 		}
5
 		}
6
 		break;
6
 		break;
Lines 74-84 Link Here
74
 		break;
74
 		break;
75
 	case FSRAND:
75
 	case FSRAND:
76
 		if (isrec(x))	/* no argument provided */
76
 		if (isrec(x))	/* no argument provided */
77
 			u = time((time_t *)0);
77
@@ -1520,7 +1578,7 @@
78
 		else
78
 		else
79
 			u = getfval(x);
79
 			u = getfval(x);
80
 		tmp = u;
80
-		srand((unsigned int) u);
81
-		srand((unsigned int) u);
81
+		srandom((unsigned int) u);
82
+		srandom((unsigned int) u);
83
 		u = srand_seed;
84
 		srand_seed = tmp;
82
 		break;
85
 		break;
83
 	case FTOUPPER:
84
 	case FTOLOWER:

Return to bug 156888