Skip to content

Commit

Permalink
Merge branch 'master' of http://github.com/illumos/illumos-gate into …
Browse files Browse the repository at this point in the history
…gcc/upgrade
  • Loading branch information
richlowe committed Apr 14, 2012
2 parents 39ca499 + b2510a4 commit 7f8f693
Show file tree
Hide file tree
Showing 8 changed files with 236 additions and 62 deletions.
4 changes: 2 additions & 2 deletions usr/src/cmd/beadm/beadm.c
Expand Up @@ -133,8 +133,8 @@ usage(void)
"\tbeadm destroy [-F] beName@snapshot \n"
"\tbeadm list [[-a] | [-d] [-s]] [-H] [beName]\n"
"\tbeadm mount [-s ro|rw] beName [mountpoint]\n"
"\tbeadm unmount [-f] beName\n"
"\tbeadm umount [-f] beName\n"
"\tbeadm unmount [-f] beName | mountpoint\n"
"\tbeadm umount [-f] beName | mountpoint\n"
"\tbeadm rename origBeName newBeName\n"
"\tbeadm rollback beName snapshot\n"
"\tbeadm rollback beName@snapshot\n"));
Expand Down
24 changes: 5 additions & 19 deletions usr/src/cmd/sgs/mcs/common/main.c
Expand Up @@ -20,6 +20,8 @@
*/

/*
* Copyright 2012 Nexenta Systems, Inc. All rights reserved.
*
* Copyright (c) 1988 AT&T
* All Rights Reserved
*
Expand All @@ -43,15 +45,14 @@ static size_t optbufsz = OPTUNIT;
static void usage(int);
static void sigexit(int);
static int setup_sectname(char *, int);
static void check_swap();
static void queue(int, char *);

int
main(int argc, char ** argv, char ** envp)
{
const char *opt;
char *str;
int error_count = 0, num_sect = 0, errflag = 0, Dflag = 0;
int error_count = 0, num_sect = 0, errflag = 0;
int c, i, my_prog;
Cmd_Info *cmd_info;

Expand All @@ -72,10 +73,10 @@ main(int argc, char ** argv, char ** envp)

if (strcmp(str, "mcs") == 0) {
my_prog = MCS;
opt = "Da:cdn:pVz?";
opt = "a:cdn:pVz?";
} else if (strcmp(str, "strip") == 0) {
my_prog = STRIP;
opt = "DlxV?";
opt = "lxV?";
} else
exit(FAILURE);

Expand Down Expand Up @@ -108,10 +109,6 @@ main(int argc, char ** argv, char ** envp)

while ((c = getopt(argc, argv, (char *)opt)) != EOF) {
switch (c) {
case 'D':
optcnt++;
Dflag++;
break;
case 'a':
optcnt++;
queue(ACT_APPEND, optarg);
Expand Down Expand Up @@ -169,9 +166,6 @@ main(int argc, char ** argv, char ** envp)
exit(FAILURE);
}

if (Dflag)
check_swap();

/*
* strip command may not take any options.
*/
Expand Down Expand Up @@ -235,8 +229,6 @@ main(int argc, char ** argv, char ** envp)
}
}

if (Dflag)
check_swap();
mcs_exit(error_count);
/*NOTREACHED*/
return (0);
Expand Down Expand Up @@ -372,9 +364,3 @@ sectcmp(char *name)
}
return (1);
}

static void
check_swap()
{
(void) system("/usr/sbin/swap -s");
}
4 changes: 4 additions & 0 deletions usr/src/cmd/wall/Makefile
Expand Up @@ -21,13 +21,17 @@
# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Copyright 2012 Joyent, Inc. All Rights Reserved.
#

PROG= wall

include ../Makefile.cmd

FILEMODE = 02555

LDLIBS += -lzonecfg -lcontract

.KEEP_STATE:

all: $(PROG)
Expand Down

0 comments on commit 7f8f693

Please sign in to comment.