Mercurial > mplayer.hg
annotate osdep/ftello.c @ 23044:7d693457f85e
updated the ati vidix driver with the one from upstream vidix, it now supports much more GPUs (including all Radeon > 9600 and X series)
author | ben |
---|---|
date | Sun, 22 Apr 2007 13:25:50 +0000 |
parents | e268886eb13d |
children |
rev | line source |
---|---|
21856
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
1 /* |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
2 * ftello.c |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
3 * 64-bit version of ftello() for systems which do not have it |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
4 */ |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
5 |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
6 #include "config.h" |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
7 |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
8 #include <stdio.h> |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
9 #include <sys/types.h> |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
10 |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
11 off_t |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
12 ftello(FILE *stream) |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
13 { |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
14 fpos_t floc; |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
15 |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
16 if (fgetpos(stream, &floc) != 0) |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
17 return -1; |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
18 return floc; |
e268886eb13d
Split fseeko.c into fseeko.c and ftello.c, move #ifdefs into the build system.
diego
parents:
diff
changeset
|
19 } |