2 * Copyright 2006, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
6 * Axel Dörfler, axeld@pinc-software.de
14 extern const char *__progname
;
16 const char *_getprogname(void);
27 setprogname(const char *programName
)
29 const char *slash
= strrchr(programName
, '/');
31 __progname
= slash
+ 1;
33 __progname
= programName
;
36 #pragma weak getprogname=_getprogname