1 /* (c) Copyright Hewlett-Packard Development Company, L.P., 2007
3 * This program is free software: you can redistribute it and/or modify
4 * it under the terms of version 2 the GNU General Public License as
5 * published by the Free Software Foundation.
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 #include "ipc_common.c"
20 int main(int argc
, char **argv
)
24 if (check_ipc_usage("msgsnd", argc
))
28 exitval
= do_msgsnd(atoi(argv
[1]), atoi(argv
[2]), argv
[3]);
31 printf("%d %d %d\n", result
, result
? errno
: exitval
, getpid());