diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-12 11:23:36 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-12 11:23:36 +0000 |
commit | 34e8f6a7ac6a88304e89725d7286f1ff4405a70c (patch) | |
tree | d400e7861f5c72b316567279f9bef4599310120a /coreutils | |
parent | 13afb2acdae8a63c0d7851e97de592f9a4996eea (diff) | |
download | busybox-w32-34e8f6a7ac6a88304e89725d7286f1ff4405a70c.tar.gz busybox-w32-34e8f6a7ac6a88304e89725d7286f1ff4405a70c.tar.bz2 busybox-w32-34e8f6a7ac6a88304e89725d7286f1ff4405a70c.zip |
*: add FAST_FUNC markers
function old new delta
getopt_mk_fifo_nod 73 70 -3
mv_main 505 501 -4
cp_mv_stat2 79 73 -6
cp_main 266 257 -9
cp_mv_stat 22 10 -12
------------------------------------------------------------------------------
(add/remove: 0/1 grow/shrink: 1/5 up/down: 46/-80) Total: -34 bytes
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/libcoreutils/coreutils.h | 6 | ||||
-rw-r--r-- | coreutils/libcoreutils/cp_mv_stat.c | 4 | ||||
-rw-r--r-- | coreutils/libcoreutils/getopt_mk_fifo_nod.c | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/coreutils/libcoreutils/coreutils.h b/coreutils/libcoreutils/coreutils.h index be9af1227..89cd9532f 100644 --- a/coreutils/libcoreutils/coreutils.h +++ b/coreutils/libcoreutils/coreutils.h | |||
@@ -12,10 +12,10 @@ | |||
12 | 12 | ||
13 | typedef int (*stat_func)(const char *fn, struct stat *ps); | 13 | typedef int (*stat_func)(const char *fn, struct stat *ps); |
14 | 14 | ||
15 | int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf); | 15 | int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) FAST_FUNC; |
16 | int cp_mv_stat(const char *fn, struct stat *fn_stat); | 16 | int cp_mv_stat(const char *fn, struct stat *fn_stat) FAST_FUNC; |
17 | 17 | ||
18 | mode_t getopt_mk_fifo_nod(char **argv); | 18 | mode_t getopt_mk_fifo_nod(char **argv) FAST_FUNC; |
19 | 19 | ||
20 | #if __GNUC_PREREQ(4,1) | 20 | #if __GNUC_PREREQ(4,1) |
21 | # pragma GCC visibility pop | 21 | # pragma GCC visibility pop |
diff --git a/coreutils/libcoreutils/cp_mv_stat.c b/coreutils/libcoreutils/cp_mv_stat.c index ff7c27399..0fd467c30 100644 --- a/coreutils/libcoreutils/cp_mv_stat.c +++ b/coreutils/libcoreutils/cp_mv_stat.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include "libbb.h" | 23 | #include "libbb.h" |
24 | #include "coreutils.h" | 24 | #include "coreutils.h" |
25 | 25 | ||
26 | int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) | 26 | int FAST_FUNC cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) |
27 | { | 27 | { |
28 | if (sf(fn, fn_stat) < 0) { | 28 | if (sf(fn, fn_stat) < 0) { |
29 | if (errno != ENOENT) { | 29 | if (errno != ENOENT) { |
@@ -44,7 +44,7 @@ int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) | |||
44 | return 1; | 44 | return 1; |
45 | } | 45 | } |
46 | 46 | ||
47 | int cp_mv_stat(const char *fn, struct stat *fn_stat) | 47 | int FAST_FUNC cp_mv_stat(const char *fn, struct stat *fn_stat) |
48 | { | 48 | { |
49 | return cp_mv_stat2(fn, fn_stat, stat); | 49 | return cp_mv_stat2(fn, fn_stat, stat); |
50 | } | 50 | } |
diff --git a/coreutils/libcoreutils/getopt_mk_fifo_nod.c b/coreutils/libcoreutils/getopt_mk_fifo_nod.c index 32e55a56b..ba3222e46 100644 --- a/coreutils/libcoreutils/getopt_mk_fifo_nod.c +++ b/coreutils/libcoreutils/getopt_mk_fifo_nod.c | |||
@@ -23,7 +23,7 @@ | |||
23 | #include "libbb.h" | 23 | #include "libbb.h" |
24 | #include "coreutils.h" | 24 | #include "coreutils.h" |
25 | 25 | ||
26 | mode_t getopt_mk_fifo_nod(char **argv) | 26 | mode_t FAST_FUNC getopt_mk_fifo_nod(char **argv) |
27 | { | 27 | { |
28 | mode_t mode = 0666; | 28 | mode_t mode = 0666; |
29 | char *smode = NULL; | 29 | char *smode = NULL; |