/* * Copyright (c) 2003, Intel Corporation. All rights reserved. * Created by: julie.n.fleischer REMOVE-THIS AT intel DOT com * This file is licensed under the GPL license. For the full content * of this license, see the COPYING file at the top level of this * source tree. */ /* * Test that mq_open() fails with ENAMETOOLONG if the name parameter's * length is greater than PATH_MAX. */ #include #include #include #include #include #include #include #include #include #include "posixtest.h" int main() { char qname[PATH_MAX*2]; mqd_t queue; int i; sprintf(qname, "/mq_open_27-1_%d", getpid()); //Ensures queue name will have > PATH_MAX chars for(i=0;i