Displaying 20 results from an estimated 173 matches for "ftello".
2013 Mar 10
0
flac 1.3.0pre2 pre-release
...GNED MESSAGE-----
Hash: SHA1
On 09.03.2013 15:37, Erik de Castro Lopo wrote:
> Hi all,
>
> Second and hopefully final pre-release is here:
>
> http://downloads.xiph.org/releases/flac/beta/
>
src/libFLAC/metadata_iterators.c:442:4: warning: implicit declaration
of function 'ftello' [-Wimplicit-function-declaration]
Same with ftello, it's all over the source code.
Curiously, config.h contains:
/* Define to 1 if fseeko (and presumably ftello) exists and is
declared. */
/* #undef HAVE_FSEEKO */
for me, but FLAC doesn't seem to care...
Here's a patch i've...
2010 Jan 29
1
What does oggz_tell() actually return?
...fic
byte position.
The problem is that the values actually returned by this function
extend way beyond the file's length. Is there some constant by which I
should scale these values to make them usable?
(To narrow down the problem, I modified oggz_tell() to print the
result of a plain ftello(oggz->file) call. Here's an example value
illustrating the problem: ftello() says the file position is 384000,
but oggz_tell() returns 3623387. For the last packet in the file,
ftello() reports 8322048, while oggz_tell() says 79363430... Where
does this multiplier of roughly 9.5 come...
2013 Mar 09
9
flac 1.3.0pre2 pre-release
Hi all,
Second and hopefully final pre-release is here:
http://downloads.xiph.org/releases/flac/beta/
I have personally tested this code on:
x86-linux
x86_64-linux
powerpc-linux
armhf-linux
i386-freebsd9.1
i386-openbsd5.2
I also cross-compiled from Linux to 32 bit Windows and the compile ran to
completion (the test suite requires a bunch of hacking before it can
2007 Aug 27
1
fix for broken largefile seek() on 32-bit linux (PR#9883)
...src/extra/zlib/gzio.c (revision 42664)
+++ src/extra/zlib/gzio.c (working copy)
@@ -25,7 +25,7 @@
#include "zutil.h"
/* R ADDITION */
-#if defined(HAVE_OFF_T) && defined(HAVE_SEEKO)
+#if defined(HAVE_OFF_T) && defined(HAVE_FSEEKO)
#define f_seek fseeko
#define f_tell ftello
#else
Index: src/include/Rconnections.h
===================================================================
--- src/include/Rconnections.h (revision 42664)
+++ src/include/Rconnections.h (working copy)
@@ -63,7 +63,7 @@
typedef struct fileconn {
FILE *fp;
-#if defined(HAVE_OFF_T) &&...
2013 May 04
5
Bug fix and compatibility patches for 1.3.0pre4
...t.h
and replaced them with calls to _lseeki64, which was available at least
back to Windows 98 and thus doesn't impose such compatibility issues.
However, the patch only represents my quick and dirty solution and
you'll probably like to find a cleaner one. Maybe all calls to fseeko
and ftello should be put in OS specific wrapper functions.
Would love to see those patches in the 1.3.0 release.
Robert
-------------- next part --------------
diff -Naur flac-1.3.0pre4/include/share/compat.h flac-1.3.0pre4-patched/include/share/compat.h
--- flac-1.3.0pre4/include/share/compat.h 2013-04-07...
2013 Mar 05
3
2GB limit patch
...s the trouble of casting seek offset to off_t when
calling fseeko(), it gets truncated to 32bit on Win32 even if you use
_fseeki64().
This change results in ABI break, but luckily it seems there's only one
metadata function that uses off_t in public API.
2. i686-pc-mingw also needs fseeko()/ftello() definitions (only
fseeko64() and ftello64() available).
3. stat()/fstat() must be also taken care of, when it is used to get
file size.
4. In some place, size of off_t is checked to see if FLAC binary is
compiled with large file support. These also need modification.
I have made a fork on...
2019 Sep 23
0
[PATCH v2 5/5] build: remove unused gnulib modules
...n
libguestfs (library, daemon, and C tools). Among directly and
indirectly modules used previous (and now no more), they are:
cycle-check
d-ino
dev-ino
dup3
dup3-tests
fcntl-safer
fcntl-safer-tests
fdopendir
fdopendir-tests
filevercmp
filevercmp-tests
ftell
ftell-tests
ftello
ftello-tests
fts
getaddrinfo
getaddrinfo-tests
getcwd
getcwd-tests
gnu-make
hostent
i-ring
i-ring-tests
iconv
iconv-tests
inet_ntop
inet_ntop-tests
isatty
isatty-tests
openat-safer
openat-safer-tests
opendirat
ptsname_r
ptsname_r-tests
read-file
read-fi...
2007 Sep 25
1
creating flacs over 2GB
...uggling with the need of creating flac files over 2GB recently.
Both the command line flac and my util using stream encoder returned FLAC__STREAM_ENCODER_CLIENT_ERROR when reaching that point.
Finally I made a small change in libFLAC/stream_encoder.c in file_tell_callback_ function.
I replaced the ftello call to fgetpos. This seems to work very well under win32.
Based on the description at http://www.gnu.org/software/libc/manual/html_node/Portable-Positioning.html I think this should be also portable solution.
Hope this small change could help other users, too.
Istvan
J?tssz a meg?jult Kv?zp...
2013 Mar 14
2
flac 1.3.0pre2 pre-release
Janne Hyv?rinen wrote:
> The patch was made from the published pre2 version. It missed the MinGW
> changes that were applied to git version.
Patch applied. Thanks.
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
2013 May 05
2
Bug fix and compatibility patches for 1.3.0pre4
Timothy B. Terriberry wrote:
> Instead I've attached a patch that uses fgetpos/fsetpos. This is
> totally untested (I haven't even checked it compiles), but the idea
> should work.
MSDN says "The pos value is stored in an internal format and is intended
for use only by *fgetpos* and *fsetpos*."
(http://msdn.microsoft.com/en-us/library/70hdhh4t%28v=vs.80%29.aspx), so
2004 May 23
4
Various Ogg Vorbis largefile notes and/or patches
Greetings one and all;
I'm not subscribed to this list so I'm first sending this message
to verify that mails from me make it through, and then later I'll
send the juicy messages with patches. Also, the address I'm using
is IPv6-only and doesn't often work, so drop me from any replies
and I'll catch the archives, or drop only the hostname part to get
an IPv4 address that
2019 Sep 23
6
[PATCH v2 0/5] remove unused gnulib modules
This is an extended version of:
https://www.redhat.com/archives/libguestfs/2019-September/msg00178.html
It adds a couple of simple code changes, so it makes it possible to
drop more modules. In addition, more unused modules were dropped.
Pino Toscano (5):
tests: switch away from xgetcwd
daemon: move read_whole_file to common utils
daemon: switch from read_file to read_whole_file
daemon:
2010 Sep 13
5
isohybrid: seek error - 6: Invalid argument
Hello
Recently while playing with bigger iso images (>2G) looks like isohybrid
from syslinux-4.02 fails. Sometimes tunning heads/sectors (-h/-s) works,
because no padding is needed depending of size of the image.
Some debug info provided, if more info is needed please just ask.
# isohybrid -v pandereta-2010.09.13-i686.iso
catalogue offset: 326
ve[0]: 1, cs: 1
ve[1]: 0, cs: 1
ve[2]: 25927,
2011 Jun 21
0
builder-ubuntu libguestfs FAILED build step e1e78bcef5e4654bd2456bd696840329359d35cd
...ts
fcntl-tests
fd-hook
fd-safer-flag
fdopendir
fdopendir-tests
fflush
fflush-tests
filenamecat-lgpl
float
fnmatch
fnmatch-tests
fpurge
fpurge-tests
freading
freading-tests
fseeko
fseeko-tests
fsusage
ftell
ftell-tests
ftello
ftello-tests
full-read
futimens
futimens-tests
getaddrinfo
getaddrinfo-tests
getcwd-lgpl
getcwd-lgpl-tests
getdelim
getdelim-tests
getdtablesize
getdtablesize-tests
getgroups
getgroups-tests
getline
getline-tests
getlogin_r
getlogin_...
2019 Nov 27
7
[PATCH v3 0/6] remove unused build stuff
This is an extended version of:
https://www.redhat.com/archives/libguestfs/2019-September/msg00288.html
Apparently I forgot it on my tree, so I'm posting that series again,
adding an extra cleanup more due to the v2v/common splits.
Pino Toscano (6):
tests: switch away from xgetcwd
daemon: move read_whole_file to common utils
daemon: switch from read_file to read_whole_file
daemon:
2001 May 21
1
2.9p1 patches
...ile_source,
+ [Define to make fseeko visible on some hosts (e.g. glibc 2.2).],
+ [#include <stdio.h>], [return !fseeko;])
+ # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
+ # in glibc 2.1.3, but that breaks too many other things.
+ # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
+
+ AC_CACHE_CHECK([for fseeko], ac_cv_func_fseeko,
+ [ac_cv_func_fseeko=no
+ AC_TRY_LINK([#include <stdio.h>],
+ [return fseeko && fseeko (stdin, 0, 0);],
+ [ac_cv_func_fseeko=yes])])
+ if test $ac_cv_func_fseeko != no; then
+...
2006 Dec 27
2
compiling in VS2005
i get a pile of errors when trying to compile this in visual studio
2005. do i need to use MSVC6?
flac_mac, flac_ren, the test exes and libFLAC++.dll are all that
compiled for me in 2005.
2013 Mar 05
0
2GB limit patch
...eek offset to off_t when
> calling fseeko(), it gets truncated to 32bit on Win32 even if you use
> _fseeki64().
> This change results in ABI break, but luckily it seems there's only one
> metadata function that uses off_t in public API.
>
> 2. i686-pc-mingw also needs fseeko()/ftello() definitions (only
> fseeko64() and ftello64() available).
>
> 3. stat()/fstat() must be also taken care of, when it is used to get
> file size.
>
> 4. In some place, size of off_t is checked to see if FLAC binary is
> compiled with large file support. These also need modifica...
2013 May 25
0
Bug fix and compatibility patches for 1.3.0pre4
...em with calls to _lseeki64, which was available at least
> back to Windows 98 and thus doesn't impose such compatibility issues.
> However, the patch only represents my quick and dirty solution and
> you'll probably like to find a cleaner one. Maybe all calls to fseeko
> and ftello should be put in OS specific wrapper functions.
>
> Would love to see those patches in the 1.3.0 release.
Sorry, I've read through this thread and can't figure out what was
actually decided and which patch I should be looking at.
Clues?
Erik
--
----------------------------------...
2014 Sep 27
0
Patch to add buffering to decoding too
...,6 +263,23 @@ FLAC__bool DecoderSession_construct(DecoderSession *d, FLAC__bool is_ogg, FLAC__
void DecoderSession_destroy(DecoderSession *d, FLAC__bool error_occurred)
{
if(0 != d->fout && d->fout != stdout) {
+#ifdef _WIN32
+ if(!error_occurred) {
+ FLAC__off_t written_size = ftello(d->fout);
+ if(written_size > 0) {
+ HANDLE fh = CreateFile_utf8(d->outfilename, GENERIC_READ|GENERIC_WRITE, FILE_SHARE_READ|FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
+ if(fh != INVALID_HANDLE_VALUE) {
+ if(GetFileType(fh) == FILE_TYPE_DISK) {
+...