Re: POSIX message queues, libmqueue: mq_open, mq_unlink

From: Ulrich Drepper
Date: Fri Apr 16 2004 - 11:16:08 EST

Alex Riesen wrote:

> Looking over the code in libmqueue-4.31, I noticed the checks for the
> name validity in the mq_open and mq_unlink. Why are they needed? They
> are pointless if the code in kernel depends on the valid name,

You are contradicting yourself.

Anyway, non-absolute path names passed to the functions mean the
behavior is unspecified. No portable application must ever do this. It
is enforced for this reason plus if there comes a time when we want to
do something special which doesn't conflict with standard-compliant
behavior we have a possibility for that. Unlike wh6at you think, the
tests *are* useful.

â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at