Displaying 20 results from an estimated 1000 matches similar to: "ftell and fseek"
2023 Feb 17
2
fseek/fgetc puzzle
Hi all.
I've got a bit of a puzzle and I was wondering if anyone has any insight
as to what's going on.
I added some code to ssh's known_hosts handling that checks if the last
byte in the file is a newline, and if not, it adds one before writing
the new record. I also wrote a regression test for this and in most
cases this works fine.
On some platforms (Solaris, OpenIndiana and
2004 Sep 28
2
Finding start of audio data using metadata level 2 interface.
* Josh Coalson <xflac@yahoo.com> shaped the electrons to say...
>yep, that will work too. but just writing skipping code is
>pretty simple:
>
>is_last=0
>read 'fLaC' string
>while (!is_last) {
> read 1 byte metadata block type
> read 3 byte metadata block length
> is_last = type & 0x80
> fseek(file,length,SEEK_CUR)
>}
2001 Sep 25
2
Couple more problems (ov_open_callbacks)
I'm in the final throes of debugging (hopefully) and the last thing I'm
trying to do is figure out why I'm getting static instead of usable
data. I have a verified Ogg file (it plays fine in WMA); I've visibly
inspected the info struct and it matches my output format; I've verified
my audio playback code by using a generated sine wave (sounds correct).
So that leads to a
2010 Mar 03
2
uint decode error on visual studio...
Is this a common warning? The decoder doesn't return an error on it, but I
see it a lot in my test application on windows. It is non existent on my
linux box. I haven't tried mingw yet.
please note that I'm using visual studio 2008 w/the vcproj that Bjoern
Rasmussen made for 0.5.2 (w/some file references removed) at the moment and
it is giving a lot of C4554 warnings
2013 Nov 27
20
[PATCH 0/4] efi: PE header generation fix
The PE headers of the generated efi file were quite buggy. And since OVMF
perform a few consistency checks, syslinux was unable to run on it. I don't
pretend to have a thorough understanding of the PE+ headers, some bugs may
remain. :)
Celelibi (4):
efi: Fix PE header field rva_and_sizes_nr
efi: Location, size and alignment of .text section
efi: Useless relocations in PE file
efi: PE
2004 Sep 06
1
Fixing libvorbisfile to handle largefiles
[I'm not online regularly, so don't include me in any replies.
Looks like the archives are working at present, so I'll catch
up from them when I get a chance. Thanks...]
(Trying out vorbis-dev@ instead of vorbis@ where I sent my
previous messages; if this is the wrong place, correct me)
Greetings.
Some weeks ago, I submitted several hacks which gave me the
ability to play Ogg
2014 Jun 22
0
[PATCH 5/6] utils/isohybrid.c: Change all fseek(3) to fseeko(3)
It seems unwise to offer future programmers fseek(3) calls for copy+paste.
They are simply insufficient for large image files.
This change switches all calls of fseek(3) to fseeko(3) and takes care
that the offset value if of type off_t.
---
utils/isohybrid.c | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/utils/isohybrid.c b/utils/isohybrid.c
index
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
2004 Sep 26
2
Finding start of audio data using metadata level 2 interface.
* Josh Coalson <xflac@yahoo.com> shaped the electrons to say...
>not exactly. the metadata interface won't tell you, but you
>can create a decoder (say file decoder), set it up, then call
>
> FLAC__file_decoder_process_until_end_of_metadata(...)
> FLAC__file_decoder_get_decode_position(...)
>
>and that will tell you. the decode position is relative to
>the
2023 Feb 20
1
fseek/fgetc puzzle
On Mon, Feb 20, 2023 at 10:21:31PM +1100, Darren Tucker wrote:
> > My suggestion of course fails to explain why there's only one 'B'.
> > I would create the initial file separately from the test program.
>
> The "od" call in the middle of the above example proves there's only
> one byte after the first fclose.
Ah, so it does. What happens
if you
2023 Feb 20
1
fseek/fgetc puzzle
Darren Tucker wrote in
<CALDDTe39k4UFJWBvts5HWbbhHO+Vw9OAP0zBhu-Hje-2aR9+xA at mail.gmail.com>:
J?rg Schilling convinced me in 2017
Readd removed fflush()/fseek() in between read and write..
The behave:record_a_resend-2 test failed on Solaris 5.10 and 5.11,
messages in *record* where separated by four \n / U+000A instead
of two. It turns out that the effective sequence
2006 Aug 30
2
Continued:How can I seek in Ogg Vorbis file, but not using Vorbisfile library?
Hello, All.
First, I want to thank Ian Malone and Ralph Giles, thanks for your kind replies. But I still have problems about seek.
As you suggested, I could use ov_open_callbacks() to supply my own read/write/seek functions. So, can you give me an example? I?m sorry for my ignorance, because I haven?t used callbacks before.
I analyzed the vorbisfile.c in Tremor, and I think I
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,
2012 May 29
0
[klibc:master] capabilities: Use fflush() instead of fseek ()
Commit-ID: 163920f31f98db13f4e37796bb92f0844e7aaf45
Gitweb: http://git.kernel.org/?p=libs/klibc/klibc.git;a=commit;h=163920f31f98db13f4e37796bb92f0844e7aaf45
Author: maximilian attems <max at stro.at>
AuthorDate: Tue, 29 May 2012 18:58:31 +0200
Committer: maximilian attems <max at stro.at>
CommitDate: Tue, 29 May 2012 19:03:08 +0200
[klibc] capabilities: Use fflush() instead
2002 Aug 09
2
error starting SJava: classpath
Dear R experts,
Sorry, I am resending this, since I have not received this mail myself for
the past 5 hours.
I saw a similar question dated July 2. But there is no answer to it. Does
anybody have a solution to it?
I am using window NT, and the R version is 1.5.1, the SJava package is the
binary version SJavaWin_0.62-8.zip.
Here are the error message:
> library(SJava)
> .JavaInit()
2002 Nov 26
1
permutation
The gregmisc package contains a function 'perumutations' which generates all
permutations of n choose r. It also contains 'combinations' which generates
all combinations, and which appears to match your example:
> library(gregmisc)
Loading required package: MASS
Attaching package `gregmisc':
The following object(s) are masked from package:base :
2004 Jun 23
8
[Bug 884] DSA keys (id_dsa.pub) with 8192 bits or more aren't correctly recognized
http://bugzilla.mindrot.org/show_bug.cgi?id=884
dmr at gmx.it changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|DSA keys (id_dsa.pub) with |DSA keys (id_dsa.pub) with
|8192 bytes or more aren't |8192 bits or more aren't
|correctly
2014 May 12
4
[PATCH] isohybrid: fix overflow on 32 bit system
When call isohybrid with option '-u', it overflows on a 32 bits host. It
seeks to 512 bytes before the end of the image to install gpt header. If
the size of image is larger than LONG_MAX, it overflows fseek() and
cause error:
isohybrid: wrlinux-image-x86-64-20140505110100.iso: seek error - 8: Invalid argument
Check the offset and call fseek() multi-times if offset is too large.
2018 Feb 04
0
[PATCH 2/3] Add generic facility to override HID report descriptor in usbhid-ups
Some UPSes contain HID report descriptors that fail to correctly
describe the contents of reports. For example, the OpenUPS
descriptor fails to set the units, logical maximum and logical
minimum before the corresponding `main item' as required by the HID
specification.
This commit allows an override HID report descriptor to be given to
usbhid-ups which replaces the one produced by the UPS,
2002 Aug 21
2
Rterm and cgi
Dear R experts,
I posted a question last week regarding RSJava error UnsatisfiedLink:
eval. But, I did not get any response yet.
So, I am trying to work something out.
I tried to write something with perl, but it still does not work. In perl,
when I used rename which is a Dos command, it worked through the cgi, so
did cp (which is not a Dos command, but, it is in my path).
And the perl