Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 55523 Details for
Bug 67768
Integrating Beagle into Portage
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against beagle 0.0.8.1 to add inotify 0.21 support
beagle-0.0.8.1-inotify-0.21.patch (text/plain), 1.20 KB, created by
Calvin Walton
on 2005-04-06 16:11:48 UTC
(
hide
)
Description:
Patch against beagle 0.0.8.1 to add inotify 0.21 support
Filename:
MIME Type:
Creator:
Calvin Walton
Created:
2005-04-06 16:11:48 UTC
Size:
1.20 KB
patch
obsolete
>diff -ur beagle-0.0.8.1.old/glue/inotify-glue.c beagle-0.0.8.1/glue/inotify-glue.c >--- beagle-0.0.8.1.old/glue/inotify-glue.c 2005-04-06 18:02:33.000000000 -0400 >+++ beagle-0.0.8.1/glue/inotify-glue.c 2005-04-06 18:04:54.000000000 -0400 >@@ -85,20 +85,23 @@ > inotify_glue_watch (int fd, const char *filename, __u32 mask) > { > struct inotify_watch_request iwr; >- __s32 wd; >+ int file_fd, wd; > >- iwr.mask = mask; >- iwr.name = strdup (filename); >- if (!iwr.name) { >- perror ("strdup"); >+ file_fd = open (filename, O_RDONLY); >+ if (file_fd < 0) { >+ perror ("open"); > return -1; > } > >+ iwr.fd = file_fd; >+ iwr.mask = mask; >+ > wd = ioctl (fd, INOTIFY_WATCH, &iwr); > if (wd < 0) > perror ("ioctl"); > >- free (iwr.name); >+ if (close (file_fd)) >+ perror ("close"); > > return wd; > } >diff -ur beagle-0.0.8.1.old/glue/inotify.h beagle-0.0.8.1/glue/inotify.h >--- beagle-0.0.8.1.old/glue/inotify.h 2005-04-06 18:02:33.000000000 -0400 >+++ beagle-0.0.8.1/glue/inotify.h 2005-04-06 18:06:04.000000000 -0400 >@@ -30,7 +30,7 @@ > * Pass to the inotify device via the INOTIFY_WATCH ioctl > */ > struct inotify_watch_request { >- char *name; /* filename name */ >+ int fd /* fd of filename to watch */ > __u32 mask; /* event mask */ > }; >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 67768
:
49050
|
49344
|
49370
|
49493
|
49494
|
49642
|
49643
|
49665
|
49666
|
50200
|
51333
|
51351
|
51352
|
51361
|
51503
|
53262
|
53433
|
53512
|
53513
|
54241
|
54243
|
54293
|
54294
|
54415
|
54433
|
54520
|
54521
|
55523
|
55526
|
55862
|
56779
|
56780
|
57489
|
60197
|
60198
|
60216
|
60773
|
61241
|
61308
|
62741
|
63190
|
63206
|
68683
|
69812
|
70062
|
70063
|
70064
|
71527