2008-07-26 15:49:21 -06:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package syscall
|
|
|
|
|
2008-07-26 17:22:14 -06:00
|
|
|
/*
|
|
|
|
* These calls have signatures that are independent of operating system.
|
|
|
|
*
|
|
|
|
* For simplicity of addressing in assembler, all integers are 64 bits
|
|
|
|
* in these calling sequences.
|
|
|
|
*/
|
2008-07-26 15:49:21 -06:00
|
|
|
|
2008-07-28 14:07:58 -06:00
|
|
|
func open(name *byte, mode int64) (ret int64, errno int64);
|
|
|
|
func close(fd int64) (ret int64, errno int64);
|
|
|
|
func read(fd int64, buf *byte, nbytes int64) (ret int64, errno int64);
|
|
|
|
func write(fd int64, buf *byte, nbytes int64) (ret int64, errno int64);
|
2008-07-26 15:49:21 -06:00
|
|
|
|
|
|
|
export open, close, read, write
|