diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2010-10-28 15:02:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2010-10-28 15:02:42 +0000 |
commit | ad39b297930f7aeb9f57f3283cb31dad08c3a9ac (patch) | |
tree | 686235f31d6eb66ef3d8180a61333f611d32602b /lib/libpthread/uthread/uthread_getdirentries.c | |
parent | 24c64c90c25711433236441e0509ebae8231f426 (diff) |
Change basep parameter of getdirentries() to be off_t *, not long *
so it works correctly with large offsets (and matches other systems).
This requires adding a new getdirentries syscall, with the old one
renamed to ogetdirentries. All in-tree consumers of getdirentries()
have been updated. Bump libc and libpthread major numbers.
OK and with deraadt@
Diffstat (limited to 'lib/libpthread/uthread/uthread_getdirentries.c')
-rw-r--r-- | lib/libpthread/uthread/uthread_getdirentries.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/uthread/uthread_getdirentries.c b/lib/libpthread/uthread/uthread_getdirentries.c index 1dd8d30e651..23ae786ad27 100644 --- a/lib/libpthread/uthread/uthread_getdirentries.c +++ b/lib/libpthread/uthread/uthread_getdirentries.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uthread_getdirentries.c,v 1.3 1999/11/25 07:01:36 d Exp $ */ +/* $OpenBSD: uthread_getdirentries.c,v 1.4 2010/10/28 15:02:41 millert Exp $ */ /* * Copyright (c) 1995-1998 John Birrell <jb@cimlogic.com.au> * All rights reserved. @@ -39,7 +39,7 @@ #include "pthread_private.h" int -getdirentries(int fd, char *buf, int nbytes, long *basep) +getdirentries(int fd, char *buf, int nbytes, off_t *basep) { int ret; |