Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/util-linux/ipcrm.c

    r2725 r3232  
    88 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    99 */
     10
     11//usage:#define ipcrm_trivial_usage
     12//usage:       "[-MQS key] [-mqs id]"
     13//usage:#define ipcrm_full_usage "\n\n"
     14//usage:       "Upper-case options MQS remove an object by shmkey value.\n"
     15//usage:       "Lower-case options remove an object by shmid value.\n"
     16//usage:     "\n    -mM Remove memory segment after last detach"
     17//usage:     "\n    -qQ Remove message queue"
     18//usage:     "\n    -sS Remove semaphore"
    1019
    1120#include "libbb.h"
     
    152161            /* convert key to id */
    153162            id = ((c == 'q') ? msgget(key, 0) :
    154                   (c == 'm') ? shmget(key, 0, 0) : semget(key, 0, 0));
     163                (c == 'm') ? shmget(key, 0, 0) : semget(key, 0, 0));
    155164
    156165            if (id < 0) {
     
    181190
    182191        result = ((c == 'q') ? msgctl(id, IPC_RMID, NULL) :
    183                   (c == 'm') ? shmctl(id, IPC_RMID, NULL) :
    184                   semctl(id, 0, IPC_RMID, arg));
     192                (c == 'm') ? shmctl(id, IPC_RMID, NULL) :
     193                semctl(id, 0, IPC_RMID, arg));
    185194
    186195        if (result) {
Note: See TracChangeset for help on using the changeset viewer.