Displaying 20 results from an estimated 25 matches for "_o_binary".
Did you mean:
o_binary
2017 Feb 09
1
[PATCH] Fix compile with cygwin
...-98,7 +98,7 @@
#define FLAC__STRNCASECMP strncasecmp
#endif
-#if defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ || defined __EMX__
+#if defined _MSC_VER || defined __MINGW32__ || defined __EMX__
#include <io.h> /* for _setmode(), chmod() */
#include <fcntl.h> /* for _O_BINARY */
#else
diff --git a/src/libFLAC/stream_decoder.c b/src/libFLAC/stream_decoder.c
index 2e1fdd5..d3b6e03 100644
--- a/src/libFLAC/stream_decoder.c
+++ b/src/libFLAC/stream_decoder.c
@@ -1253,9 +1253,6 @@ FILE *get_binary_stdin_(void)
*/
#if defined _MSC_VER || defined __MINGW32__
_setmode(_f...
2008 Jan 11
1
Patch for OS/2 STDIN/STDOUT
...this small patch is needed:
---cut---
diff -ruN o:src/speexdec.c src/speexdec.c
--- o:src/speexdec.c 2007-12-08 05:01:08.000000000 +0100
+++ src/speexdec.c 2008-01-12 00:48:00.000000000 +0100
@@ -231,6 +231,8 @@
{
#if defined WIN32 || defined _WIN32
_setmode(_fileno(stdout), _O_BINARY);
+#elif defined OS2
+ _fsetmode(stdout,"b");
#endif
fout=stdout;
}
diff -ruN o:src/speexenc.c src/speexenc.c
--- o:src/speexenc.c 2007-12-08 05:01:08.000000000 +0100
+++ src/speexenc.c 2008-01-12 00:47:06.000000000 +0100
@@ -514,6 +514,8 @@
{
#if define...
2017 Apr 06
2
Zero length reported.
...t;vorbis/codec.h"
#include "vorbis/vorbisfile.h"
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#endif
char pcmout[4096];
int main (int argc, char** argv)
{
OggVorbis_File vf;
int eof = 0;
int current_section;
#ifdef _WIN32
_setmode (_fileno (stdin), _O_BINARY);
_setmode (_fileno (stdout), _O_BINARY);
#endif
if (ov_open_callbacks (stdin, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) < 0)
{
fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n");
exit (1);
}
{
char** ptr = ov_comment (&v...
2017 Apr 06
2
Zero length reported.
...t;vorbis/codec.h"
#include "vorbis/vorbisfile.h"
#ifdef _WIN32
#include <io.h>
#include <fcntl.h>
#endif
char pcmout[4096];
int main (int argc, char** argv)
{
OggVorbis_File vf;
int eof = 0;
int current_section;
#ifdef _WIN32
_setmode (_fileno (stdin), _O_BINARY);
_setmode (_fileno (stdout), _O_BINARY);
#endif
if (ov_open_callbacks (stdin, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) < 0)
{
fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n");
exit (1);
}
{
char** ptr = ov_comment (&v...
2006 May 23
3
[LLVMdev] Binary output to cout on Windows
The solution (provided in Microsoft's documentation) is to add:
#include <cstdio>
#include <io.h>
#include <fcntl.h>
and run:
int result = _setmode( _fileno(stdin), _O_BINARY );
if( result == -1 )
{ std::cerr<<"Cannot set input mode to binary."<<std::endl; return 1;
}
result = _setmode( _fileno(stdout), _O_BINARY );
if( result == -1 )
{ std::cerr<<"Cannot set output mode to binary."<<std::endl; return 1;
}
before usi...
2004 Sep 10
3
Cygwin patch
Building flac 1.0.3 under the latest cygwin craps out in
src/libFLAC/file_decode.c and src/flac/file.c for _O_BINARY
not being defined. It appears that #include <io.h> is not
sufficient to pull in this macro; you need to #include
<fcntl.h>.
BTW, nice test suite! Talk about exhaustive.
If anyone is interested in my Cygwin binaries (no Ogg
support), I can provide an encap package file. Let me...
2017 Apr 11
1
[Vorbis-dev] Zero length reported.
...clude <fcntl.h>
>> #endif
>>
>> char pcmout[4096];
>>
>> int main (int argc, char** argv)
>> {
>> OggVorbis_File vf;
>> int eof = 0;
>> int current_section;
>>
>> #ifdef _WIN32
>> _setmode (_fileno (stdin), _O_BINARY);
>> _setmode (_fileno (stdout), _O_BINARY);
>> #endif
>>
>> if (ov_open_callbacks (stdin, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) < 0)
>> {
>> fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n");
>> exit...
2002 Feb 12
2
problem with Vorbis DLL's
...OVOPEN hOvOpen;
hVorbisFile = LoadLibrary(_T("Vorbisfile.DLL"));
hOvOpen = (OVOPEN)GetProcAddress(hVorbisFile, _T("ov_open"));
printf(filename, "music\\Track%02d.OGG", track_number);
vorbis_fd = fopen(filename, _T("rb"));
_setmode( _fileno( vorbis_fd ), _O_BINARY );
if ((hOvOpen)(vorbis_fd, &vf, NULL, 0) < 0) {
then POOF!
<p>thanks!
Brent
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-request@xiph.org'
conta...
2013 Apr 02
2
flac 1.3.0pre3 pre-release
Janne Hyv?rinen wrote:
> Surprisingly flac_mac had mistakenly gotten extra parameters for safe
> string functions requiring further patching.
> And here's patches for the changes in git for flactimer.
Applied, thanks.
> I noticed compat.h patch didn't make it into git. I know it may not be
> perfect patch but unistd.h is in two different #ifdef checks. First one
>
2013 Apr 07
0
flac 1.3.0pre3 pre-release
...share/compat.h
@@ -93,13 +93,9 @@
#define FLAC__STRNCASECMP strncasecmp
#endif
-#if defined _MSC_VER || defined __MINGW32__
+#if defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ || defined __EMX__
#include <io.h> /* for _setmode(), chmod() */
#include <fcntl.h> /* for _O_BINARY */
-#endif
-#if defined __CYGWIN__ || defined __EMX__
-#include <io.h> /* for setmode(), chmod() */
-#include <fcntl.h> /* for _O_BINARY */
#else
#include <unistd.h> /* for chown(), unlink() */
#endif
2017 Apr 07
0
Fwd: [Vorbis-dev] Zero length reported.
...ifdef _WIN32
> #include <io.h>
> #include <fcntl.h>
> #endif
>
> char pcmout[4096];
>
> int main (int argc, char** argv)
> {
> OggVorbis_File vf;
> int eof = 0;
> int current_section;
>
> #ifdef _WIN32
> _setmode (_fileno (stdin), _O_BINARY);
> _setmode (_fileno (stdout), _O_BINARY);
> #endif
>
> if (ov_open_callbacks (stdin, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) < 0)
> {
> fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n");
> exit (1);
> }
>
>...
2005 May 23
1
Why does ov_open fail?
...//////////////////////////////////////////////////////////////////
// 1) OPENING AND INITIALIZING THE OGG VORBIS FILE
///////////////////////////////////////////////////////////////////////////
//Let's open the file in binary mode for reading.
if (_topen(pFilePath, _O_RDONLY | _O_BINARY) == -1)
{
data.valid = false;
return;
}
// Let's initialize the OggVorbis_File.
if(ov_open(stdin, &vf, NULL, 0) < 0)
{
_close(0);
data.valid = false;
return;
}
.....
}
-------------- next part --------------
An HTML attachm...
2004 Aug 06
2
new utility - ezstream
At 03:07 PM 1/30/2004, you wrote:
>Thanks for your work on this oddsock. It's a major feature that's been
>missing from the Win32 environment. I presume you will be offering a Win32
>binary on your site at some stage.
why sure! http://www.icecast.org:8082/files/ezstream_win32_0.1.0_setup.exe
also, a note of mention, reading from stdin seems to be broken on win32,
but works
2006 May 23
0
[LLVMdev] Binary output to cout on Windows
On Tue, 23 May 2006, Michael Smith wrote:
> The solution (provided in Microsoft's documentation) is to add:
> #include <cstdio>
> #include <io.h>
> #include <fcntl.h>
> and run:
> int result = _setmode( _fileno(stdin), _O_BINARY );
> if( result == -1 )
> { std::cerr<<"Cannot set input mode to binary."<<std::endl; return 1;
> }
> result = _setmode( _fileno(stdout), _O_BINARY );
> if( result == -1 )
> { std::cerr<<"Cannot set output mode to binary."<<std::end...
2006 May 23
1
[LLVMdev] Binary output to cout on Windows
...://llvm.org/bugs
Reid.
On Tue, 2006-05-23 at 10:27 -0700, Michael Smith wrote:
> The solution (provided in Microsoft's documentation) is to add:
> #include <cstdio>
> #include <io.h>
> #include <fcntl.h>
> and run:
> int result = _setmode( _fileno(stdin), _O_BINARY );
> if( result == -1 )
> { std::cerr<<"Cannot set input mode to binary."<<std::endl; return
1;
> }
> result = _setmode( _fileno(stdout), _O_BINARY );
> if( result == -1 )
> { std::cerr<<"Cannot set output mode to binary."<<std...
2002 Dec 27
1
Vorbisgain in ogg123
I'm considering patching my copy of ogg123 to support vorbisgain tags. Is
there any interest in folding this sort of patch into the main line ogg123?
Has anyone done this already (or to another command line ogg player)?
John
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to
2012 Dec 05
7
ov_open_callbacks takes so much time to open 210 MB OGG file
Why ov_open_callbacks(fd_, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) takes so
long to open OGG file?
The OGG file has just 210 MB. It takes a lot of time open the file.
I am working on OGG audio recorder and player.
Thanks in advance!
With kind regards,
Pavel
2004 Aug 06
0
new utility - ezstream
...o, a note of mention, reading from stdin seems to be broken on win32,
> but works very well on unix...but hey, this is a first revision :)
>
> oddsock
>
I haven't yet looked at the code, but for stdin to work correctly on windows,
you usually need to call:
_setmode(_fileno(stdin), _O_BINARY);
That's for MSVC. There are different variations on this for other platforms
and other win32 compilers - see oggenc/platform.c:setbinmode() if you need to
know.
Mike
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
icecast project homepage: http://www.icecast.org/
To...
2012 May 22
1
[PATCH v2] kexec: simply pass LINUX_REBOOT_CMD_KEXEC to reboot
...a/kexec/kexec.c b/kexec/kexec.c
index d2d05a8..3572c5b 100644
--- a/kexec/kexec.c
+++ b/kexec/kexec.c
@@ -28,6 +28,7 @@
#include <limits.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/reboot.h>
#include <unistd.h>
#include <fcntl.h>
#ifndef _O_BINARY
@@ -822,7 +823,7 @@ static int my_shutdown(void)
*/
static int my_exec(void)
{
- kexec_reboot();
+ reboot(LINUX_REBOOT_CMD_KEXEC);
/* I have failed if I make it here */
fprintf(stderr, "kexec failed: %s\n",
strerror(errno));
--
1.7.10
2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
...;
#if !defined _MSC_VER && !defined __BORLANDC__ && !defined __MINGW32__
diff --git a/src/share/grabbag/file.c b/src/share/grabbag/file.c
index 2c67bebf..edd835a6 100644
--- a/src/share/grabbag/file.c
+++ b/src/share/grabbag/file.c
@@ -27,7 +27,6 @@
#include <fcntl.h> /* for _O_BINARY */
#else
#include <sys/types.h> /* some flavors of BSD (like OS X) require this to get time_t */
-#include <utime.h> /* for utime() */
#endif
#if defined __EMX__
#include <io.h> /* for setmode(), O_BINARY */
@@ -53,11 +52,17 @@
void grabbag__file_copy_metadata(const char *sr...