Age | Commit message (Collapse) | Author |
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
USG was defined for a handful of pre-SVR4 systems based on
AT&T's Unix System Group releases in the old imake configs
and has never been defined in X11R7 modular builds.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
SGI's End of Support Life for Irix was December 2013
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Found by using:
codespell --builtin clear,rare,usage,informal,code,names
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: David Macek <david.macek.0@gmail.com>
|
|
xload uses a windows-specific interface to obtain the load average, as
getloadavg() is not implemented for Cygwin.
Including some versions of windows.h after including X11 headers can lead to
compilation errors as 'Status' is used as a type name in Xlib.h, but a parameter
or memeber name in Windows headers.
Include X11/Xwindows.h rather than windows.h directly, which wraps it in a such
way to avoid any conflict with X11 headers.
In file included from /usr/include/w32api/minwindef.h:146:0,
from /usr/include/w32api/windef.h:8,
from /usr/include/w32api/windows.h:69,
from /jhbuild/checkout/xorg/app/xload/get_load.c:53:
/usr/include/w32api/winnt.h:4951:15: error: two or more data types in declaration specifiers
DWORD64 Status;
^
In file included from /usr/include/w32api/minwindef.h:146:0,
from /usr/include/w32api/windef.h:8,
from /usr/include/w32api/windows.h:69,
from /jhbuild/checkout/xorg/app/xload/get_load.c:53:
/usr/include/w32api/winnt.h:5090:13: error: two or more data types in declaration specifiers
DWORD Status;
^
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Only fall back to complex, platform specific code if the simpler,
more portable option isn't found by configure.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
This just provided a declaration for lseek() for some of the ancient
Unix variants that were missing it in system headers.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
The simpler interface (based on the BSD function) has been in libc since
Solaris 7, and avoids datasize bugs like the previous fix, so might as
well use it.
Purge all the other ancient Solaris & SunOS support variants as well.
This does mean if you want to keep running xload on a Sun OS version from
before 1998 you will need to use a branch of xload from before 2012 (such
as the one included in those old releases).
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Fixes garbage data & crashes when built as a 64-bit binary on
Solaris SPARC, since the high 32-bits was being filled with randomness.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Arvind Umrao <arvind.umrao@oracle.com>
Reviewed-by: Jay Cotton <jay.cotton@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Silences a gcc warning
Raises the minimum version of xproto needed to build to 7.0.17
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
get_load.c: In function ‘InitLoadPoint’:
get_load.c:74:6: warning: old-style function definition
get_load.c: In function ‘GetLoadPoint’:
get_load.c:92:6: warning: old-style function definition
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Tested-by: Jon TURNEY <jon.turney@dronecode.org.uk>
|
|
Fixes compilation errors due to recent w32api <winspool.h>, which is
not needed to compile xload.
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Reviewed-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Tested-by: Jon TURNEY <jon.turney@dronecode.org.uk>
|
|
Ansify some functions with K&R definitions.
|
|
https://bugs.freedesktop.org/show_bug.cgi?id=9017
|
|
X.Org Bugzilla #12534 <https://bugs.freedesktop.org/show_bug.cgi?id=12534>
Patch #11704 <https://bugs.freedesktop.org/attachment.cgi?id=11704>
|
|
support for xload & memleak (Robert Millan)
|
|
32-bit and 64-bit kernels, and without group kmem. Add #include
"config.h" for modularization
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|