mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-24 15:12:32 +01:00
The file funcs.h is removed. A new file osdep.h is created to hold the definition for all osdep_*c files. The files .c has been adjusted to include the right header files, removing funcs.h, including osdep.h. Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
31 lines
516 B
C
31 lines
516 B
C
|
|
#include <sys/utsname.h>
|
|
|
|
#include <WINGs/WUtil.h>
|
|
|
|
#include "wconfig.h"
|
|
#include "osdep.h"
|
|
|
|
Bool GetCommandForPid(int pid, char ***argv, int *argc)
|
|
{
|
|
static int notified = 0;
|
|
|
|
if (!notified) {
|
|
struct utsname un;
|
|
|
|
if (uname(&un) != -1) {
|
|
wwarning(_("%s is not implemented on this platform; "
|
|
"tell wmaker-dev@windowmaker.org you are running "
|
|
"%s release %s version %s"), __FUNCTION__,
|
|
un.sysname, un.release, un.version);
|
|
notified = 1;
|
|
}
|
|
|
|
}
|
|
|
|
*argv = NULL;
|
|
*argc = 0;
|
|
|
|
return False;
|
|
}
|