* 01 Sept 2004 - Rodney Radford <rradford@mindspring.com>
* Adapted for busybox from util-linux-2.12a.
*
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
*/
/* X/OPEN tells us to use <sys/{types,ipc,sem}.h> for semctl() */
}
-static void do_shm(void)
+static NOINLINE void do_shm(void)
{
int maxid, shmid, id;
struct shmid_ds shmseg;
}
-static void do_sem(void)
+static NOINLINE void do_sem(void)
{
int maxid, semid, id;
struct semid_ds semary;
}
-static void do_msg(void)
+static NOINLINE void do_msg(void)
{
int maxid, msqid, id;
struct msqid_ds msgque;
}
int ipcs_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int ipcs_main(int argc ATTRIBUTE_UNUSED, char **argv)
+int ipcs_main(int argc UNUSED_PARAM, char **argv)
{
int id = 0;
unsigned flags = 0;
if (flags & flag_print) {
if (flags & flag_shm) {
print_shm(id);
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}
if (flags & flag_sem) {
print_sem(id);
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}
if (flags & flag_msg) {
print_msg(id);
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}
bb_show_usage();
}
do_msg();
bb_putchar('\n');
}
- fflush_stdout_and_exit(0);
+ fflush_stdout_and_exit(EXIT_SUCCESS);
}