Code now runs on Linux for local files
I still need to add the support for message broadcasting tho, it should not be that hard
This commit is contained in:
@@ -74,12 +74,12 @@ type shmi struct {
|
||||
name string
|
||||
fd C.int
|
||||
v unsafe.Pointer
|
||||
size int32
|
||||
size uint32
|
||||
parent bool
|
||||
}
|
||||
|
||||
// create shared memory. return shmi object.
|
||||
func create(name string, size int32) (*shmi, error) {
|
||||
func create(name string, size uint32) (*shmi, error) {
|
||||
name = "/" + name
|
||||
|
||||
fd := C.Create(C.CString(name), C.int(size))
|
||||
@@ -97,7 +97,7 @@ func create(name string, size int32) (*shmi, error) {
|
||||
}
|
||||
|
||||
// open shared memory. return shmi object.
|
||||
func open(name string, size int32) (*shmi, error) {
|
||||
func open(name string, size uint32) (*shmi, error) {
|
||||
name = "/" + name
|
||||
|
||||
fd := C.Open(C.CString(name), C.int(size))
|
||||
|
||||
Reference in New Issue
Block a user