search for: setbuffer

Displaying 20 results from an estimated 26 matches for "setbuffer".

Did you mean: getbuffer
2000 Mar 16
0
Compilation and solving problem on mips-sony-bsd.
....diff There are some problems about this old and specific system. 1. It does not have setvbuf(). 2. It does not have 'struct utimbuf'. 3. It has 'O_NONBLOCK' in <stream/xti.h>. 4. It does not have 'WNOHANG'. I don't know why. The setvbuf() can be replaced with setbuffer() and setlinebuf(), for example, I wrote --->8------>8------>8------>8------>8------>8------>8------>8--- Index: lib/getsmbpass.c =================================================================== RCS file: /home/nakaji/ncvs/samba-news4/source/lib/getsmbpass.c,v retrieving...
2015 May 02
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
...stream.h (revision 236304) +++ include/llvm/Support/raw_ostream.h (working copy) @@ -52,17 +52,19 @@ /// OutBufEnd - OutBufStart >= 1). /// /// If buffered, then the raw_ostream owns the buffer if (BufferMode == - /// InternalBuffer); otherwise the buffer has been set via SetBuffer and is - /// managed by the subclass. + /// InternalBuffer or BufferMode == DirectBuffer); otherwise the buffer has + /// been set via SetBuffer and is managed by the subclass. /// /// If a subclass installs an external buffer using SetBuffer then it can wait /// for a \see write_impl()...
2015 May 02
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
Could you dig into why: + raw_ostream &write(unsigned char C) override { + grow(1); + *OutBufCur++ = C; + return *this; + } Is 3 times as fast as raw_svector_ostream? I don't see a good reason why that should be any faster than: raw_ostream &operator<<(char C) { if (OutBufCur >= OutBufEnd) return write(C); *OutBufCur++ = C; return *this; }
2015 Apr 30
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
I don't think we should make flush virtual. Why do you need to do it? Can't you set up the base class to write to use the tail of the memory region as the buffer? On 24 April 2015 at 06:46, Yaron Keren <yaron.keren at gmail.com> wrote: > Hi, > > Is this what you're thinking about? > The code is not tested yet, I'd like to know if the overall direction and >
2018 Jun 14
3
Commit module to Git after each Pass
...free. Best regard! On Thu, Mar 22, 2018 at 10:38 AM Reid Kleckner via llvm-dev < llvm-dev at lists.llvm.org> wrote: > Obviously, we do not want all stderr output to be buffered. However, I > think it would be great to change Function::print and Module::print to call > raw_ostream::SetBuffered / raw_ostream::SetUnbuffered before and after > printing. I guess if the original stream was buffered we don't want to mark > it unbuffered, so we may need to tweak the raw_ostream interface. Looks > easy, though. > > > On Thu, Mar 22, 2018 at 8:06 AM Fedor Sergeev via llvm-...
2015 Apr 19
6
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
A very common code pattern in LLVM is SmallString<128> S; raw_svector_ostream OS(S); OS<< ... Use OS.str() While raw_svector_ostream is smart to share the text buffer itself, it's inefficient keeping two sets of pointers to the same buffer: In SmallString: void *BeginX, *EndX, *CapacityX In raw_ostream: char *OutBufStart, *OutBufEnd, *OutBufCur Moreover, at runtime the
2018 Mar 22
2
Commit module to Git after each Pass
Oh, well... as usually the answer appears to be pretty obvious. 99% of the time is spent inside the plain write. -print-after-all prints into llvm::errs(), which is an *unbuffered* raw_fd_stream. And -git-commit-after-all opens a *buffered* raw_fd_stream. As soon as I hacked -print-after-all to use a buffered stream to stderr performance went up to the normal expected values: ] time bin/opt
2015 Apr 20
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
Sean, thanks for reminding this, Alp did commit a class derived from raw_svector_ostream conatining an internal SmallString he called small_string_ostream. The commit was reverted after a day due to a disagreement about the commit approval and apparently abandoned. http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140623/223393.html
2015 May 22
2
[LLVMdev] SmallString + raw_svector_ostream combination should be more efficient
...ternal buffer. We make sure that the buffer has at - // least 128 bytes free; raw_ostream itself only requires 64, but we want to - // make sure that we don't grow the buffer unnecessarily on destruction (when - // the data is flushed). See the FIXME below. - OS.reserve(OS.size() + 128); - SetBuffer(OS.end(), OS.capacity() - OS.size()); -} - -raw_svector_ostream::~raw_svector_ostream() { - // FIXME: Prevent resizing during this flush(). - flush(); -} - -void raw_svector_ostream::pwrite_impl(const char *Ptr, size_t Size, - uint64_t Offset) { - flush(); -...
2008 Jul 08
0
Report this to samba-technical@samba.org, ldap_initialize error
..._t... yes checking for loff_t... no checking for offset_t... yes checking for working memcmp... yes checking for pipe... yes checking for strftime... yes checking for srandom... yes checking for random... yes checking for srand... yes checking for rand... yes checking for usleep... yes checking for setbuffer... yes checking for lstat... yes checking for getpgrp... yes checking stdbool.h usability... yes checking stdbool.h presence... yes checking for stdbool.h... yes checking for stdint.h... (cached) no checking sys/select.h usability... yes checking sys/select.h presence... yes checking for sys/select...
2018 Jun 15
2
Commit module to Git after each Pass
...Thu, Mar 22, 2018 at 10:38 AM Reid Kleckner via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote: Obviously, we do not want all stderr output to be buffered. However, I think it would be great to change Function::print and Module::print to call raw_ostream::SetBuffered / raw_ostream::SetUnbuffered before and after printing. I guess if the original stream was buffered we don't want to mark it unbuffered, so we may need to tweak the raw_ostream interface. Looks easy, though. On Thu, Mar 22, 2018 at 8:06 AM Fedor Sergeev via llvm-dev <llvm-dev at lists.ll...
2016 Aug 05
0
Wine release 1.9.16
...teenable() function name. xinput: Fix XInputGetBatteryInformation spec file entry. d3dx10: Add D3DX10CreateTextureFromMemory stub. Anton Baskanov (6): amstream: Fix AMAudioData::QueryInterface. amstream: Implement AMAudioData::GetInfo. amstream: Implement AMAudioData::SetBuffer. amstream: Implement AMAudioData::SetActual. amstream: Implement AMAudioData::GetFormat. amstream: Implement AMAudioData::SetFormat. Aric Stewart (4): ntoskrnl: Build a more intelligent and correct RegistryPath if possible. ntoskrnl.exe: Track drivers created with IoC...
2004 Dec 13
0
samba4 configure error
..... yes checking for strcasecmp... yes checking for fcvt... yes checking for fcvtl... no checking for symlink... yes checking for readlink... yes checking for syslog... yes checking for vsyslog... yes checking for getgrouplist... no checking for timegm... no checking for backtrace... no checking for setbuffer... yes checking for shmget... yes checking for shm_open... no checking for syscall... yes checking for getdents... yes checking for pread... yes checking for pwrite... yes checking for setlocale... yes checking for dn_expand in -lresolv... yes checking for putprpwnam in -lsecurity... no checking fo...
2010 Nov 01
1
Samba 4 on osx
...hecking for strftime : ok Checking for srandom : ok Checking for random : ok Checking for srand : ok Checking for rand : ok Checking for usleep : ok Checking for setbuffer : ok Checking for lstat : ok Checking for getpgrp : ok Checking for utime : ok Checking for utimes : ok Checking for seteuid : ok Checking for setresuid...
2010 Oct 07
1
OSX and samba4 git
...hecking for strftime : ok Checking for srandom : ok Checking for random : ok Checking for srand : ok Checking for rand : ok Checking for usleep : ok Checking for setbuffer : ok Checking for lstat : ok Checking for getpgrp : ok Checking for utime : ok Checking for utimes : ok Checking for seteuid : ok Checking for setresuid...
2004 Jan 15
2
Installation Problem !!!
...yes checking for strcasecmp... yes checking for fcvt... yes checking for fcvtl... no checking for symlink... yes checking for readlink... yes checking for syslog... yes checking for vsyslog... yes checking for timegm... yes checking for setlocale... yes checking for nl_langinfo... yes checking for setbuffer... yes checking for shmget... yes checking for shm_open... no checking for backtrace_symbols... yes checking for syscall... yes checking for _dup... no checking for _dup2... no checking for _opendir... no checking for _readdir... no checking for _seekdir... no checking for _telldir... no checking f...
2005 Aug 10
2
Compiling smbtorture
.... yes checking for fcvt... yes checking for fcvtl... no checking for symlink... yes checking for readlink... yes checking for syslog... yes checking for vsyslog... yes checking for timegm... yes checking for setlocale... yes checking for nl_langinfo... yes checking for nanosleep... yes checking for setbuffer... yes checking for shmget... yes checking for shm_open... no checking for backtrace_symbols... yes checking libexc.h usability... no checking libexc.h presence... no checking for libexc.h... no checking for trace_back_stack in -lexc... no checking for syscall... yes checking for _dup... no checkin...
2010 Feb 04
3
3.3 and 3.4 compile failure on dbwrap
..._t... yes checking for loff_t... no checking for offset_t... yes checking for working memcmp... yes checking for pipe... yes checking for strftime... yes checking for srandom... yes checking for random... yes checking for srand... yes checking for rand... yes checking for usleep... yes checking for setbuffer... yes checking for lstat... yes checking for getpgrp... yes checking for utime... yes checking for utimes... yes checking stdbool.h usability... yes checking stdbool.h presence... yes checking for stdbool.h... yes checking for stdint.h... (cached) no checking sys/select.h usability... yes checking...
2004 Jun 02
0
Re: samba Digest, Vol 18, Issue 3
..... yes checking for strcasecmp... yes checking for fcvt... yes checking for fcvtl... no checking for symlink... yes checking for readlink... yes checking for syslog... yes checking for vsyslog... no checking for timegm... no checking for setlocale... yes checking for nl_langinfo... yes checking for setbuffer... yes checking for shmget... yes checking for shm_open... yes checking for backtrace_symbols... no checking libexc.h usability... no checking libexc.h presence... no checking for libexc.h... no checking for trace_back_stack in -lexc... no checking for syscall... no checking for _dup... no checking...
2004 Jun 02
0
SAMBA 3.0.4 on AIX 5.2 configure usability question?
..... yes checking for strcasecmp... yes checking for fcvt... yes checking for fcvtl... no checking for symlink... yes checking for readlink... yes checking for syslog... yes checking for vsyslog... no checking for timegm... no checking for setlocale... yes checking for nl_langinfo... yes checking for setbuffer... yes checking for shmget... yes checking for shm_open... yes checking for backtrace_symbols... no checking libexc.h usability... no checking libexc.h presence... no checking for libexc.h... no checking for trace_back_stack in -lexc... no checking for syscall... no checking for _dup... no checking...