Commit 2d21448b authored by Ivan Krasin's avatar Ivan Krasin

Removed C stub: it can't include sys/socket.h

parent 5ee7b794
...@@ -7,8 +7,5 @@ GOFILES=\ ...@@ -7,8 +7,5 @@ GOFILES=\
fuse.go\ fuse.go\
types.go\ types.go\
OFILES=\
utils.$O\
include $(GOROOT)/src/Make.pkg include $(GOROOT)/src/Make.pkg
...@@ -79,13 +79,9 @@ func (m *MountPoint) Unmount() (err os.Error) { ...@@ -79,13 +79,9 @@ func (m *MountPoint) Unmount() (err os.Error) {
func getFuseConn(local net.Conn) (f * os.File, err os.Error) { func getFuseConn(local net.Conn) (f * os.File, err os.Error) {
var fd int var fd int
errno := receive_fuse_conn(local.File().Fd(), &fd) return nil, os.NewError(fmt.Sprintf("receive_fuse_conn failed with errno: %d", errno))
if errno != 0 { // f = os.NewFile(fd, "fuse-conn")
return nil, os.NewError(fmt.Sprintf("receive_fuse_conn failed with errno: %d", errno)) // return
}
f = os.NewFile(fd, "fuse-conn")
return
} }
func receive_fuse_conn(fd int, fuse_fd *int) int
int receive_fuse_conn(int fd, int* fuse_fd) {
if (fd < 0) {
return -1;
}
*fuse_fd = -1;
return -1;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment