Changeset 2725 in MondoRescue for branches/2.2.9/mindi-busybox/coreutils/libcoreutils
- Timestamp:
- Feb 25, 2011, 9:26:54 PM (13 years ago)
- Location:
- branches/2.2.9/mindi-busybox/coreutils/libcoreutils
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mindi-busybox/coreutils/libcoreutils/Kbuild
r1765 r2725 1 # DO NOT EDIT. This file is generated from Kbuild.src 1 2 # Makefile for busybox 2 3 # 3 4 # Copyright (C) 1999-2004 by Erik Andersen <andersen@codepoet.org> 4 5 # 5 # Licensed under the GPL v2 or later, see the file LICENSE in this tarball.6 # Licensed under GPLv2 or later, see file LICENSE in this source tree. 6 7 7 8 lib-y:= 9 10 8 11 lib-$(CONFIG_MKFIFO) += getopt_mk_fifo_nod.o 9 12 lib-$(CONFIG_MKNOD) += getopt_mk_fifo_nod.o -
branches/2.2.9/mindi-busybox/coreutils/libcoreutils/coreutils.h
r1765 r2725 1 1 /* vi: set sw=4 ts=4: */ 2 2 /* 3 * Licensed under the GPL v2 or later, see the file LICENSE in this tarball.3 * Licensed under GPLv2 or later, see file LICENSE in this source tree. 4 4 */ 5 5 6 6 #ifndef COREUTILS_H 7 #define COREUTILS_H 1 7 #define COREUTILS_H 1 8 9 PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN 8 10 9 11 typedef int (*stat_func)(const char *fn, struct stat *ps); 10 12 11 int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) ;12 int cp_mv_stat(const char *fn, struct stat *fn_stat) ;13 int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) FAST_FUNC; 14 int cp_mv_stat(const char *fn, struct stat *fn_stat) FAST_FUNC; 13 15 14 mode_t getopt_mk_fifo_nod(int argc, char **argv); 16 mode_t getopt_mk_fifo_nod(char **argv) FAST_FUNC; 17 18 POP_SAVED_FUNCTION_VISIBILITY 15 19 16 20 #endif -
branches/2.2.9/mindi-busybox/coreutils/libcoreutils/cp_mv_stat.c
r1765 r2725 24 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 28 if (sf(fn, fn_stat) < 0) { 29 29 if (errno != ENOENT) { 30 bb_perror_msg("cannot stat '%s'", fn); 30 #if ENABLE_FEATURE_VERBOSE_CP_MESSAGE 31 if (errno == ENOTDIR) { 32 bb_error_msg("can't stat '%s': Path has non-directory component", fn); 33 return -1; 34 } 35 #endif 36 bb_perror_msg("can't stat '%s'", fn); 31 37 return -1; 32 38 } 33 39 return 0; 34 } else if (S_ISDIR(fn_stat->st_mode)) { 40 } 41 if (S_ISDIR(fn_stat->st_mode)) { 35 42 return 3; 36 43 } … … 38 45 } 39 46 40 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) 41 48 { 42 49 return cp_mv_stat2(fn, fn_stat, stat); -
branches/2.2.9/mindi-busybox/coreutils/libcoreutils/getopt_mk_fifo_nod.c
r1765 r2725 24 24 #include "coreutils.h" 25 25 26 mode_t getopt_mk_fifo_nod(int argc,char **argv)26 mode_t FAST_FUNC getopt_mk_fifo_nod(char **argv) 27 27 { 28 28 mode_t mode = 0666; … … 32 32 #endif 33 33 int opt; 34 opt = getopt32(argv, "m:" USE_SELINUX("Z:"), &smode USE_SELINUX(,&scontext));34 opt = getopt32(argv, "m:" IF_SELINUX("Z:"), &smode IF_SELINUX(,&scontext)); 35 35 if (opt & 1) { 36 36 if (bb_parse_mode(smode, &mode))
Note:
See TracChangeset
for help on using the changeset viewer.