-/* $OpenBSD: getcap.c,v 1.35 2019/07/03 03:24:04 deraadt Exp $ */
+/* $OpenBSD: getcap.c,v 1.36 2022/05/14 05:06:32 guenther Exp $ */
/*-
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
* Open database if not already open.
*/
if (fp != NULL) {
- (void)fseek(fp, 0L, SEEK_SET);
+ fseeko(fp, 0, SEEK_SET);
myfd = 0;
opened++;
} else {
-/* $OpenBSD: stdio.h,v 1.7 2016/09/06 19:56:36 guenther Exp $ */
+/* $OpenBSD: stdio.h,v 1.8 2022/05/14 05:06:32 guenther Exp $ */
/*
* Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
*
PROTO_NORMAL(fread);
PROTO_NORMAL(freopen);
PROTO_NORMAL(fscanf);
-PROTO_NORMAL(fseek);
+PROTO_STD_DEPRECATED(fseek);
PROTO_NORMAL(fseeko);
PROTO_NORMAL(fsetpos);
PROTO_NORMAL(ftell);
-/* $OpenBSD: xdr_stdio.c,v 1.16 2022/02/14 03:38:59 guenther Exp $ */
+/* $OpenBSD: xdr_stdio.c,v 1.17 2022/05/14 05:06:32 guenther Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
xdrstdio_setpos(XDR *xdrs, u_int pos)
{
- return ((fseek((FILE *)xdrs->x_private, (long)pos, SEEK_SET) == -1) ?
+ return ((fseeko((FILE *)xdrs->x_private, pos, SEEK_SET) == -1) ?
FALSE : TRUE);
}
-/* $OpenBSD: fseek.c,v 1.13 2019/06/28 13:32:42 deraadt Exp $ */
+/* $OpenBSD: fseek.c,v 1.14 2022/05/14 05:06:32 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
{
return (fseeko(fp, offset, whence));
}
-DEF_STRONG(fseek);
-/* $OpenBSD: rewind.c,v 1.6 2015/08/31 02:53:57 guenther Exp $ */
+/* $OpenBSD: rewind.c,v 1.7 2022/05/14 05:06:32 guenther Exp $ */
/*-
* Copyright (c) 1990, 1993
* The Regents of the University of California. All rights reserved.
void
rewind(FILE *fp)
{
- (void) fseek(fp, 0L, SEEK_SET);
+ fseeko(fp, 0, SEEK_SET);
clearerr(fp);
errno = 0; /* not required, but seems reasonable */
}