Skip to content

Commit

Permalink
Import rel-4_12.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Cunningham committed Feb 29, 2012
1 parent 98362c1 commit eb4c669
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ TODO: openbsd requires stdint.h for intptr_t - why posix?
TODO: make mtouch/readdir maybe others cancellable in-request
TODO: fadvise request
TODO: fdopendir/utimensat
TODO: maybe work around 3.996gb barrier in pread/pwrite as well, maybe readahead etc.?
1.0
- fix a deadlock where a wakeup signal could be missed when
a timeout occured at the same time.
Expand Down
4 changes: 2 additions & 2 deletions eio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1489,7 +1489,7 @@ eio__realpath (struct tmpbuf *tmpbuf, eio_wd wd, const char *path)

errno = ENAMETOOLONG;
if (res + 1 + len + 1 >= tmp1)
return;
return -1;

/* copy one component */
*res = '/';
Expand Down Expand Up @@ -1968,7 +1968,7 @@ eio__scandir (eio_req *req, etp_worker *self)
{
if (*name == '.') /* leading dots are likely directories, and, in any case, rare */
ent->score = 1;
else if (!strchr (name, '.')) /* absense of dots indicate likely dirs */
else if (!strchr (name, '.')) /* absence of dots indicate likely dirs */
ent->score = len <= 2 ? 4 - len : len <= 4 ? 4 : len <= 7 ? 5 : 6; /* shorter == more likely dir, but avoid too many classes */
}
else if (ent->type == EIO_DT_DIR)
Expand Down

0 comments on commit eb4c669

Please sign in to comment.