public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Roland Dreier <rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>
To: "Håkon Bugge" <Haakon.Bugge-UdXhSnd/wVw@public.gmane.org>
Cc: Bart Van Assche
	<bart.vanassche-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
	Vladimir Sokolovsky
	<vlad-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>,
	OFED mailing list
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Or Gerlitz <ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH] libibverbs: Force line-buffering in ibv_asyncwatch
Date: Wed, 02 Jun 2010 10:05:56 -0700	[thread overview]
Message-ID: <ada7hmhtle3.fsf@roland-alpha.cisco.com> (raw)
In-Reply-To: <C25CCF03-2542-4C8D-9AF4-122DBF56F856-UdXhSnd/wVw@public.gmane.org> ("Håkon Bugge"'s message of "Thu, 21 Jan 2010 16:01:55 +0100")

 > setlinebuf() is pretty intuitive to understand, compared to setvbuf().

I finally applied this; however in the end I decided to do

	setvbuf(stdout, NULL, _IOLBF, 0);

instead of setlinebuf(), since in the past I've prefered more pedantic
stuff (eg posix_memalign instead of memalign) to the older simpler
traditional functions.  Kind of a trivial issue either way anyway.
-- 
Roland Dreier <rolandd-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org> || For corporate legal information go to:
http://www.cisco.com/web/about/doing_business/legal/cri/index.html
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2010-06-02 17:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-21 13:40 [PATCH] libibverbs: Force line-buffering in ibv_asyncwatch Håkon Bugge
     [not found] ` <ED0695A5-CBE3-4CE2-A20C-BBC7BEF28C33-U0mLk4xYmo8@public.gmane.org>
2010-01-21 14:18   ` Bart Van Assche
     [not found]     ` <e2e108261001210618p476ed03bofa2e46c223578e1a-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-01-21 15:01       ` Håkon Bugge
     [not found]         ` <C25CCF03-2542-4C8D-9AF4-122DBF56F856-UdXhSnd/wVw@public.gmane.org>
2010-06-02 17:05           ` Roland Dreier [this message]
     [not found]             ` <ada7hmhtle3.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-06-03 10:54               ` Håkon Bugge
     [not found] ` <4B5BD8B5.2080102@voltaire.com>
     [not found]   ` <23AC7B6E-377F-4CFC-AD9D-0D2FD27662C7@Sun.COM>
     [not found]     ` <23AC7B6E-377F-4CFC-AD9D-0D2FD27662C7-UdXhSnd/wVw@public.gmane.org>
2010-01-25  9:44       ` Or Gerlitz
     [not found]         ` <4B5D67FE.80509-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-01-25  9:47           ` Vladimir Sokolovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ada7hmhtle3.fsf@roland-alpha.cisco.com \
    --to=rdreier-fyb4gu1cfyuavxtiumwx3w@public.gmane.org \
    --cc=Haakon.Bugge-UdXhSnd/wVw@public.gmane.org \
    --cc=bart.vanassche-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=ogerlitz-smomgflXvOZWk0Htik3J/w@public.gmane.org \
    --cc=vlad-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox