Changeset 4020

Show
Ignore:
Timestamp:
04/02/06 23:33:40 (3 years ago)
Author:
morris
Message:

Use wi_process_os_*() functions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/config.h.in

    r4015 r4020  
    7878#undef WR_BUGREPORT 
    7979 
    80 /* Host CPU */ 
    81 #undef WR_CPU 
    82  
    8380/* Protocol version */ 
    8481#undef WR_PROTOCOL_VERSION 
  • wire/trunk/configure

    r4018 r4020  
    13791379cat >>confdefs.h <<\_ACEOF 
    13801380#define WR_BUGREPORT "axel@zankasoftware.com" 
    1381 _ACEOF 
    1382  
    1383  
    1384 cat >>confdefs.h <<_ACEOF 
    1385 #define WR_CPU "$host_cpu" 
    13861381_ACEOF 
    13871382 
  • wire/trunk/configure.in

    r4018 r4020  
    1212AC_DEFINE([WR_PROTOCOL_VERSION], ["1.1"], [Protocol version]) 
    1313AC_DEFINE([WR_BUGREPORT], ["AC_PACKAGE_BUGREPORT"], [Maintainer's email address]) 
    14 AC_DEFINE_UNQUOTED([WR_CPU], ["$host_cpu"], [Host CPU]) 
    1514 
    1615# These are used in the Makefile 
  • wire/trunk/wire/main.c

    r3940 r4020  
    160160        } 
    161161         
     162        wr_printf_prefix(WI_STR("%@"), wr_client_version_string); 
     163         
    162164        wi_release(pool); 
    163165        pool = wi_pool_init(wi_pool_alloc()); 
  • wire/trunk/wire/version.c

    r3741 r4020  
    2929#include "config.h" 
    3030 
    31 #include <sys/utsname.h> 
    3231#include <openssl/ssl.h> 
    3332#include <readline/readline.h> 
     
    4241 
    4342void wr_init_version(void) { 
    44         struct utsname          name; 
    45          
    46         uname(&name); 
    47          
    4843        wr_version_string                       = wi_string_init_with_cstring(wi_string_alloc(), WR_VERSION); 
    4944        wr_protocol_version_string      = wi_string_init_with_cstring(wi_string_alloc(), WR_PROTOCOL_VERSION); 
    50         wr_client_version_string        = wi_string_init_with_format(wi_string_alloc(), WI_STR("Wire/%@ (%s; %s; %s) (%s; readline %s)"), 
     45        wr_client_version_string        = wi_string_init_with_format(wi_string_alloc(), WI_STR("Wire/%@ (%@; %@; %@) (%s; readline %s)"), 
    5146                wr_version_string, 
    52                 name.sysname
    53                 name.release
    54                 WR_CPU
     47                wi_process_os_name(wi_process())
     48                wi_process_os_release(wi_process())
     49                wi_process_os_arch(wi_process())
    5550                SSLeay_version(SSLEAY_VERSION), 
    5651                rl_library_version);