Skip to content

app examples for inotify and epoll, used in android input system

Notifications You must be signed in to change notification settings

weidongshan/APP_0006_inotify_epoll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

app examples for inotify and epoll, used in android input system

inotify.c

gcc -o inotify inotify.c
mkdir tmp
./inotify tmp &
echo > tmp/1
echo > tmp/2
rm tmp/1 tmp/2

epoll.c

gcc -o epoll epoll.c
mkdir tmp
mkfifo tmp/1 tmp/2 tmp/3
./epoll tmp/1 tmp/2 tmp/3 &
echo aaa > tmp/1
echo bbb > tmp/2

inotify_epoll.c

gcc -o inotify_epoll inotify_epoll.c
mkdir tmp
./inotify_epoll tmp/ &
mkfifo tmp/1 tmp/2 tmp/3
echo aaa > tmp/1
echo bbb > tmp/2
rm tmp/3

About

app examples for inotify and epoll, used in android input system

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages