From owner-freebsd-stable@FreeBSD.ORG Mon Sep 15 08:26:49 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C73B584C for ; Mon, 15 Sep 2014 08:26:49 +0000 (UTC) Received: from mail-wi0-x235.google.com (mail-wi0-x235.google.com [IPv6:2a00:1450:400c:c05::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5F9B6DFB for ; Mon, 15 Sep 2014 08:26:49 +0000 (UTC) Received: by mail-wi0-f181.google.com with SMTP id bs8so3683800wib.14 for ; Mon, 15 Sep 2014 01:26:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=fXClUeAiorkb7cBvG3VhtTvuh8VcPRbgFUBcPf57EmY=; b=z4TU4M30g/Ix1410zjcxsbhyKULi0mKE/yK272OHr88wOAV1atemI6dZ+E4OvwMBil LOJZzUy5s2vOv46nKE2IaKBXGnmJELQskWC1xoQAtKfe/hCu9bTy6CZRxYN08wAu9VzX 5kGw1B+QYmv23JIdHeisTlMedyc9uMKI7puHD4SDPf2z6AUF1QL+XCc4Z9xVq0e46Xge crNJx0EX5s6FP6U5io9jZ36RuhteDJoONxfktLNrfyK3zEZf4Dlnwc03LJm0LsYX4JWH 6GmmRdzsnn5UvN9EAvXeU+g/90dSqgGHJLsQM+uC7veGnNgvB6ItuqnjvE1LfqQlBbRI fFlA== X-Received: by 10.194.90.233 with SMTP id bz9mr8880432wjb.94.1410769606430; Mon, 15 Sep 2014 01:26:46 -0700 (PDT) Received: from dft-labs.eu (n1x0n-1-pt.tunnel.tserv5.lon1.ipv6.he.net. [2001:470:1f08:1f7::2]) by mx.google.com with ESMTPSA id bj7sm13929756wjc.33.2014.09.15.01.26.44 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 15 Sep 2014 01:26:45 -0700 (PDT) Date: Mon, 15 Sep 2014 10:26:35 +0200 From: Mateusz Guzik To: Erich Dollansky Subject: Re: mq_open sets errno to 78 when queue does not exist Message-ID: <20140915082635.GA3042@dft-labs.eu> References: <20140915145912.361a25e9@X220.alogt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20140915145912.361a25e9@X220.alogt.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Sep 2014 08:26:49 -0000 On Mon, Sep 15, 2014 at 02:59:12PM +0800, Erich Dollansky wrote: > Hi, > > I have a very simple program. It basically tries to open a message > queue which does not exists. mq_open returns then -1 but errno is set > to 78 which is defined as this: > > #define ENOSYS 78 /* Function not implemented */ > > The line in question: > > res = mq_open ("/doesnotexist", O_RDWR); > > "/doesnotexists" is the non-existing message queue the program tests > for. res will be set correctly to -1 but errno is set then to 78. > > If I want to create the message queue, I will get the same error. > > uname -a says: > > FreeBSD X220.alogt.com 10.1-PRERELEASE FreeBSD 10.1-PRERELEASE #45 > r271420: Sat Sep 13 15:09:34 WITA 2014 > erich@X220.alogt.com:/usr/obj/usr/src/sys/X220 amd64 > > Do I see or do something wrong or is this an error? > Do you have mqueuefs loaded? -- Mateusz Guzik