]> Cypherpunks repositories - gostls13.git/commitdiff
all: use one 'l' when cancelling everywhere except Solaris
authorRob Pike <r@golang.org>
Fri, 11 Sep 2015 18:12:15 +0000 (11:12 -0700)
committerRob Pike <r@golang.org>
Fri, 11 Sep 2015 18:31:51 +0000 (18:31 +0000)
Fixes #11626.

Change-Id: I1b70c0844473c3b57a53d7cca747ea5cdc68d232
Reviewed-on: https://go-review.googlesource.com/14526
Run-TryBot: Rob Pike <r@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/cgo/test/issue6997_linux.go
src/cmd/compile/internal/big/float.go
src/math/big/float.go
src/math/cmplx/sqrt.go
src/math/j0.go
src/math/j1.go
src/net/fd_windows.go
src/net/http/httputil/reverseproxy_test.go
src/runtime/signal_solaris.go

index 07fd58e399cfbc39c80931df2de81b36162ecb33..638c3b00cf6cb99ea239dedb10fae6ca4fcd8a3e 100644 (file)
@@ -3,7 +3,7 @@
 // license that can be found in the LICENSE file.
 
 // Test that pthread_cancel works as expected
-// (NPTL uses SIGRTMIN to implement thread cancellation)
+// (NPTL uses SIGRTMIN to implement thread cancelation)
 // See https://golang.org/issue/6997
 package cgotest
 
@@ -32,7 +32,7 @@ func test6997(t *testing.T) {
        select {
        case r = <-c:
                if r == 0 {
-                       t.Error("pthread finished but wasn't cancelled??")
+                       t.Error("pthread finished but wasn't canceled??")
                }
        case <-time.After(30 * time.Second):
                t.Error("hung in pthread_cancel/pthread_join")
index d7aa8953c435ce45684a7d58770e1644028c2224..1f8edee5dd8a0da05c9d4957d98a5259b32eee83 100644 (file)
@@ -1272,7 +1272,7 @@ func (z *Float) usub(x, y *Float) {
                ex = ey
        }
 
-       // operands may have cancelled each other out
+       // operands may have canceled each other out
        if len(z.mant) == 0 {
                z.acc = Exact
                z.form = zero
index ef74fec513c216a93e8b33449dd9fb90c26410f8..b92d5cec2856d6996d282c23e528c5c5fee2fc79 100644 (file)
@@ -1272,7 +1272,7 @@ func (z *Float) usub(x, y *Float) {
                ex = ey
        }
 
-       // operands may have cancelled each other out
+       // operands may have canceled each other out
        if len(z.mant) == 0 {
                z.acc = Exact
                z.form = zero
index 4ef6807addc9e1feed74a8c5738d6a5bc1e4f608..276be07ae9a7ca905c05d145fcb8c4c01370d3f5 100644 (file)
@@ -40,7 +40,7 @@ import "math"
 //                       1/2
 // Im w  =  [ (r - x)/2 ]   .
 //
-// Cancellation error in r-x or r+x is avoided by using the
+// Cancelation error in r-x or r+x is avoided by using the
 // identity  2 Re w Im w  =  y.
 //
 // Note that -w is also a square root of z.  The root chosen
index c20a9b22a89a761731b6adafe4a3839c1cfa5838..de7738880e6f5a10c6028e664add33d731aa2ace 100644 (file)
@@ -38,7 +38,7 @@ package math
 //                      = 1/sqrt(2) * (cos(x) + sin(x))
 //              sin(x0) = sin(x)cos(pi/4)-cos(x)sin(pi/4)
 //                      = 1/sqrt(2) * (sin(x) - cos(x))
-//         (To avoid cancellation, use
+//         (To avoid cancelation, use
 //              sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x))
 //         to compute the worse one.)
 //
@@ -188,7 +188,7 @@ func Y0(x float64) float64 {
                //             =  1/sqrt(2) * (sin(x) + cos(x))
                //     sin(x0) = sin(x)cos(3pi/4)-cos(x)sin(3pi/4)
                //             =  1/sqrt(2) * (sin(x) - cos(x))
-               // To avoid cancellation, use
+               // To avoid cancelation, use
                //     sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x))
                // to compute the worse one.
 
index 7ac186b72aa26cc0f92adf8c15e664708f54f099..c537a72eb2500703463997d93d631e6c2387f1a9 100644 (file)
@@ -39,7 +39,7 @@ package math
 //                      =  1/sqrt(2) * (sin(x) - cos(x))
 //              sin(x1) =  sin(x)cos(3pi/4)-cos(x)sin(3pi/4)
 //                      = -1/sqrt(2) * (sin(x) + cos(x))
-//         (To avoid cancellation, use
+//         (To avoid cancelation, use
 //              sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x))
 //         to compute the worse one.)
 //
@@ -197,7 +197,7 @@ func Y1(x float64) float64 {
                //                 =  1/sqrt(2) * (sin(x) - cos(x))
                //         sin(x0) = sin(x)cos(3pi/4)-cos(x)sin(3pi/4)
                //                 = -1/sqrt(2) * (cos(x) + sin(x))
-               // To avoid cancellation, use
+               // To avoid cancelation, use
                //     sin(x) +- cos(x) = -cos(2x)/(sin(x) -+ cos(x))
                // to compute the worse one.
 
index 205daff9e4607ec22d56a460335c136906fb404d..43b2f0ccb04f09772776adfaaf852893b9421206 100644 (file)
@@ -208,7 +208,7 @@ func (s *ioSrv) ExecIO(o *operation, name string, submit func(o *operation) erro
                s.req <- ioSrvReq{o, nil}
                <-o.errc
        }
-       // Wait for cancellation to complete.
+       // Wait for cancelation to complete.
        fd.pd.WaitCanceled(int(o.mode))
        if o.errno != 0 {
                err = syscall.Errno(o.errno)
@@ -217,8 +217,8 @@ func (s *ioSrv) ExecIO(o *operation, name string, submit func(o *operation) erro
                }
                return 0, err
        }
-       // We issued cancellation request. But, it seems, IO operation succeeded
-       // before cancellation request run. We need to treat IO operation as
+       // We issued a cancelation request. But, it seems, IO operation succeeded
+       // before the cancelation request run. We need to treat the IO operation as
        // succeeded (the bytes are actually sent/recv from network).
        return int(o.qty), nil
 }
index 80a26abe414f1b1252234839ba0f67259a3ac3dc..14897f41185a46d3a5eff16e5393a8307d532957 100644 (file)
@@ -225,7 +225,7 @@ func TestReverseProxyFlushInterval(t *testing.T) {
        }
 }
 
-func TestReverseProxyCancellation(t *testing.T) {
+func TestReverseProxyCancelation(t *testing.T) {
        if runtime.GOOS == "plan9" {
                t.Skip("skipping test; see https://golang.org/issue/9554")
        }
index d8ac67684640331b1390290e88ddcddee1394a2b..0d4fa7f29e5e1ecec53c2d7cd878213c7a7d471f 100644 (file)
@@ -46,7 +46,7 @@ var sigtable = [...]sigTabT{
        /* 33 */ {_SigNotify, "SIGLWP: reserved signal no longer used by"},
        /* 34 */ {_SigNotify, "SIGFREEZE: special signal used by CPR"},
        /* 35 */ {_SigNotify, "SIGTHAW: special signal used by CPR"},
-       /* 36 */ {0, "SIGCANCEL: reserved signal for thread cancellation"},
+       /* 36 */ {0, "SIGCANCEL: reserved signal for thread cancellation"}, // Oracle's spelling of cancelation.
        /* 37 */ {_SigNotify, "SIGLOST: resource lost (eg, record-lock lost)"},
        /* 38 */ {_SigNotify, "SIGXRES: resource control exceeded"},
        /* 39 */ {_SigNotify, "SIGJVM1: reserved signal for Java Virtual Machine"},