diff options
author | Russ Cox <rsc@golang.org> | 2010-01-25 18:52:55 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-01-25 18:52:55 -0800 |
commit | ab9fc72814710229b0118e302bbceae3e9260926 (patch) | |
tree | e8137325f4384b3cd062ab7f2700db20c32efb4c /src/pkg/syscall | |
parent | 3ed83878d067bfb4eaa5ba5390bcde974382000f (diff) | |
download | golang-ab9fc72814710229b0118e302bbceae3e9260926.tar.gz |
in C and asm, replace pkg·name with ·name
(eliminate assumption of package global name space,
make code easier to move between packages).
R=r
CC=golang-dev
http://codereview.appspot.com/194072
Diffstat (limited to 'src/pkg/syscall')
-rw-r--r-- | src/pkg/syscall/asm_darwin_386.s | 6 | ||||
-rw-r--r-- | src/pkg/syscall/asm_darwin_amd64.s | 6 | ||||
-rw-r--r-- | src/pkg/syscall/asm_freebsd_386.s | 6 | ||||
-rw-r--r-- | src/pkg/syscall/asm_freebsd_amd64.s | 6 | ||||
-rw-r--r-- | src/pkg/syscall/asm_linux_386.s | 10 | ||||
-rw-r--r-- | src/pkg/syscall/asm_linux_amd64.s | 6 | ||||
-rw-r--r-- | src/pkg/syscall/asm_linux_arm.s | 6 | ||||
-rw-r--r-- | src/pkg/syscall/asm_nacl_386.s | 6 |
8 files changed, 26 insertions, 26 deletions
diff --git a/src/pkg/syscall/asm_darwin_386.s b/src/pkg/syscall/asm_darwin_386.s index 0ea5dd2c5..fffda6e20 100644 --- a/src/pkg/syscall/asm_darwin_386.s +++ b/src/pkg/syscall/asm_darwin_386.s @@ -10,7 +10,7 @@ // func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32); // Trap # in AX, args on stack above caller pc. -TEXT syscall·Syscall(SB),7,$0 +TEXT ·Syscall(SB),7,$0 CALL runtime·entersyscall(SB) MOVL 4(SP), AX // syscall entry // slide args down on top of system call number @@ -34,7 +34,7 @@ ok: CALL runtime·exitsyscall(SB) RET -TEXT syscall·Syscall6(SB),7,$0 +TEXT ·Syscall6(SB),7,$0 CALL runtime·entersyscall(SB) MOVL 4(SP), AX // syscall entry // slide args down on top of system call number @@ -61,7 +61,7 @@ ok6: CALL runtime·exitsyscall(SB) RET -TEXT syscall·RawSyscall(SB),7,$0 +TEXT ·RawSyscall(SB),7,$0 MOVL 4(SP), AX // syscall entry // slide args down on top of system call number LEAL 8(SP), SI diff --git a/src/pkg/syscall/asm_darwin_amd64.s b/src/pkg/syscall/asm_darwin_amd64.s index d73a8aeea..a9e2dfcca 100644 --- a/src/pkg/syscall/asm_darwin_amd64.s +++ b/src/pkg/syscall/asm_darwin_amd64.s @@ -10,7 +10,7 @@ // func Syscall6(trap int64, a1, a2, a3, a4, a5, a6 int64) (r1, r2, err int64); // Trap # in AX, args in DI SI DX, return in AX DX -TEXT syscall·Syscall(SB),7,$0 +TEXT ·Syscall(SB),7,$0 CALL runtime·entersyscall(SB) MOVQ 16(SP), DI MOVQ 24(SP), SI @@ -34,7 +34,7 @@ ok: CALL runtime·exitsyscall(SB) RET -TEXT syscall·Syscall6(SB),7,$0 +TEXT ·Syscall6(SB),7,$0 CALL runtime·entersyscall(SB) MOVQ 16(SP), DI MOVQ 24(SP), SI @@ -58,7 +58,7 @@ ok6: CALL runtime·exitsyscall(SB) RET -TEXT syscall·RawSyscall(SB),7,$0 +TEXT ·RawSyscall(SB),7,$0 MOVQ 16(SP), DI MOVQ 24(SP), SI MOVQ 32(SP), DX diff --git a/src/pkg/syscall/asm_freebsd_386.s b/src/pkg/syscall/asm_freebsd_386.s index 3ca582f7d..c652dcbd0 100644 --- a/src/pkg/syscall/asm_freebsd_386.s +++ b/src/pkg/syscall/asm_freebsd_386.s @@ -10,7 +10,7 @@ // func Syscall6(trap int32, a1, a2, a3, a4, a5, a6 int32) (r1, r2, err int32); // Trap # in AX, args on stack above caller pc. -TEXT syscall·Syscall(SB),7,$0 +TEXT ·Syscall(SB),7,$0 CALL runtime·entersyscall(SB) MOVL 4(SP), AX // syscall entry // slide args down on top of system call number @@ -34,7 +34,7 @@ ok: CALL runtime·exitsyscall(SB) RET -TEXT syscall·Syscall6(SB),7,$0 +TEXT ·Syscall6(SB),7,$0 CALL runtime·entersyscall(SB) MOVL 4(SP), AX // syscall entry // slide args down on top of system call number @@ -61,7 +61,7 @@ ok6: CALL runtime·exitsyscall(SB) RET -TEXT syscall·RawSyscall(SB),7,$0 +TEXT ·RawSyscall(SB),7,$0 MOVL 4(SP), AX // syscall entry // slide args down on top of system call number LEAL 8(SP), SI diff --git a/src/pkg/syscall/asm_freebsd_amd64.s b/src/pkg/syscall/asm_freebsd_amd64.s index 1f0893ae5..d70620a4e 100644 --- a/src/pkg/syscall/asm_freebsd_amd64.s +++ b/src/pkg/syscall/asm_freebsd_amd64.s @@ -10,7 +10,7 @@ // func Syscall6(trap int64, a1, a2, a3, a4, a5, a6 int64) (r1, r2, err int64); // Trap # in AX, args in DI SI DX, return in AX DX -TEXT syscall·Syscall(SB),7,$0 +TEXT ·Syscall(SB),7,$0 CALL runtime·entersyscall(SB) MOVQ 16(SP), DI MOVQ 24(SP), SI @@ -33,7 +33,7 @@ ok: CALL runtime·exitsyscall(SB) RET -TEXT syscall·Syscall6(SB),7,$0 +TEXT ·Syscall6(SB),7,$0 CALL runtime·entersyscall(SB) MOVQ 16(SP), DI MOVQ 24(SP), SI @@ -56,7 +56,7 @@ ok6: CALL runtime·exitsyscall(SB) RET -TEXT syscall·RawSyscall(SB),7,$0 +TEXT ·RawSyscall(SB),7,$0 MOVQ 16(SP), DI MOVQ 24(SP), SI MOVQ 32(SP), DX diff --git a/src/pkg/syscall/asm_linux_386.s b/src/pkg/syscall/asm_linux_386.s index e427f2eef..68b5baa65 100644 --- a/src/pkg/syscall/asm_linux_386.s +++ b/src/pkg/syscall/asm_linux_386.s @@ -9,7 +9,7 @@ // func Syscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr); // Trap # in AX, args in BX CX DX SI DI, return in AX -TEXT syscall·Syscall(SB),7,$0 +TEXT ·Syscall(SB),7,$0 CALL runtime·entersyscall(SB) MOVL 4(SP), AX // syscall entry MOVL 8(SP), BX @@ -35,7 +35,7 @@ ok: // func Syscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr); // Actually Syscall5 but the rest of the code expects it to be named Syscall6. -TEXT syscall·Syscall6(SB),7,$0 +TEXT ·Syscall6(SB),7,$0 CALL runtime·entersyscall(SB) MOVL 4(SP), AX // syscall entry MOVL 8(SP), BX @@ -61,7 +61,7 @@ ok6: RET // func RawSyscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr); -TEXT syscall·RawSyscall(SB),7,$0 +TEXT ·RawSyscall(SB),7,$0 MOVL 4(SP), AX // syscall entry MOVL 8(SP), BX MOVL 12(SP), CX @@ -86,7 +86,7 @@ ok1: // func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, errno int) // Kernel interface gets call sub-number and pointer to a0. -TEXT syscall·socketcall(SB),7,$0 +TEXT ·socketcall(SB),7,$0 CALL runtime·entersyscall(SB) MOVL $SYS_SOCKETCALL, AX // syscall entry MOVL 4(SP), BX // socket call number @@ -114,7 +114,7 @@ oksock: // taking the address of the return value newoffset. // Underlying system call is // llseek(int fd, int offhi, int offlo, int64 *result, int whence) -TEXT syscall·Seek(SB),7,$0 +TEXT ·Seek(SB),7,$0 CALL runtime·entersyscall(SB) MOVL $SYS__LLSEEK, AX // syscall entry MOVL 4(SP), BX // fd diff --git a/src/pkg/syscall/asm_linux_amd64.s b/src/pkg/syscall/asm_linux_amd64.s index e37f56404..cfb44434a 100644 --- a/src/pkg/syscall/asm_linux_amd64.s +++ b/src/pkg/syscall/asm_linux_amd64.s @@ -11,7 +11,7 @@ // Note that this differs from "standard" ABI convention, which // would pass 4th arg in CX, not R10. -TEXT syscall·Syscall(SB),7,$0 +TEXT ·Syscall(SB),7,$0 CALL runtime·entersyscall(SB) MOVQ 16(SP), DI MOVQ 24(SP), SI @@ -36,7 +36,7 @@ ok: CALL runtime·exitsyscall(SB) RET -TEXT syscall·Syscall6(SB),7,$0 +TEXT ·Syscall6(SB),7,$0 CALL runtime·entersyscall(SB) MOVQ 16(SP), DI MOVQ 24(SP), SI @@ -61,7 +61,7 @@ ok6: CALL runtime·exitsyscall(SB) RET -TEXT syscall·RawSyscall(SB),7,$0 +TEXT ·RawSyscall(SB),7,$0 MOVQ 16(SP), DI MOVQ 24(SP), SI MOVQ 32(SP), DX diff --git a/src/pkg/syscall/asm_linux_arm.s b/src/pkg/syscall/asm_linux_arm.s index dc030c5ce..830d41c78 100644 --- a/src/pkg/syscall/asm_linux_arm.s +++ b/src/pkg/syscall/asm_linux_arm.s @@ -10,7 +10,7 @@ // func Syscall(syscall uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr); -TEXT syscall·Syscall(SB),7,$0 +TEXT ·Syscall(SB),7,$0 BL runtime·entersyscall(SB) MOVW 4(SP), R7 MOVW 8(SP), R0 @@ -26,7 +26,7 @@ TEXT syscall·Syscall(SB),7,$0 // func Syscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr); // Actually Syscall5 but the rest of the code expects it to be named Syscall6. -TEXT syscall·Syscall6(SB),7,$0 +TEXT ·Syscall6(SB),7,$0 BL runtime·entersyscall(SB) MOVW 4(SP), R7 // syscall entry MOVW 8(SP), R0 @@ -44,7 +44,7 @@ TEXT syscall·Syscall6(SB),7,$0 RET // func RawSyscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr); -TEXT syscall·RawSyscall(SB),7,$0 +TEXT ·RawSyscall(SB),7,$0 MOVW 4(SP), R7 // syscall entry MOVW 8(SP), R0 MOVW 12(SP), R1 diff --git a/src/pkg/syscall/asm_nacl_386.s b/src/pkg/syscall/asm_nacl_386.s index d76759b98..166d2acf0 100644 --- a/src/pkg/syscall/asm_nacl_386.s +++ b/src/pkg/syscall/asm_nacl_386.s @@ -11,7 +11,7 @@ // func Syscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr); // Trap # in AX, args in BX CX DX SI DI, return in AX -TEXT syscall·Syscall(SB),7,$20 +TEXT ·Syscall(SB),7,$20 CALL runtime·entersyscall(SB) MOVL trap+0(FP), AX // syscall entry MOVL a1+4(FP), BX @@ -47,7 +47,7 @@ ok: RET // func Syscall6(trap uintptr, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2, err uintptr); -TEXT syscall·Syscall6(SB),7,$24 +TEXT ·Syscall6(SB),7,$24 CALL runtime·entersyscall(SB) MOVL a1+4(FP), BX MOVL a2+8(FP), CX @@ -85,7 +85,7 @@ ok6: RET // func RawSyscall(trap uintptr, a1, a2, a3 uintptr) (r1, r2, err uintptr); -TEXT syscall·RawSyscall(SB),7,$20 +TEXT ·RawSyscall(SB),7,$20 MOVL trap+0(FP), AX // syscall entry MOVL a1+4(FP), BX MOVL a2+8(FP), CX |