summaryrefslogtreecommitdiff
path: root/src/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-06-01- enable scanner to handle illegal chars w/o returning an errorRobert Griesemer3-15/+55
so that it can be used for non-Go chars - adjust parser accordingly R=rsc DELTA=58 (42 added, 2 deleted, 14 changed) OCL=29688 CL=29703
2009-06-01io.ReadFileRobert Griesemer3-1/+66
R=r,rsc DELTA=64 (63 added, 0 deleted, 1 changed) OCL=29702 CL=29702
2009-05-27attach package commentRuss Cox1-1/+0
R=r DELTA=1 (0 added, 1 deleted, 0 changed) OCL=29473 CL=29477
2009-05-27getrusage on darwin; untested but builds.Russ Cox1-0/+5
R=dsymonds DELTA=5 (5 added, 0 deleted, 0 changed) OCL=29424 CL=29447
2009-05-26Getrusage for linux.David Symonds4-2/+42
R=rsc APPROVED=rsc DELTA=40 (38 added, 0 deleted, 2 changed) OCL=29351 CL=29422
2009-05-25Add os.Getpid and os.Getppid.David Symonds1-0/+11
R=rsc APPROVED=rsc DELTA=11 (11 added, 0 deleted, 0 changed) OCL=29352 CL=29357
2009-05-24Add exvar.FuncInt for exporting indirect integer variables.David Symonds2-0/+21
R=r APPROVED=r DELTA=21 (21 added, 0 deleted, 0 changed) OCL=29320 CL=29338
2009-05-23If Make.deps is not writable (e.g. in Perforce client and not opened for ↵David Symonds2-2/+6
editing), bail out immediately. R=rsc,r APPROVED=r DELTA=7 (5 added, 1 deleted, 1 changed) OCL=29319 CL=29319
2009-05-23add crypto/hmac to makefileRob Pike3-0/+3
R=rsc DELTA=4 (3 added, 0 deleted, 1 changed) OCL=29314 CL=29314
2009-05-22update Make.depsRuss Cox1-2/+2
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=29305 CL=29308
2009-05-22typo in hmac commentRuss Cox1-1/+1
R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=29307 CL=29307
2009-05-22Automated g4 rollback of changelist 29302.Russ Cox6-212/+43
*** Reason for rollback *** too many files included *** Original change description *** simplifying grammar: delete LBASETYPE and LACONST R=ken OCL=29303 CL=29303
2009-05-22simplifying grammar: delete LBASETYPE and LACONSTRuss Cox6-43/+212
R=ken OCL=29300 CL=29302
2009-05-22add hmac.NewSHA1 and hmac.NewMD5.Russ Cox5-35/+140
fix Reset bug in sha1. add hmac, sha1, md5 tests. document hmac. R=r DELTA=146 (111 added, 6 deleted, 29 changed) OCL=29294 CL=29299
2009-05-22simple logging shim reader and writersRuss Cox2-1/+57
R=r DELTA=53 (52 added, 0 deleted, 1 changed) OCL=29295 CL=29298
2009-05-22move pretty/comment.go into go/doc.Russ Cox3-96/+329
extract comment text code out of go/doc/doc.go into comment.go. no code changes, just rearrangement. first step so i can write tests. R=gri DELTA=633 (318 added, 301 deleted, 14 changed) OCL=29269 CL=29293
2009-05-22md5 Reset fix; preliminary hmacRuss Cox4-0/+177
TBR=r OCL=29279 CL=29279
2009-05-22- fix regexp once more in doc.go:Robert Griesemer1-1/+1
comment markers must only be stripped if they are at the very beginning otherwise comments that contain code with comments get screwed up (the ast delivers clean comments with no junk before or after) - fix indentation in google/net/rpc/rpc.go which screwed up godoc formatting R=rsc DELTA=3 (0 added, 0 deleted, 3 changed) OCL=29223 CL=29267
2009-05-21fix regexp to strip comment markersRobert Griesemer1-1/+1
R=rsc DELTA=1 (0 added, 0 deleted, 1 changed) OCL=29221 CL=29221
2009-05-21adjustments for relaxed composite literal syntaxRobert Griesemer1-30/+9
R=r DELTA=41 (0 added, 21 deleted, 20 changed) OCL=29219 CL=29219
2009-05-21channel direction fixesRuss Cox1-2/+2
R=dsymonds DELTA=2 (0 added, 0 deleted, 2 changed) OCL=29210 CL=29215
2009-05-21related reflect bug: make copies of big valuesRuss Cox2-9/+50
so that callers cannot edit large values inside interfaces. R=r DELTA=52 (42 added, 1 deleted, 9 changed) OCL=29180 CL=29195
2009-05-21I guess I forgot there was a unary ^ operator.Russ Cox1-3/+2
R=r DELTA=3 (0 added, 1 deleted, 2 changed) OCL=29151 CL=29176
2009-05-21direct all interface extraction to InterfaceValue.Get.Russ Cox2-106/+124
delete unnecessary reflect. throughout R=r DELTA=124 (18 added, 0 deleted, 106 changed) OCL=29173 CL=29175
2009-05-21fix build again; this time for sure.Russ Cox1-0/+24
(this time i ran g4 nothave) TBR=r OCL=29156 CL=29156
2009-05-21missed Makefile before; fix buildRuss Cox1-0/+68
TBR=dsymonds OCL=29155 CL=29155
2009-05-20hash reorg.Russ Cox14-93/+160
* new package hash defining interfaces Hash and Hash32. * adler32 and crc32 return Hash32 instead of specific types. * adler32 and crc32 provide non-allocating methods for single slices. * sha1 and md5 move to crypto, return Hash. * sum.go, a simple test program, moves to /usr/rsc. * refresh Make.deps R=r DELTA=1908 (935 added, 923 deleted, 50 changed) OCL=29095 CL=29135
2009-05-20reflect bug: NewZeroValue was refusing to create slices.Russ Cox2-8/+1
as far as I can tell there's no reason not to. the Nillable test was succeeding because NewZeroValue returned the nil interface value and the type guard was letting it through. the only change in the test is more detail in the print. R=r DELTA=8 (0 added, 7 deleted, 1 changed) OCL=29124 CL=29126
2009-05-20more useful error stringRobert Griesemer1-1/+5
R=r DELTA=5 (4 added, 0 deleted, 1 changed) OCL=29088 CL=29090
2009-05-19build crypto/block.Russ Cox3-0/+99
deps.bash tweak. R=r DELTA=95 (95 added, 0 deleted, 0 changed) OCL=29046 CL=29059
2009-05-19final AES: CMAC authentication and EAX authenticated encryptionRuss Cox10-12/+795
R=r DELTA=791 (779 added, 0 deleted, 12 changed) OCL=29045 CL=29058
2009-05-19deps.bash tweak - no need to sort -u the $O files.Russ Cox1-1/+1
R=dsymonds DELTA=1 (0 added, 0 deleted, 1 changed) OCL=29048 CL=29053
2009-05-19Xor-based crypto modes: OFB and CTR stream encryption.Russ Cox6-0/+649
R=r DELTA=643 (643 added, 0 deleted, 0 changed) OCL=29017 CL=29047
2009-05-19Crypto modes: CBC, CFB, ECB.Russ Cox9-3/+1260
Not ready to link into build yet. Delta says 1272 lines but only 474 if you subtract the test files, which are mostly data. R=r DELTA=1252 (1249 added, 0 deleted, 3 changed) OCL=29013 CL=29037
2009-05-19testing: add t.Failed() boolRuss Cox1-8/+14
R=r DELTA=18 (10 added, 4 deleted, 4 changed) OCL=29000 CL=29034
2009-05-18Create dependencies automatically for top-level lib directory.David Symonds3-43/+80
It caught a few missing dependencies (bufio/fmt -> utf8, fmt -> os, http -> strconv, etc.). R=r,rsc APPROVED=r DELTA=126 (79 added, 45 deleted, 2 changed) OCL=28983 CL=29014
2009-05-18tweaks to exvar.MapBrendan O'Dea1-2/+6
R=dsymonds,rsc APPROVED=rsc DELTA=88 (53 added, 17 deleted, 18 changed) OCL=28452 CL=29008
2009-05-18Public AES block interface.Russ Cox5-67/+196
The higher-level stream modes will be in crypto/block. R=r DELTA=205 (136 added, 7 deleted, 62 changed) OCL=29002 CL=29006
2009-05-18- changed parser to return os.Error, removed ErrorHandlerRobert Griesemer3-82/+144
- added IsValid predicate to token.Position - updated pretty, godoc, gobuild - updated/expanded test cases R=rsc DELTA=265 (97 added, 78 deleted, 90 changed) OCL=28961 CL=29005
2009-05-18Getgroups max on Linux is bigger than I thought.Russ Cox1-1/+3
R=iant DELTA=3 (2 added, 0 deleted, 1 changed) OCL=28994 CL=29003
2009-05-18add io.ByteReader.Russ Cox7-211/+270
add testing/iotest package. make bufio return error on short write. R=r DELTA=423 (208 added, 154 deleted, 61 changed) OCL=28997 CL=28999
2009-05-18rewrote initialization to save space.Ken Thompson1-621/+164
fixed bug in seeding. top 11 bits were not changed by different seeds. R=r OCL=28998 CL=28998
2009-05-18move ShortWrite error into io so that other packages can use it.Russ Cox3-8/+14
R=r DELTA=15 (7 added, 1 deleted, 7 changed) OCL=28996 CL=28996
2009-05-18add Getwd, Fchdir, testsRuss Cox8-29/+216
R=r DELTA=215 (186 added, 0 deleted, 29 changed) OCL=28968 CL=28995
2009-05-15make Len() == 0 for nil vector.VectorRobert Griesemer2-0/+12
(mimic behavior of slices) R=r DELTA=12 (12 added, 0 deleted, 0 changed) OCL=28960 CL=28962
2009-05-15don't require ()'s around composite literals if theRobert Griesemer1-31/+26
literal type is not a type name R=rsc DELTA=41 (2 added, 7 deleted, 32 changed) OCL=28955 CL=28957
2009-05-15s/NewLogger/New/Rob Pike2-7/+7
R=rsc DELTA=7 (0 added, 0 deleted, 7 changed) OCL=28947 CL=28950
2009-05-15close TODORuss Cox2-42/+16
R=r DELTA=42 (0 added, 26 deleted, 16 changed) OCL=28940 CL=28942
2009-05-15implement %#o %#x %#X formatsRob Pike2-1/+21
R=rsc OCL=28936 CL=28936
2009-05-15os: MkdirAll, RemoveAll, Chmod, Chown, Truncate, Getgroups.Russ Cox8-58/+595
Getuid, etc drop their errors -- they cannot error R=r DELTA=605 (547 added, 12 deleted, 46 changed) OCL=28919 CL=28929