Deleted Added
full compact
ftell.c (13545) ftell.c (14790)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 37 unchanged lines hidden (view full) ---

46#include "pthread_private.h"
47#endif
48
49/*
50 * ftell: return current offset.
51 */
52long
53ftell(fp)
1/*-
2 * Copyright (c) 1990, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * This code is derived from software contributed to Berkeley by
6 * Chris Torek.
7 *
8 * Redistribution and use in source and binary forms, with or without

--- 37 unchanged lines hidden (view full) ---

46#include "pthread_private.h"
47#endif
48
49/*
50 * ftell: return current offset.
51 */
52long
53ftell(fp)
54 register const FILE *fp;
54 register FILE *fp;
55{
56 register fpos_t pos;
57
58 if (fp->_seek == NULL) {
59 errno = ESPIPE; /* historic practice */
60 return (-1L);
61 }
62

--- 40 unchanged lines hidden ---
55{
56 register fpos_t pos;
57
58 if (fp->_seek == NULL) {
59 errno = ESPIPE; /* historic practice */
60 return (-1L);
61 }
62

--- 40 unchanged lines hidden ---