summaryrefslogtreecommitdiff
path: root/src/syscall
AgeCommit message (Collapse)AuthorFilesLines
2015-01-15Imported Upstream version 1.4.1upstream/1.4.1Tianon Gravi1-3/+3
2015-01-15Imported Upstream version 1.4upstream/1.4Tianon Gravi211-0/+89341
2008-09-26move src/syscall to src/lib/syscall.Russ Cox10-1084/+0
enforce rule: all kernel data structures and constants go in syscall module. move things that should be in syscall out of net. make net a single package. R=r OCL=15985 CL=15994
2008-09-22time bug: darwin, linux return microseconds not nanosecondsRuss Cox2-2/+2
R=r DELTA=2 (0 added, 0 deleted, 2 changed) OCL=15626 CL=15641
2008-09-18make Makefiles safe for parallel makeRuss Cox1-0/+3
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 Cox8-26/+70
rename AddrToInt, StatToInt, etc -> BytePtr, StatPtr, ... R=r OCL=15450 CL=15456
2008-09-17add network listening & testsRuss Cox1-1/+0
R=r,presotto OCL=15410 CL=15440
2008-09-16preliminary network - just Dial for nowRuss Cox3-0/+43
R=r,presotto OCL=15393 CL=15399
2008-09-11pull O_RDONLY etc. up to os libraryRob Pike2-2/+2
R=rsc DELTA=16 (14 added, 0 deleted, 2 changed) OCL=15156 CL=15163
2008-09-11make syscall use strings for file namesRob Pike4-23/+81
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-05use a makefile to build mathRob Pike1-2/+2
fix a typo in syscall/Makefile R=ken OCL=14863 CL=14863
2008-09-02fix bug: was writing off end of arrayRob Pike1-1/+0
R=gri OCL=14728 CL=14728
2008-08-04- switched most of existing Go code to new export syntaxRobert Griesemer3-64/+32
- adjusted lang doc R=r DELTA=192 (26 added, 65 deleted, 101 changed) OCL=13844 CL=13848
2008-08-04first cut at multithreading. works on Linux.Russ Cox1-1/+3
* kick off new os procs (machs) as needed * add sys·sleep for testing * add Lock, Rendez * properly lock mal, sys·newproc, scheduler * linux syscall arg #4 is in R10, not CX * chans are not multithread-safe yet * multithreading disabled by default; set $gomaxprocs=2 (or 1000) to turn it on This should build on OS X but may not. Rob and I will fix soon after submitting. TBR=r OCL=13784 CL=13842
2008-08-04use new export syntax to avoid repetitionRob Pike2-247/+4
R=gri OCL=13819 CL=13819
2008-07-30- mark syscall support routines as non-stack-generatingRob Pike4-20/+102
- add unlink, creat - add constants for open - fix some comments R=gri OCL=13654 CL=13656
2008-07-29fix a commentRob Pike1-4/+1
fix a register name R=gri OCL=13548 CL=13548
2008-07-29fixes for linux system call linkageRob Pike2-3/+14
R=gri OCL=13547 CL=13547
2008-07-29rewrite system call interface to use less assembler.Rob Pike9-290/+257
R=gri OCL=13546 CL=13546
2008-07-29fix type error caused by recent changeRob Pike2-4/+4
R=gri OCL=13545 CL=13545
2008-07-28add lstatRob Pike7-19/+46
clean up some code fix comments add paramter names to interface R=ken OCL=13521 CL=13521
2008-07-26add fstat, statRob Pike6-100/+159
R=ken OCL=13497 CL=13497
2008-07-26beginnings of a low-level syscall libraryRob Pike6-0/+1068
R=ken OCL=13483 CL=13496