git.samba.org
/
bbaumbach
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bf071a9
)
r18456: Tru64 doesn't have getdents() so we don't need this ifdef's...
author
Stefan Metzmacher
<metze@samba.org>
Wed, 13 Sep 2006 10:12:03 +0000
(10:12 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:18:32 +0000
(14:18 -0500)
metze
(This used to be commit
5af86eb3f07e26aead67ab0dd46576e0aefe8eb4
)
source4/lib/replace/repdir_getdents.c
patch
|
blob
|
history
diff --git
a/source4/lib/replace/repdir_getdents.c
b/source4/lib/replace/repdir_getdents.c
index eca1ecc9d5949eb7b758413333aa3357a5f8267c..07b9568dc1a71f4b89786a444ebbc26395201cc8 100644
(file)
--- a/
source4/lib/replace/repdir_getdents.c
+++ b/
source4/lib/replace/repdir_getdents.c
@@
-118,11
+118,7
@@
long telldir(DIR *dir)
return d->seekpos + d->ofs;
}
return d->seekpos + d->ofs;
}
-#ifdef _OSF_SOURCE
-int seekdir(DIR *dir, long ofs)
-#else
void seekdir(DIR *dir, long ofs)
void seekdir(DIR *dir, long ofs)
-#endif
{
struct dir_buf *d = (struct dir_buf *)dir;
d->seekpos = lseek(d->fd, ofs & ~(DIR_BUF_SIZE-1), SEEK_SET);
{
struct dir_buf *d = (struct dir_buf *)dir;
d->seekpos = lseek(d->fd, ofs & ~(DIR_BUF_SIZE-1), SEEK_SET);
@@
-131,9
+127,6
@@
void seekdir(DIR *dir, long ofs)
while (d->ofs < (ofs & (DIR_BUF_SIZE-1))) {
if (readdir(dir) == NULL) break;
}
while (d->ofs < (ofs & (DIR_BUF_SIZE-1))) {
if (readdir(dir) == NULL) break;
}
-#ifdef _OSF_SOURCE
- return -1;
-#endif
}
void rewinddir(DIR *dir)
}
void rewinddir(DIR *dir)