Permalink
Browse files

Add missing files for OpenBSD support

Fixes #332
  • Loading branch information...
jasperla authored and jordansissel committed Dec 16, 2014
1 parent 19812cf commit 6082bd8aaecb2180f5b56f4fb1b2940a6935ef7b
Showing with 20 additions and 0 deletions.
  1. +11 −0 fileinfo_openbsd.go
  2. +9 −0 filestate_openbsd.go
View
@@ -0,0 +1,11 @@
package main
import (
"os"
"syscall"
)
func file_ids(info *os.FileInfo) (uint64, int32) {
fstat := (*(info)).Sys().(*syscall.Stat_t)
return fstat.Ino, fstat.Dev
}
View
@@ -0,0 +1,9 @@
package main
type FileState struct {
Source *string `json:"source,omitempty"`
Offset int64 `json:"offset,omitempty"`
Inode uint64 `json:"inode,omitempty"`
Device int32 `json:"device,omitempty"`
}

0 comments on commit 6082bd8

Please sign in to comment.