From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sog-mx-3.v43.ch3.sourceforge.com ([172.29.43.193] helo=mx.sourceforge.net) by sfs-ml-1.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1U7VHz-0005QM-IY for ltp-list@lists.sourceforge.net; Mon, 18 Feb 2013 18:18:07 +0000 Date: Mon, 18 Feb 2013 19:17:36 +0100 From: chrubis@suse.cz Message-ID: <20130218181734.GA28740@rei.Home> References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: Subject: Re: [LTP] [PATCH v3 2/3] setns: add new syscall test setns01 List-Id: Linux Test Project General Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-list-bounces@lists.sourceforge.net To: Jan Stancek Cc: ltp-list@lists.sourceforge.net Hi! > +static void setup1(struct testcase_t *t, int i) > +{ > + t->ns_type = ns_types[i]; > + t->fd = open("dummy", O_CREAT); While I tried to compile this code, I've got error as open with O_CREAT is required to pass the mode. > + if (t->fd == -1) > + tst_brkm(TFAIL|TERRNO, cleanup, "setup1:open failed"); > + unlink("dummy"); > +} -- Cyril Hrubis chrubis@suse.cz ------------------------------------------------------------------------------ The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials, tech docs, whitepapers, evaluation guides, and opinion stories. Check out the most recent posts - join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list