Skip to content

Commit 760c7a3

Browse files
committed
Move rmmod.c to rmmod_u.c; Add a function toolbox for libtoolbox
1 parent e0186ac commit 760c7a3

18 files changed

+825
-837
lines changed

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ Files
4747
rm.c,
4848
rm_u.c,
4949
rmdir*,
50-
rmmod*,
50+
rmmod_u.c,
5151
rotatefb*,
5252
runcon*,
5353
schedtop_u.c,
54-
sendevent*,
54+
sendevent_u.c,
5555
setconsole_u.c,
5656
setenforce_u.c,
5757
setkey*,

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ endif
4646

4747
ifdef SHARED_OBJECT
4848
CFLAGS += -fPIC
49-
ifdef DARWIN
5049
CFLAGS += -D_SHARED
50+
ifdef DARWIN
5151
LDFLAGS += --shared
5252
else
5353
ifeq ($(SHARED_OBJECT),noexec)
@@ -279,6 +279,7 @@ TRAN_SRC = \
279279
ps.c \
280280
readtty.c \
281281
renice.c \
282+
rmmod.c \
282283
route.c \
283284
schedtop.c \
284285
sendevent.c \

dmesg_u.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/* dmesg - toolbox
2+
Copyright 2007-2015 PC GO Ld.
3+
Copyright 2015 libdll.so
4+
5+
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
6+
7+
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
8+
*/
9+
110
#if defined __GNU__ && defined __MACH__
211
#include <stdio.h>
312
extern int cat_main(int, char **);

du_u.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ int du_main(int argc, char *argv[]) {
139139
int64_t totalblocks;
140140
int ftsoptions, listfiles;
141141
int depth;
142-
int Hflag, Lflag, aflag, ch, cflag, dflag, gkmflag, nflag, rval, sflag;
142+
int Hflag, Lflag, aflag, ch, cflag, dflag, gkmflag, rval, sflag;
143143
char *noargv[2];
144144

145145
Hflag = Lflag = aflag = cflag = dflag = gkmflag = sflag = 0;

0 commit comments

Comments
 (0)