#include "applets.h"
#undef PROTOTYPES
-extern const char *applet_name;
-
#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len]
#include "applets.h"
#undef PROTOTYPES
-extern const char *applet_name;
-
#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len]
CP_INTERACTIVE = 16
};
+extern const char *applet_name;
+
#endif /* __LIBBB_H__ */
if (dest_exists) {
if (flags & CP_INTERACTIVE) {
- fprintf(stderr, "cp: overwrite `%s'? ", dest);
+ fprintf(stderr, "%s: overwrite `%s'? ", applet_name, dest);
if (!ask_confirmation())
return 0;
}
CP_INTERACTIVE = 16
};
+extern const char *applet_name;
+
#endif /* __LIBBB_H__ */
#include <sys/syslog.h>
#include "libbb.h"
-extern const char *applet_name;
-
void syslog_msg_with_name(const char *name, int facility, int pri, const char *msg)
{
openlog(name, 0, facility);
#include <stdlib.h>
#include "libbb.h"
-extern const char *applet_name;
-
extern void verror_msg(const char *s, va_list p)
{
fflush(stdout);