summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-02-15assorted changes:Russ Cox10-163/+192
- use a lock instead of a thread in once avoids deadlock in recursive once calls - implement os.Setenv - remove "export" from some scripts - remove _ from names in time package - fix time test for non-MTV machines R=r DELTA=265 (87 added, 58 deleted, 120 changed) OCL=25057 CL=25057
2009-02-15change the URL in the test to avoid a redirection that breaks it in sydney.Rob Pike1-3/+3
R=rsc OCL=25054 CL=25054
2009-02-15add os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.Russ Cox13-16/+848
as thread-safe as possible, given the surrounding system. add stub RWLock implementation. R=r DELTA=852 (834 added, 6 deleted, 12 changed) OCL=25046 CL=25053
2009-02-15insert ${GOOS} and ${GOARCH} inRuss Cox2-5/+11
command-line comment. R=r DELTA=11 (6 added, 0 deleted, 5 changed) OCL=25051 CL=25051
2009-02-15cleanups:Russ Cox13-242/+274
get rid of _ on private names in net. fix os_test file name list. newline not needed on Errorf. R=r DELTA=305 (34 added, 2 deleted, 269 changed) OCL=25047 CL=25047
2009-02-15build nitsRuss Cox2-8/+2
R=r DELTA=8 (0 added, 6 deleted, 2 changed) OCL=25045 CL=25045
2009-02-15bug fix for &x[0] when x is sliceRuss Cox1-4/+7
R=ken OCL=25044 CL=25044
2009-02-13- accept new composite literal syntaxRobert Griesemer3-148/+33
- remove all parsing heuristics - as a result, accept a wider syntax, but parser is simpler R=r OCL=25029 CL=25029
2009-02-13- added Makefile change again (lost due to to p4 misuse)Robert Griesemer1-0/+1
R=rsc OCL=25026 CL=25026
2009-02-13- vector package (identical to array except for names)Robert Griesemer13-47/+536
- updated some file (but not all - left array package in place for now) R=rsc DELTA=530 (483 added, 0 deleted, 47 changed) OCL=25025 CL=25025
2009-02-13convert composite literals from { } to ( ).Russ Cox92-1616/+1614
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
2009-02-13add composite literal ( ) syntax.Russ Cox4-149/+193
warn about composite literal { } syntax. R=ken OCL=25018 CL=25023
2009-02-13fix buildRuss Cox1-1/+1
TBR=r OCL=25021 CL=25021
2009-02-13label declarations not handled properlyRobert Griesemer2-0/+31
R=rsc DELTA=27 (27 added, 0 deleted, 0 changed) OCL=25015 CL=25015
2009-02-12- fixed bugs related to the empty statementRobert Griesemer4-19/+28
(now in sync with the spec and with 6g) - fixed incorrect logging statement in gds R=r OCL=24970 CL=24970
2009-02-11- syntax for composite literals use () instead of {}Robert Griesemer1-33/+29
- do not permit + for array concatenation anymore (not implemented and not a good idea) - document that unsafe function results are compile time constants - fixed minor typos DELTA=41 (7 added, 11 deleted, 23 changed) OCL=24899 CL=24927
2009-02-11require type assertions when narrowing.Russ Cox3-27/+72
R=ken OCL=24350 CL=24914
2009-02-11insert type assertions when narrowing.Russ Cox17-62/+208
R=r OCL=24349 CL=24913
2009-02-11fix gc bug. i think this is tgs's second bug.Russ Cox2-3/+8
i stumbled across it in all.bash. TBR=r OCL=24912 CL=24912
2009-02-11- language for embedded interfaces (as discussed this morning)Robert Griesemer1-2/+17
- fixed a syntax error R=r DELTA=17 (15 added, 0 deleted, 2 changed) OCL=24876 CL=24889
2009-02-11Added section on package unsafe:Robert Griesemer1-3/+96
- contains a (proposed) constant Maxalign - contains some text re" alignment guarantees R=ken,r DELTA=97 (94 added, 1 deleted, 2 changed) OCL=24791 CL=24871
2009-02-10change DirInfo->dirInfo now that 6g export bug is fixedRob Pike3-4/+4
R=rsc DELTA=4 (0 added, 0 deleted, 4 changed) OCL=24788 CL=24805
2009-02-10drop the os_ prefix on the file names in os. os_test.go can stay.Rob Pike6-10/+10
R=rsc DELTA=793 (392 added, 392 deleted, 9 changed) OCL=24777 CL=24804
2009-02-10fix export bug Rob tripped over.Russ Cox1-8/+0
the lexer is already hiding names, so this clumsy hack is no longer necessary. R=ken OCL=24783 CL=24783
2009-02-10Make Readdirnames work properly on Linux.Rob Pike3-142/+62
Refactor so Readdir is portable code. R=rsc DELTA=192 (50 added, 130 deleted, 12 changed) OCL=24770 CL=24772
2009-02-10Implement unsafe.Alignof.Ian Lance Taylor3-1/+20
R=ken DELTA=20 (19 added, 0 deleted, 1 changed) OCL=24719 CL=24771
2009-02-10Fix Readdirnames to behave properly if reading in little pieces. Requires ↵Rob Pike4-37/+104
storing some state in the FD. This is Darwin only. Next CL will make Readdir use Readdirnames to generate its files and move Readdir into portable code, as well as fix Readdirnames for Linux. R=rsc DELTA=116 (79 added, 12 deleted, 25 changed) OCL=24756 CL=24768
2009-02-10- removed obsolete commentsRobert Griesemer1-2/+1
R=r DELTA=2 (0 added, 1 deleted, 1 changed) OCL=24755 CL=24760
2009-02-09Some real GDS functionality:Robert Griesemer3-28/+134
- directory listings w/ working links - some links working in source code (most don't do the right thing yet) - use of logging R=r OCL=24728 CL=24728
2009-02-09fix Getdirentries: base comes back in r2.Rob Pike1-0/+3
R=rsc DELTA=3 (3 added, 0 deleted, 0 changed) OCL=24727 CL=24727
2009-02-09simple accessors for Dir mode bitsRob Pike3-0/+71
R=rsc DELTA=71 (71 added, 0 deleted, 0 changed) OCL=24687 CL=24694
2009-02-09typo. this split-os building thing is frustrating.Rob Pike1-1/+1
R=rsc OCL=24681 CL=24681
2009-02-09add Readdir: returns an array of Dir structuresRob Pike3-24/+188
R=rsc DELTA=200 (176 added, 12 deleted, 12 changed) OCL=24680 CL=24680
2009-02-09fix int64/int error - build brokenRob Pike1-1/+1
R=gri OCL=24678 CL=24678
2009-02-08add error to catch 6g alignment bug.Russ Cox1-0/+5
the fix appears to be to align the out struct on an 8 boundary, but that is a bit involved. R=ken OCL=24657 CL=24657
2009-02-08gc funarg return fix.Russ Cox1-2/+5
change type (to satisfy OAS) after nodarg: nodarg uses offset from type too, and must use correct offset. R=ken OCL=24656 CL=24656
2009-02-08First pass at reading directories.Rob Pike8-13/+216
Syscall support. Readdirnames returns array of strings of contents of directory. R=rsc DELTA=216 (201 added, 0 deleted, 15 changed) OCL=24642 CL=24655
2009-02-08a few small cleanupsRob Pike3-19/+19
R=rsc DELTA=21 (2 added, 2 deleted, 17 changed) OCL=24638 CL=24654
2009-02-08use unsafe.SizeofRob Pike1-6/+6
R=rsc DELTA=9 (3 added, 3 deleted, 3 changed) OCL=24640 CL=24653
2009-02-07update sysimport.c for unsafe.Offset and SizeofRob Pike1-0/+2
R=ken DELTA=2 (2 added, 0 deleted, 0 changed) OCL=24643 CL=24643
2009-02-07change array padding in structuresKen Thompson1-2/+12
to pad to size of element rather than size of array. R=r OCL=24641 CL=24641
2009-02-07unsafe.Sizeof and unsafe.OffsetofKen Thompson4-1/+57
R=r OCL=24639 CL=24639
2009-02-06fix up syscall for darwin after StringToBytes changeRob Pike1-30/+12
R=rsc DELTA=30 (0 added, 18 deleted, 12 changed) OCL=24628 CL=24628
2009-02-06portable stat for osRob Pike11-86/+277
add name to os.FD clean up some interfaces R=rsc DELTA=318 (231 added, 44 deleted, 43 changed) OCL=24624 CL=24627
2009-02-06fstat used wrong system call, lstat used wrong type of nameRob Pike1-3/+7
R=rsc DELTA=7 (4 added, 0 deleted, 3 changed) OCL=24617 CL=24617
2009-02-06- removed todo and restriction from spec (closures)Robert Griesemer1-15/+17
- fixed typos, added a reminder for a todo R=r DELTA=23 (6 added, 4 deleted, 13 changed) OCL=24611 CL=24615
2009-02-06bug: empty statement not properly recognized in conjunction w/ labelsRobert Griesemer2-0/+18
R=r DELTA=14 (14 added, 0 deleted, 0 changed) OCL=24610 CL=24610
2009-02-06Recognize gccgo error messages:Ian Lance Taylor1-2/+2
func4.go:8:11: error: invalid operand for unary '&' func4.go:9:8: error: invalid left hand side of assignment R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=24294 CL=24603
2009-02-06snapshot:Robert Griesemer5-45/+152
- first stab at a Go Documentation Server (gds) - various fixes to make initial version of gds work R=r OCL=24588 CL=24588
2009-02-06powser cleanup.Rob Pike2-122/+104
- don't need *struct - don't need item/rat both - closures make the inner slaves easier - delete some old BUG comments powser2 is left mostly alone, for variety. R=rsc DELTA=134 (2 added, 20 deleted, 112 changed) OCL=24579 CL=24581