Messages in this thread | | | Date | Fri, 16 Apr 2004 16:56:21 -0700 | From | Chris Wright <> | Subject | Re: POSIX message queues, libmqueue: mq_open, mq_unlink |
| |
* Alex Riesen (fork0@users.sourceforge.net) wrote: > Chris Wright, Sat, Apr 17, 2004 00:22:17 +0200: > > The kernel interface is simple and clean. And in fact, requires no > > slashes else you'll get -EACCES. It's not POSIX, but the library > > interface is. > > > > We just discussed this yesterday: > > > > http://marc.theaimsgroup.com/?t=108205593100003&r=1&w=2 > > now, what's is the check in the library for? BTW, it is returning the > other error code (EINVAL instead of EACCES), just on top of all the > confusion with slashes.
EINVAL in the library, sure. EACCES is if you directly use the kernel interface and pass it a name with any slashes in it. The two interfaces (library and kernel) aren't required to be identical. Kernel is kept simplest w/ no slashes, library provides POSIX compliance.
thanks, -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |