Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 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/flock.c

    r2725 r3232  
    44 * This is free software, licensed under the GNU General Public License v2.
    55 */
     6
     7//usage:#define flock_trivial_usage
     8//usage:       "[-sxun] FD|{FILE [-c] PROG ARGS}"
     9//usage:#define flock_full_usage "\n\n"
     10//usage:       "[Un]lock file descriptor, or lock FILE, run PROG\n"
     11//usage:     "\n    -s  Shared lock"
     12//usage:     "\n    -x  Exclusive lock (default)"
     13//usage:     "\n    -u  Unlock FD"
     14//usage:     "\n    -n  Fail rather than wait"
     15
    616#include <sys/file.h>
    717#include "libbb.h"
     
    2030
    2131#if ENABLE_LONG_OPTS
    22         static const char getopt_longopts[] ALIGN1 =
     32    static const char getopt_longopts[] ALIGN1 =
    2333        "shared\0"      No_argument       "s"
    2434        "exclusive\0"   No_argument       "x"
     
    3646        fd = open(argv[0], O_RDONLY|O_NOCTTY|O_CREAT, 0666);
    3747        if (fd < 0 && errno == EISDIR)
    38                 fd = open(argv[0], O_RDONLY|O_NOCTTY);
     48            fd = open(argv[0], O_RDONLY|O_NOCTTY);
    3949        if (fd < 0)
    4050            bb_perror_msg_and_die("can't open '%s'", argv[0]);
Note: See TracChangeset for help on using the changeset viewer.