diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-08-19 21:00:36 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-08-19 21:00:36 +0000 |
commit | d36f40995aa75b732cd40146cb302f1983de2eee (patch) | |
tree | b55fcf7680b6e2efc12a34cb7337838abeb7d641 /sysdeps/unix | |
parent | 7658a957b351dc12690f95d3ce61abd493fbae49 (diff) |
Add change from main branch.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/bsd/telldir.c | 8 | ||||
-rw-r--r-- | sysdeps/unix/seekdir.c | 4 | ||||
-rw-r--r-- | sysdeps/unix/telldir.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sysdeps/unix/bsd/telldir.c b/sysdeps/unix/bsd/telldir.c index 29ef72c41e..d9799b0f9b 100644 --- a/sysdeps/unix/bsd/telldir.c +++ b/sysdeps/unix/bsd/telldir.c @@ -39,18 +39,18 @@ __libc_lock_define_initialized(static, lock) /* Locks above data. */ /* Return the current position of DIRP. */ -off_t +long int telldir (dirp) DIR *dirp; { struct record *new; - off_t pos; + long int pos; __libc_lock_lock (lock); new = malloc (sizeof *new); if (new == NULL) - return (off_t) -1; + return -1l; new->pos = dirp->filepos; new->offset = dirp->offset; @@ -71,7 +71,7 @@ telldir (dirp) void seekdir (dirp, pos) DIR *dirp; - __off_t pos; + long int pos; { struct record *r, **prevr; diff --git a/sysdeps/unix/seekdir.c b/sysdeps/unix/seekdir.c index caecbefd78..f9df9c18b4 100644 --- a/sysdeps/unix/seekdir.c +++ b/sysdeps/unix/seekdir.c @@ -27,10 +27,10 @@ void seekdir (dirp, pos) DIR *dirp; - __off_t pos; + long int pos; { __libc_lock_lock (dirp->lock); - (void) __lseek(dirp->fd, pos, SEEK_SET); + (void) __lseek (dirp->fd, pos, SEEK_SET); dirp->size = 0; dirp->offset = 0; __libc_lock_unlock (dirp->lock); diff --git a/sysdeps/unix/telldir.c b/sysdeps/unix/telldir.c index f0ad95fd7c..bb898130de 100644 --- a/sysdeps/unix/telldir.c +++ b/sysdeps/unix/telldir.c @@ -21,7 +21,7 @@ #include <dirstream.h> /* Return the current position of DIRP. */ -off_t +long int telldir (DIR *dirp) { return dirp->filepos; |