This commit is contained in:
albert
2003-02-09 07:27:16 +00:00
parent 3d111f943c
commit b8e27a1ecf
5 changed files with 31 additions and 17 deletions

View File

@ -1,5 +1,7 @@
_3_1_5 {
global:
__cyg_profile_func_enter; __cyg_profile_func_exit; main;
readproc; readproctab; ps_readproc; look_up_our_self; escape_command;
escape_str; escape_strlist;
openproc; closeproc;

View File

@ -2,7 +2,7 @@
* Copyright (c) 1995 Martin Schulze <joey@infodrom.north.de>
* Ammended by cblake to only export the function symbol.
*
* Modified by Albert Cahalan
* Modified by Albert Cahalan, ????-2003
*
* Redistributable under the terms of the
* GNU Library General Public License; see COPYING
@ -31,14 +31,13 @@ void display_version(void) {
#define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z)
int linux_version_code = 0;
int linux_version_code;
static void init_Linux_version(void) __attribute__((constructor));
static void init_Linux_version(void) {
static struct utsname uts;
int x = 0, y = 0, z = 0; /* cleared in case sscanf() < 3 */
if (linux_version_code) return;
if (uname(&uts) == -1) /* failure implies impending death */
exit(1);
if (sscanf(uts.release, "%d.%d.%d", &x, &y, &z) < 3)