Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go-fuse
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go-fuse
Commits
6597830b
Commit
6597830b
authored
Feb 24, 2013
by
Han-Wen Nienhuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some darwin boilerplate.
parent
88d76ab6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
1 deletion
+34
-1
raw/print_linux.go
raw/print_linux.go
+4
-1
raw/types_darwin.go
raw/types_darwin.go
+30
-0
No files found.
raw/print_linux.go
View file @
6597830b
...
...
@@ -8,8 +8,11 @@ func init() {
OpenFlagNames
[
syscall
.
O_DIRECT
]
=
"DIRECT"
OpenFlagNames
[
syscall
.
O_LARGEFILE
]
=
"LARGEFILE"
OpenFlagNames
[
syscall_O_NOATIME
]
=
"NOATIME"
}
initFlagNames
[
CAP_XTIMES
]
=
"XTIMES"
initFlagNames
[
CAP_VOL_RENAME
]
=
"VOL_RENAME"
initFlagNames
[
CAP_CASE_INSENSITIVE
]
=
"CASE_INSENSITIVE"
}
func
(
a
*
Attr
)
String
()
string
{
return
fmt
.
Sprintf
(
...
...
raw/types_darwin.go
View file @
6597830b
...
...
@@ -19,6 +19,12 @@ type Attr struct {
Flags_
uint32
// OS X
}
const
(
FATTR_CRTIME
=
(
1
<<
28
)
FATTR_CHGTIME
=
(
1
<<
29
)
FATTR_BKUPTIME
=
(
1
<<
30
)
FATTR_FLAGS
=
(
1
<<
31
)
)
type
SetAttrIn
struct
{
SetAttrInCommon
...
...
@@ -33,6 +39,11 @@ type SetAttrIn struct {
Flags_
uint32
// see chflags(2)
}
const
(
FOPEN_PURGE_ATTR
=
(
1
<<
30
)
FOPEN_PURGE_UBC
=
(
1
<<
31
)
)
// compat with linux.
const
(
// Mask for GetAttrIn.Flags. If set, GetAttrIn has a file handle set.
...
...
@@ -63,3 +74,22 @@ type WriteIn struct {
Size
uint32
WriteFlags
uint32
}
const
(
CAP_CASE_INSENSITIVE
=
(
1
<<
29
)
CAP_VOL_RENAME
=
(
1
<<
30
)
CAP_XTIMES
=
(
1
<<
31
)
)
type
GetxtimesOut
struct
{
Bkuptime
uint64
Crtime
uint64
Bkuptimensec
uint32
Crtimensec
uint32
}
type
ExchangeIn
struct
{
Olddir
uint64
Newdir
uint64
Options
uint64
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment