Ignore:
Timestamp:
Dec 20, 2016, 4:07:32 PM (7 years ago)
Author:
Bruno Cornec
Message:

New 3?3 banch for incorporation of latest busybox 1.25. Changing minor version to handle potential incompatibilities.

Location:
branches/3.3
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • branches/3.3/mindi-busybox/miscutils/inotifyd.c

    r3232 r3621  
    4848//usage:     "\n    x   File can't be watched anymore"
    4949//usage:     "\nIf watching a directory:"
    50 //usage:     "\n    m   Subfile is moved into dir"
    51 //usage:     "\n    y   Subfile is moved out of dir"
     50//usage:     "\n    y   Subfile is moved into dir"
     51//usage:     "\n    m   Subfile is moved out of dir"
    5252//usage:     "\n    n   Subfile is created"
    5353//usage:     "\n    d   Subfile is deleted"
     
    5757
    5858#include "libbb.h"
     59#include "common_bufsiz.h"
    5960#include <sys/inotify.h>
    6061
     
    162163        // read out all pending events
    163164        // (NB: len must be int, not ssize_t or long!)
     165#define eventbuf bb_common_bufsiz1
     166        setup_common_bufsiz();
    164167        xioctl(pfd.fd, FIONREAD, &len);
    165 #define eventbuf bb_common_bufsiz1
    166         ie = buf = (len <= sizeof(eventbuf)) ? eventbuf : xmalloc(len);
     168        ie = buf = (len <= COMMON_BUFSIZE) ? eventbuf : xmalloc(len);
    167169        len = full_read(pfd.fd, buf, len);
    168170        // process events. N.B. events may vary in length
Note: See TracChangeset for help on using the changeset viewer.