summaryrefslogtreecommitdiff
path: root/src/lib/os
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09mv src/lib to src/pkgRob Pike21-2307/+0
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102
2009-06-08mksyscall was treating 64-bit systems as 32-bit,Russ Cox1-0/+32
so 64-bit args like the offset in Seek were being mishandled. fix. R=dsymonds DELTA=1269 (645 added, 611 deleted, 13 changed) OCL=30082 CL=30082
2009-06-05rebuilt Makefiles for CL 29923Russ Cox1-14/+6
R=r DELTA=761 (1 added, 433 deleted, 327 changed) OCL=29927 CL=29966
2009-06-04missing darwin files; g4 nothave.Russ Cox2-0/+117
R=r DELTA=115 (115 added, 0 deleted, 0 changed) OCL=29884 CL=29888
2009-06-04linux 386 support; now in same state as darwin 386Russ Cox2-0/+130
(stuck on 8l bug). R=r DELTA=349 (342 added, 1 deleted, 6 changed) OCL=29882 CL=29886
2009-06-03Define os.PageSize and syscall.PageSize.David Symonds1-0/+5
R=rsc APPROVED=rsc DELTA=13 (13 added, 0 deleted, 0 changed) OCL=29429 CL=29819
2009-06-02for consistency with syscall, rename filesRuss Cox6-10/+24
from GOARCH_GOOS -> GOOS_GOARCH. update os_test and add test of Time. R=r DELTA=490 (247 added, 233 deleted, 10 changed) OCL=29730 CL=29805
2009-06-01update Go tree to use new syscall package.Russ Cox12-183/+137
R=r DELTA=713 (109 added, 386 deleted, 218 changed) OCL=29707 CL=29722
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-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 Getwd, Fchdir, testsRuss Cox5-9/+159
R=r DELTA=215 (186 added, 0 deleted, 29 changed) OCL=28968 CL=28995
2009-05-15os: MkdirAll, RemoveAll, Chmod, Chown, Truncate, Getgroups.Russ Cox6-32/+490
Getuid, etc drop their errors -- they cannot error R=r DELTA=605 (547 added, 12 deleted, 46 changed) OCL=28919 CL=28929
2009-05-15make Stat indicate whether it followed a symlink.Russ Cox5-23/+57
R=r DELTA=61 (34 added, 0 deleted, 27 changed) OCL=28904 CL=28906
2009-05-15add directory argument to os.ForkExecRuss Cox2-2/+25
R=iant DELTA=41 (35 added, 0 deleted, 6 changed) OCL=28892 CL=28895
2009-05-14Getuid etc.Rob Pike2-2/+52
R=rsc DELTA=51 (49 added, 0 deleted, 2 changed) OCL=28859 CL=28859
2009-05-13Unix domain socket support, Linux and Darwin.Russ Cox1-0/+2
R=r DELTA=534 (353 added, 99 deleted, 82 changed) OCL=28783 CL=28783
2009-05-13Add os.Link, os.Symlink, os.Readlink.Ian Lance Taylor2-0/+121
R=r,rsc DELTA=161 (161 added, 0 deleted, 0 changed) OCL=28745 CL=28747
2009-05-08use exitgroup on linux to exit whole process.Russ Cox3-3/+23
R=r DELTA=60 (38 added, 19 deleted, 3 changed) OCL=28589 CL=28589
2009-05-08implications of stricter type equality:Russ Cox1-2/+2
if both types are named, they must be the same type (arising from the same declaration). R=r,gri DELTA=44 (21 added, 4 deleted, 19 changed) OCL=28436 CL=28577
2009-05-08fix commentRuss Cox1-1/+0
R=r DELTA=1 (0 added, 1 deleted, 0 changed) OCL=28576 CL=28576
2009-05-08fix build - missing fileRuss Cox1-0/+21
TBR=r OCL=28575 CL=28575
2009-05-08move things out of sys into os and runtimeRuss Cox3-4/+5
R=r OCL=28569 CL=28573
2009-05-08throw away os._Error.Russ Cox1-45/+5
make some error types in a few packages R=r DELTA=110 (25 added, 46 deleted, 39 changed) OCL=28382 CL=28561
2009-05-06fix a few type errors, make ErrorString a valueRuss Cox1-2/+2
will submit with fixed compiler R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=28371 CL=28379
2009-04-29exit with error status EPIPE ifRuss Cox1-1/+10
one fd gets too many EPIPEs in a row during write. R=r DELTA=10 (9 added, 0 deleted, 1 changed) OCL=28057 CL=28057
2009-04-18the Big Error Shift applied to lib/time/zoneinfo.go.Rob Pike1-2/+2
R=gri DELTA=22 (5 added, 0 deleted, 17 changed) OCL=27608 CL=27614
2009-04-17Step 2 of the Big Error Shift.Rob Pike1-65/+61
Change the representation of errors in "os" to be cleaner. (But they are not really representative of the power of the new scheme.) Step 3 will be to remove all references to os.NewError. Step 4 will be to delete the second half of lib/os/error.go. R=rsc OCL=27587 CL=27587
2009-04-17Step 1 of the Big Error Shift: make os.Error an interface and replace ↵Rob Pike7-39/+56
*os.Errors with os.Errors. lib/template updated to use new setup; its clients also updated. Step 2 will make os's error support internally much cleaner. R=rsc OCL=27586 CL=27586
2009-04-16fix linux buildRob Pike1-1/+1
R=rsc OCL=27579 CL=27579
2009-04-16Convert go tree to hierarchical pkg directory:Russ Cox3-13/+17
import ( "vector" -> "container/vector" "ast" -> "go/ast" "sha1" -> "hash/sha1" etc. ) and update Makefiles. Because I did the conversion semi-automatically, I sorted all the import blocks as a post-processing. Some files have therefore changed that didn't strictly need to. Rename local packages to lower case. The upper/lower distinction doesn't work on OS X and complicates the "single-package directories with the same package name as directory name" heuristic used by gobuild and godoc to create the correlation between source and binary locations. Now that we have a plan to avoid globally unique names, the upper/lower is unnecessary. The renamings will cause trouble for a few users, but so will the change in import paths. This way, the two maintenance fixes are rolled into one inconvenience. R=r OCL=27573 CL=27575
2009-04-16regenerate Makefiles.Russ Cox1-12/+20
fix bug in RPC.go (import "RPC" not "rpc.pb") R=r DELTA=483 (261 added, 64 deleted, 158 changed) OCL=27547 CL=27549
2009-04-15code changes for array conversion.Russ Cox1-1/+1
as a reminder, the old conversion was that you could write var arr [10]byte; var slice []byte; slice = arr; but now you have to write slice = &arr; the change eliminates an implicit &, so that the only implicit &s left are in the . operator and in string(arr). also, removed utf8.EncodeRuneToString in favor of string(rune). R=r DELTA=83 (1 added, 23 deleted, 59 changed) OCL=27531 CL=27534
2009-04-14fix infinite loop in Readdirnames: bufp > nbuf can happenRuss Cox3-3/+3
after EOF has been hit, because nbuf is now 0 or -1. discard old comment. R=r DELTA=3 (0 added, 0 deleted, 3 changed) OCL=27463 CL=27465
2009-04-13fix error return in RemoveRuss Cox1-2/+2
change canexec to canExec. R=r DELTA=7 (0 added, 0 deleted, 7 changed) OCL=27393 CL=27398
2009-04-13lib miscRuss Cox1-0/+30
* exec.LookPath * flag.Args * os.Remove * strings.HasPrefix * strings.HasSuffix * syscall.Rmdir TBR=r DELTA=100 (100 added, 0 deleted, 0 changed) OCL=27373 CL=27392
2009-04-10fix typo breaking linux buildRob Pike1-1/+1
R=rsc OCL=27304 CL=27304
2009-04-07throw away . and .. in directory listingsRuss Cox3-2/+13
R=r DELTA=13 (11 added, 0 deleted, 2 changed) OCL=27147 CL=27154
2009-04-07ChdirRuss Cox1-0/+6
R=r DELTA=17 (17 added, 0 deleted, 0 changed) OCL=27146 CL=27153
2009-03-11Rename os.FD to os.File.Russ Cox5-92/+94
Make Fstat, Readdirnames, and Readdir methods on os.File. R=r DELTA=281 (79 added, 3 deleted, 199 changed) OCL=25891 CL=26130
2009-03-07document osRob Pike6-47/+143
R=rsc DELTA=143 (96 added, 0 deleted, 47 changed) OCL=25876 CL=25888
2009-03-03Automated g4 rollback of changelist 25024,Russ Cox5-9/+9
plus significant hand editing. Back to T{x} for composite literals. R=r OCL=25612 CL=25632
2009-02-15assorted changes:Russ Cox2-10/+59
- 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-15add os.ForkExec, os.Exec, os.Wait, exec.OpenCmd.Russ Cox3-6/+97
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-15cleanups:Russ Cox1-8/+9
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-13convert composite literals from { } to ( ).Russ Cox3-6/+6
only non-trivial changes are in convlit1.go golden.out R=gri OCL=25019 CL=25024
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-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-10Fix Readdirnames to behave properly if reading in little pieces. Requires ↵Rob Pike3-34/+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-09simple accessors for Dir mode bitsRob Pike1-0/+34
R=rsc DELTA=71 (71 added, 0 deleted, 0 changed) OCL=24687 CL=24694