aboutsummaryrefslogtreecommitdiff
path: root/src/lib/os
AgeCommit message (Collapse)Author
2009-02-09typo. this split-os building thing is frustrating.Rob Pike
R=rsc OCL=24681 CL=24681
2009-02-09add Readdir: returns an array of Dir structuresRob Pike
R=rsc DELTA=200 (176 added, 12 deleted, 12 changed) OCL=24680 CL=24680
2009-02-09fix int64/int error - build brokenRob Pike
R=gri OCL=24678 CL=24678
2009-02-08First pass at reading directories.Rob Pike
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-06portable stat for osRob Pike
add name to os.FD clean up some interfaces R=rsc DELTA=318 (231 added, 44 deleted, 43 changed) OCL=24624 CL=24627
2009-01-26Add an accessor function os.FD.Fd() to get the fileIan Lance Taylor
descriptor. Use it in the PollServer code. 6g currently accepts this code without this change, but it should not. Test case for the bug is bug133.go. R=rsc DELTA=10 (0 added, 0 deleted, 10 changed) OCL=23451 CL=23486
2009-01-20delete exportRuss Cox
TBR=r OCL=23121 CL=23127
2009-01-16casify, cleanup sysRuss Cox
R=r OCL=22978 CL=22984
2009-01-16casify syscall and sequelaeRob Pike
R=rsc DELTA=337 (0 added, 1 deleted, 336 changed) OCL=22950 CL=22950
2009-01-09typoRuss Cox
R=r DELTA=1 (0 added, 0 deleted, 1 changed) OCL=22411 CL=22411
2009-01-07Cache *os.Error values across all users.Rob Pike
R=rsc DELTA=27 (23 added, 0 deleted, 4 changed) OCL=22245 CL=22245
2009-01-06new new & makeRuss Cox
R=r OCL=22166 CL=22166
2008-12-18convert *[] to [].Russ Cox
R=r OCL=21563 CL=21571
2008-11-19refine gobuild: the files must be *_test.go not *test.goRob Pike
this causes complications R=rsc DELTA=1724 (849 added, 856 deleted, 19 changed) OCL=19667 CL=19667
2008-11-19gobuild: add coverage rule, ignore files in package main.Russ Cox
R=r DELTA=55 (41 added, 11 deleted, 3 changed) OCL=19594 CL=19598
2008-11-19leave 6.out around after gotest;Russ Cox
delete it in make clean. R=r DELTA=10 (0 added, 0 deleted, 10 changed) OCL=19542 CL=19581
2008-11-18read and write never return -1 now: error return is through the error ↵Rob Pike
variable only R=rsc DELTA=13 (9 added, 0 deleted, 4 changed) OCL=19538 CL=19570
2008-11-18gobuild changes.Russ Cox
* handles multiple packages per directory * scans directory for files if given no arguments * infers package name * includes test rule invoking gotest R=r DELTA=746 (444 added, 150 deleted, 152 changed) OCL=19504 CL=19521
2008-11-14buf fix: make FD.Read, FD.Write work for empty buffersRobert Griesemer
R=r DELTA=8 (6 added, 0 deleted, 2 changed) OCL=19273 CL=19275
2008-10-23use &T{1,2,3} constructor for simple new casesRuss Cox
R=r OCL=17691 CL=17719
2008-10-09Adding Mkdir.Cary Hull
R=rsc APPROVED=rsc DELTA=21 (21 added, 0 deleted, 0 changed) OCL=16794 CL=16803
2008-10-07update code to follow new semicolon rules:Russ Cox
* 1. all statements and declarations are terminated by semicolons * 2. semicolons can be omitted at top level. * 3. semicolons can be omitted before and after the closing ) or } * on a list of statements or declarations. /home/rsc/bin/addsemi and then diff+tweak. R=r,gri OCL=16620 CL=16643
2008-09-26add os.PipeRuss Cox
R=r OCL=15989 CL=16001
2008-09-22add os.Getenv()Rob Pike
R=rsc DELTA=51 (50 added, 0 deleted, 1 changed) OCL=15665 CL=15667
2008-09-19export an os.Error constructorRuss Cox
R=r DELTA=20 (6 added, 7 deleted, 7 changed) OCL=15569 CL=15571
2008-09-19add gobuild.Russ Cox
use gobuild-generated Makefile for math and os. other makefile tweaks. move math/main.go to test/math.go R=r OCL=15529 CL=15537
2008-09-18make Makefiles safe for parallel makeRuss Cox
use -j4 (4-way parallel) in make.bash. halves time for make.bash on r45 also add libregexp, acid to default build R=r DELTA=90 (39 added, 37 deleted, 14 changed) OCL=15485 CL=15487
2008-09-17time & date.Russ Cox
rename AddrToInt, StatToInt, etc -> BytePtr, StatPtr, ... R=r OCL=15450 CL=15456
2008-09-12buffered input & outputRuss Cox
R=r DELTA=812 (803 added, 0 deleted, 9 changed) OCL=15225 CL=15280
2008-09-11fixes for funcs without returnsRob Pike
R=ken OCL=15170 CL=15170
2008-09-11pull O_RDONLY etc. up to os libraryRob Pike
R=rsc DELTA=16 (14 added, 0 deleted, 2 changed) OCL=15156 CL=15163
2008-09-11make syscall use strings for file namesRob Pike
tweak os to adjust move StringToBytes into syscall, at least for now this program still works: package main import os "os" func main() { os.Stdout.WriteString("hello, world\n"); a, b := os.NewFD(77).WriteString("no way"); os.Stdout.WriteString(b.String() + "\n"); } R=rsc DELTA=263 (59 added, 176 deleted, 28 changed) OCL=15153 CL=15153
2008-09-11add lib/os to standard buildRob Pike
break lib/os into multiple source files R=rsc DELTA=189 (178 added, 4 deleted, 7 changed) OCL=15149 CL=15152
2008-09-10make FD a struct with Read, Write, etc.Rob Pike
as methods R=gri,rsc DELTA=99 (56 added, 31 deleted, 12 changed) OCL=15103 CL=15103
2008-09-10add an Error type to be used as a singleton pointerRob Pike
put all the code in one file for now to work around compiler bug R=gri,rsc DELTA=168 (120 added, 41 deleted, 7 changed) OCL=15100 CL=15100
2008-09-10rudimentary beginnings of soon-to-be-real os libraryRob Pike
R=gri DELTA=76 (76 added, 0 deleted, 0 changed) OCL=15086 CL=15088