search for: o_binari

Displaying 20 results from an estimated 42 matches for "o_binari".

Did you mean: o_binary
2013 Jun 27
2
[PATCH] hivex: Add O_BINARY flag to open calls for platforms where this isn't the default (such as Win32)
Hi As my cross platform registry editor (FRED available from https://www.pinguin.lu (sorry for advertising but I couldn't resist ;-))) is evolving, I recently added write support to it. While under Linux everything worked nice, the Windblows build didn't. It seems that Windows opens files by default in text mode (O_TEXT) which is a problem. The attached patch adds the O_BINARY flag to
2013 Jun 28
0
Re: [PATCH] hivex: Add O_BINARY flag to open calls for platforms where this isn't the default (such as Win32)
On Thu, Jun 27, 2013 at 11:29:28PM +0200, Daniel Gillen wrote: > Hi > > As my cross platform registry editor (FRED available from > https://www.pinguin.lu (sorry for advertising but I couldn't resist > ;-))) is evolving, I recently added write support to it. > > While under Linux everything worked nice, the Windblows build didn't. > > It seems that Windows
2003 Mar 04
1
2.5.6 needs following fix on WinNTs
Hi, Here is the problem (syscall.c, function do_open) on NT, Win2K, WinXP, with stripped "/" for UNC path convention, detected in release 2.5.5, 2.5.6: int do_open(char *pathname, int flags, mode_t mode) { if (flags != O_RDONLY) { if (dry_run) return -1; CHECK_RO } #ifdef O_BINARY /* for Windows */ flags |= O_BINARY; #endif /* some systems can't handle a double / */
2011 Jun 28
0
[PATCH] cpio: cleanup O_BINARY usage.
No point of using it on a unixish OS. Signed-off-by: maximilian attems <max at stro.at> --- usr/utils/cpio.c | 10 ++-------- 1 files changed, 2 insertions(+), 8 deletions(-) diff --git a/usr/utils/cpio.c b/usr/utils/cpio.c index 6891883..15134b9 100644 --- a/usr/utils/cpio.c +++ b/usr/utils/cpio.c @@ -31,10 +31,6 @@ #include <fnmatch.h> #endif -#ifndef O_BINARY -# define
2000 Aug 01
2
Port of OpenSSH-2.1.1p4 to Cygwin
Hi, since the previous port of OpenSSH to Cygwin, there's happened a lot with Cygwin. We have worked hard to allow a more smooth porting of UNIX applications which results in two major advantages: - There's no need to use so called `text mode' in open calls anymore. - With only less interventions in the applications code the concept of real and effective uid's is supported
2003 Jan 26
1
[PATCH] open O_TEXT and O_BINARY for cygwin/windows
Ville Herva [mailto:vherva@niksula.hut.fi] wrote: > Of course, whether O_TEXT is defined or not does not > necessarily imply the availability of "t", but I > can't think of better alternative. Stratus VOS implements O_TEXT and O_BINARY but does not recognize "t". We have the options defined in ANS C and in POSIX. I'm at home and don't have my reference
2003 Jan 21
6
Please test rsync-2.5.6pre2
The second rsync-2.5.6 pre-release version is now available at: http://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz ftp://rsync.samba.org/pub/rsync/preview/rsync-2.5.6pre2.tar.gz rsync://rsync.samba.org/ftp/rsync/preview/rsync-2.5.6pre2.tar.gz There's also a corresponding '.sig' file that contains a gpg signature of the file; the public key is available on the
2017 Feb 09
1
[PATCH] Fix compile with cygwin
The underscores are wrong. The comment is also correct. Also remove the configure.ac option. Otherwise it tries to compile the windows unicode stuff which POSIX(cygwin) does not understand. --- configure.ac | 2 +- include/share/compat.h | 2 +- src/libFLAC/stream_decoder.c | 3 --- src/libFLAC/stream_encoder.c | 3 --- src/share/grabbag/file.c | 8 +------- 5 files
2001 Apr 02
1
[PATCH]: scp could hang in Cygwin
Hi, attached is a patch which solves the following problem: Sometimes scp could hang in Cygwin when used as remote end using the -t option. This is due to a binmode/textmode problem which could be raised by the login shell which is used by the user and it's setting of textmode on stdin. The patch solves that problem by explicitly setting binmode on stdin. Besides solving the hanging
2002 Feb 20
2
[PATCH] rsync on cygwin - textmode config files
I've been running rsync-2.4.2 with an old patch of mine for some time for backup purposes. Due to the recent remote bug, I thought it was time to upgrade, even if the host was behind a firewall. So I dug up the old patch (2.5.2 version attached), that I think I sent ages ago to this list as well. It does the following: (1) Firstly, the only sensible way to run something as
2004 Jan 30
1
rsync 2.6.0: possible sanitization bug?
Hiya. While merging the 2.6.0 changes into our modified version of rsync, I noticed the following bit of code in 2.6.0's options.c: extern int sanitize_paths; if (sanitize_paths) sanitize_path(strdup(files_from), NULL); filesfrom_fd = open(files_from, O_RDONLY|O_BINARY); Since sanitize_path modifies its first argument in place, the path that open()
2006 Oct 30
0
File Store permissions
I am using Ferret for a Rails app in which Rails runs as one user but I have other processes that run as a different user that modify the ferret index. This is done in large part to mitigate the damage if a major exploit is found in Rails again. The problem is Ferret creates all its index files with rw for the user only. I have included a small patch that changes Ferret to create these
2001 Feb 12
1
Little Bug under Win32
Hi I found a small Bug when compiling OpenSSH under Win32 using Cygwin. When you use SSH as a interactive Shell everthing looks normal but when you try to transfer binary data via SSH you will get only garbage. Example: ssh -l root -i ./.ssh/identity server1 cat /tmp/test.tar.gz > c:\test.tar.gz The problem is that stdout is opend as Text-File so every LF which
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
2010 Nov 19
3
File Offsets for SCP (patch)
I don't know if anyone would be interested in this but I'm including a patch to allow for offsets when transferring files with SCP. It's pretty simple and assumes the user knows what they are doing (for example, if transferring with a wild card the offset would apply to all files). -A is the number of bytes offset from the beginning of the files. -Z is the number of bytes inset
2004 Aug 06
1
some portability fixes ...
i don't want to deal with CVS, so i'll just post some minor fixes along to explanations for your amusement on this list ... I. cygwin compilability cygwin doesn't yet handle threads that is compatible with icecast, but thankfully icecast supports win32 native threads. however, cygwin's preprocessor "#define"'s makes icecast confuse whether it should behave
2002 Nov 01
0
File access from within a DLL
Hi, Is there a recommended method using R header files for opening files from within a DLL? I can remember reading something on this topic, but have been unable to find it in any of the recent FAQs or in the help archive. I'm using the C open/lseek/read/close functions with the usual C header files ie #include <stdio.h> #include <math.h> #include <string.h>
2005 Feb 26
1
[patch] fixes for avi2vp3
here is a patch that fixes various bugs/problems with avi2vp3: 1. open() is not called with O_BINARY , this causes the program to crash or give undesired results on win32 (and maybe other platforms?), as binary mode is not default. 2. win32 does not understand chmod flags, ie: (S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH) 3. buffer = malloc(AVI_max_video_chunk(avifile)); for some reason,
2001 Jan 31
1
Syntax error....
You might want to fix this: diff -x CVS -uwrN ../OggVorbis.clean/vorbis-tools/oggenc/platform.c ./vorbis-tools/oggenc/platform.c --- ../OggVorbis.clean/vorbis-tools/oggenc/platform.c Thu Feb 1 01:25:36 2001 +++ ./vorbis-tools/oggenc/platform.c Thu Feb 1 01:23:08 2001 @@ -52,7 +58,7 @@ } #endif -#ifdef __WATCOMC__ || __BORLANDC__ +#if defined(__WATCOMC__) || defined(__BORLANDC__) void
2019 Aug 09
0
[PATCH] Switch to utimensat for newer POSIX versions
Some libcs like uClibc-ng can optionally disable deprecated functions. utime is one of them. When done so, both the header and the function go missing. This fixes flac_utime to work in such a situation. --- include/share/compat.h | 10 +++++++++- src/libFLAC/metadata_iterators.c | 9 +++++++-- src/share/grabbag/file.c | 9 +++++++-- 3 files changed, 23 insertions(+), 5