forked from rjeczalik/notify
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FILE_TRUNC does not exist on Solaris (rjeczalik#203)
- Loading branch information
Showing
3 changed files
with
46 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) 2014-2015 The Notify Authors. All rights reserved. | ||
// Use of this source code is governed by the MIT license that can be | ||
// found in the LICENSE file. | ||
|
||
package notify | ||
|
||
// #include <port.h> | ||
// #include <stdio.h> | ||
// #include <stdlib.h> | ||
import "C" | ||
|
||
const ( | ||
fileAccess = Event(C.FILE_ACCESS) | ||
fileModified = Event(C.FILE_MODIFIED) | ||
fileAttrib = Event(C.FILE_ATTRIB) | ||
fileDelete = Event(C.FILE_DELETE) | ||
fileRenameTo = Event(C.FILE_RENAME_TO) | ||
fileRenameFrom = Event(C.FILE_RENAME_FROM) | ||
fileTrunc = Event(C.FILE_TRUNC) | ||
fileNoFollow = Event(C.FILE_NOFOLLOW) | ||
unmounted = Event(C.UNMOUNTED) | ||
mountedOver = Event(C.MOUNTEDOVER) | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Copyright (c) 2014-2015 The Notify Authors. All rights reserved. | ||
// Use of this source code is governed by the MIT license that can be | ||
// found in the LICENSE file. | ||
|
||
package notify | ||
|
||
// #include <port.h> | ||
// #include <stdio.h> | ||
// #include <stdlib.h> | ||
import "C" | ||
|
||
const ( | ||
fileAccess = Event(C.FILE_ACCESS) | ||
fileModified = Event(C.FILE_MODIFIED) | ||
fileAttrib = Event(C.FILE_ATTRIB) | ||
fileDelete = Event(C.FILE_DELETE) | ||
fileRenameTo = Event(C.FILE_RENAME_TO) | ||
fileRenameFrom = Event(C.FILE_RENAME_FROM) | ||
fileNoFollow = Event(C.FILE_NOFOLLOW) | ||
fileTrunc = Event(0x00100000) | ||
unmounted = Event(C.UNMOUNTED) | ||
mountedOver = Event(C.MOUNTEDOVER) | ||
) |