summaryrefslogtreecommitdiff
path: root/src/lib/syscall
AgeCommit message (Collapse)AuthorFilesLines
2009-06-09mv src/lib to src/pkgRob Pike41-9830/+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 Cox3-72/+74
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-04machine-generated files for CL 29882Russ Cox4-0/+1652
R=r DELTA=1652 (1652 added, 0 deleted, 0 changed) OCL=29883 CL=29887
2009-06-04linux 386 support; now in same state as darwin 386Russ Cox6-7/+232
(stuck on 8l bug). R=r DELTA=349 (342 added, 1 deleted, 6 changed) OCL=29882 CL=29886
2009-06-04more 386 runtime fixes.Russ Cox3-1/+15
can pass many tests; current stumbling block is an 8l bug. R=r DELTA=122 (83 added, 8 deleted, 31 changed) OCL=29872 CL=29876
2009-06-03fix build. i would love to know why my other clientRuss Cox1-11/+0
didn't see this as a diff. TBR=r OCL=29827 CL=29831
2009-06-03Define os.PageSize and syscall.PageSize.David Symonds2-0/+8
R=rsc APPROVED=rsc DELTA=13 (13 added, 0 deleted, 0 changed) OCL=29429 CL=29819
2009-06-02mechanically-generated syscall filesRuss Cox4-0/+1615
R=r DELTA=1615 (1615 added, 0 deleted, 0 changed) OCL=29803 CL=29810
2009-06-02386 library updatesRuss Cox5-4/+144
R=r DELTA=161 (153 added, 0 deleted, 8 changed) OCL=29802 CL=29809
2009-06-01auto-generated, renamed, and deleted filesRuss Cox28-2046/+2539
associated with CL 29709. R=r DELTA=6444 (3476 added, 2958 deleted, 10 changed) OCL=29710 CL=29724
2009-06-01new syscall package: manually maintained files and scripts.Russ Cox15-72/+2351
auto-generated files and deletions are in another CL. goals for new syscall: * automate as much as possible * do not let clients do unsafe things * use simple types (int not int64) * fewer files the files are renamed from foo_amd64_linux to foo_linux_amd64, both because it reads better (all the linux are related, all the amd64 less so) and because it made it easier to replace the existing ones. R=r DELTA=2336 (2260 added, 6 deleted, 70 changed) OCL=29709 CL=29723
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-18add Getwd, Fchdir, testsRuss Cox3-20/+57
R=r DELTA=215 (186 added, 0 deleted, 29 changed) OCL=28968 CL=28995
2009-05-15close TODORuss Cox2-42/+16
R=r DELTA=42 (0 added, 26 deleted, 16 changed) OCL=28940 CL=28942
2009-05-15os: MkdirAll, RemoveAll, Chmod, Chown, Truncate, Getgroups.Russ Cox2-26/+105
Getuid, etc drop their errors -- they cannot error R=r DELTA=605 (547 added, 12 deleted, 46 changed) OCL=28919 CL=28929
2009-05-15add directory argument to os.ForkExecRuss Cox1-3/+15
R=iant DELTA=41 (35 added, 0 deleted, 6 changed) OCL=28892 CL=28895
2009-05-14fix abstract unix domain socketsRob Pike2-2/+4
R=rsc DELTA=5 (3 added, 0 deleted, 2 changed) OCL=28845 CL=28849
2009-05-13Unix domain socket support, Linux and Darwin.Russ Cox2-10/+0
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/+40
R=r,rsc DELTA=161 (161 added, 0 deleted, 0 changed) OCL=28745 CL=28747
2009-05-07next step for 6.out on Borg: fix and testRuss Cox2-0/+14
net code on IPv4-only machines. R=r DELTA=27 (25 added, 0 deleted, 2 changed) OCL=28404 CL=28411
2009-04-16Convert go tree to hierarchical pkg directory:Russ Cox1-11/+15
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-18/+24
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-13lib miscRuss Cox2-0/+12
* 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-07ChdirRuss Cox2-0/+11
R=r DELTA=17 (17 added, 0 deleted, 0 changed) OCL=27146 CL=27153
2009-04-06an early 6g limitation forced the use ofRuss Cox2-2/+2
string(b)[0:n] instead of the more direct string(b[0:n]). convert to the more direct form. R=r DELTA=5 (0 added, 0 deleted, 5 changed) OCL=27082 CL=27140
2009-03-12make 6g constants behave as ken proposes. (i hope.)Russ Cox2-2/+2
various bug fixes and tests involving constants. test/const1.go is the major new test case. R=ken OCL=26216 CL=26224
2009-03-06document Conn interface better, in preparationRuss Cox2-2/+2
for per-method interface documentation by mkdoc.pl. implement timeouts on network reads and use them in dns client. also added locks on i/o to ensure writes are not interlaced. R=r DELTA=340 (272 added, 25 deleted, 43 changed) OCL=25799 CL=25874
2009-03-06document syscall. all we do is redirect elsewhere.Rob Pike1-0/+7
R=rsc DELTA=7 (7 added, 0 deleted, 0 changed) OCL=25859 CL=25871
2009-02-15assorted changes:Russ Cox3-3/+6
- 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 Cox4-7/+502
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-10Fix Readdirnames to behave properly if reading in little pieces. Requires ↵Rob Pike1-3/+0
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-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 Pike2-0/+37
R=rsc DELTA=71 (71 added, 0 deleted, 0 changed) OCL=24687 CL=24694
2009-02-08First pass at reading directories.Rob Pike4-11/+49
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-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 Pike2-34/+17
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-01-20delete exportRuss Cox15-146/+146
TBR=r OCL=23121 CL=23127
2009-01-16casify syscall and sequelaeRob Pike10-215/+215
R=rsc DELTA=337 (0 added, 1 deleted, 336 changed) OCL=22950 CL=22950
2008-12-19change *map to map; *chan to chan; new(T) to new(*T)Russ Cox1-5/+5
fix bugs left over from *[] to [] conversion. TBR=r OCL=21576 CL=21581
2008-12-18convert *[] to [].Russ Cox4-10/+10
R=r OCL=21563 CL=21571
2008-12-09bug126Ken Thompson2-2/+2
R=r OCL=20879 CL=20879
2008-12-09replace assembly casts with unsafe.pointerRuss Cox10-151/+61
R=r DELTA=178 (18 added, 101 deleted, 59 changed) OCL=20822 CL=20826
2008-12-04fix build - forgot these filesRuss Cox3-0/+115
TBR=r OCL=20448 CL=20448
2008-12-03add time.Tick()Russ Cox2-0/+12
R=r DELTA=130 (115 added, 1 deleted, 14 changed) OCL=20376 CL=20385
2008-12-03preparation for exec.Russ Cox9-2/+120
* syscall: add syscall.RawSyscall, which doesn't use sys.entersyscall/sys.exitsyscall add syscall.dup2 add syscall.BytePtrPtr add syscall.Rusage, RusagePtr add syscall.F_GETFD, F_SETFD, FD_CLOEXEC * runtime: clean up, correct signal handling. can now survive (continue running after) a signal. R=r DELTA=394 (286 added, 51 deleted, 57 changed) OCL=20351 CL=20369
2008-11-25change meaning of $GOMAXPROCS to number of cpus to use,Russ Cox2-6/+23
not number of threads. can still starve all the other threads, but only by looping, not by waiting in a system call. fix darwin syscall.Syscall6 bug. fix chanclient bug. delete $GOMAXPROCS from network tests. add stripped down printf, sys.printhex to runtime. R=r DELTA=355 (217 added, 36 deleted, 102 changed) OCL=20017 CL=20019
2008-11-19refine gobuild: the files must be *_test.go not *test.goRob Pike1-1/+1
this causes complications R=rsc DELTA=1724 (849 added, 856 deleted, 19 changed) OCL=19667 CL=19667