]> gitweb.factorcode.org Git - factor.git/blobdiff - basis/unix/linux/inotify/inotify.factor
use radix literals
[factor.git] / basis / unix / linux / inotify / inotify.factor
index 947191e7dd458e65597226d25dd694a5b15f8e9c..1e6edc985eff24bb9cc7e992bc5def63e269bb61 100644 (file)
@@ -11,31 +11,31 @@ STRUCT: inotify-event
     { len uint }\r
     { name char[0] } ;\r
 \r
-CONSTANT: IN_ACCESS HEX: 1         ! File was accessed\r
-CONSTANT: IN_MODIFY HEX: 2         ! File was modified\r
-CONSTANT: IN_ATTRIB HEX: 4         ! Metadata changed\r
-CONSTANT: IN_CLOSE_WRITE HEX: 8    ! Writtable file was closed\r
-CONSTANT: IN_CLOSE_NOWRITE HEX: 10 ! Unwrittable file closed\r
-CONSTANT: IN_OPEN HEX: 20          ! File was opened\r
-CONSTANT: IN_MOVED_FROM HEX: 40    ! File was moved from X\r
-CONSTANT: IN_MOVED_TO HEX: 80      ! File was moved to Y\r
-CONSTANT: IN_CREATE HEX: 100       ! Subfile was created\r
-CONSTANT: IN_DELETE HEX: 200       ! Subfile was deleted\r
-CONSTANT: IN_DELETE_SELF HEX: 400  ! Self was deleted\r
-CONSTANT: IN_MOVE_SELF HEX: 800    ! Self was moved\r
-\r
-CONSTANT: IN_UNMOUNT HEX: 2000     ! Backing fs was unmounted\r
-CONSTANT: IN_Q_OVERFLOW HEX: 4000  ! Event queued overflowed\r
-CONSTANT: IN_IGNORED HEX: 8000     ! File was ignored\r
+CONSTANT: IN_ACCESS 0x1         ! File was accessed\r
+CONSTANT: IN_MODIFY 0x2         ! File was modified\r
+CONSTANT: IN_ATTRIB 0x4         ! Metadata changed\r
+CONSTANT: IN_CLOSE_WRITE 0x8    ! Writtable file was closed\r
+CONSTANT: IN_CLOSE_NOWRITE 0x10 ! Unwrittable file closed\r
+CONSTANT: IN_OPEN 0x20          ! File was opened\r
+CONSTANT: IN_MOVED_FROM 0x40    ! File was moved from X\r
+CONSTANT: IN_MOVED_TO 0x80      ! File was moved to Y\r
+CONSTANT: IN_CREATE 0x100       ! Subfile was created\r
+CONSTANT: IN_DELETE 0x200       ! Subfile was deleted\r
+CONSTANT: IN_DELETE_SELF 0x400  ! Self was deleted\r
+CONSTANT: IN_MOVE_SELF 0x800    ! Self was moved\r
+\r
+CONSTANT: IN_UNMOUNT 0x2000     ! Backing fs was unmounted\r
+CONSTANT: IN_Q_OVERFLOW 0x4000  ! Event queued overflowed\r
+CONSTANT: IN_IGNORED 0x8000     ! File was ignored\r
 \r
 CONSTANT: IN_CLOSE flags{ IN_CLOSE_WRITE IN_CLOSE_NOWRITE }\r
 CONSTANT: IN_MOVE flags{ IN_MOVED_FROM IN_MOVED_TO }\r
 \r
-CONSTANT: IN_ONLYDIR HEX: 1000000     ! only watch the path if it is a directory\r
-CONSTANT: IN_DONT_FOLLOW HEX: 2000000 ! don't follow a sym link\r
-CONSTANT: IN_MASK_ADD HEX: 20000000   ! add to the mask of an already existing watch\r
-CONSTANT: IN_ISDIR HEX: 40000000      ! event occurred against dir\r
-CONSTANT: IN_ONESHOT HEX: 80000000    ! only send event once\r
+CONSTANT: IN_ONLYDIR 0x1000000     ! only watch the path if it is a directory\r
+CONSTANT: IN_DONT_FOLLOW 0x2000000 ! don't follow a sym link\r
+CONSTANT: IN_MASK_ADD 0x20000000   ! add to the mask of an already existing watch\r
+CONSTANT: IN_ISDIR 0x40000000      ! event occurred against dir\r
+CONSTANT: IN_ONESHOT 0x80000000    ! only send event once\r
 \r
 CONSTANT: IN_CHANGE_EVENTS \r
     flags{\r