Changeset 80

Show
Ignore:
Timestamp:
06.10.2002 20:00:03 (6 years ago)
Author:
tibob
Message:

Solaris port

Location:
trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/HISTORY

    r75 r80  
    44- pid configurable through command line [RC, looking at Loic Tortay's patch for pid configurable through configfile] 
    55- various minor fixes [LT, RC] 
     6- Sould work under solaris now 
    67 
    78Version 0.11.5pre2 
  • trunk/source/config.h.in

    r66 r80  
    6666#undef __OS_OSF1__ 
    6767 
     68#ifdef __OS_SUNOS__ 
     69#define LONGINTFORMAT "llu" 
     70#else 
     71#define LONGINTFORMAT "qu" 
     72#endif 
     73 
    6874/* Timezone : Local Time, Coordinated Universal Time */ 
    6975typedef enum {UTC, local} ipfm_timezone; 
  • trunk/source/data.c

    r66 r80  
    22  data.c - counts the data exchanged 
    33  
    4   (c) 1999-2001 Robert Cheramy <tibob@via.ecp.fr> 
     4  (c) 1999-2002 Robert Cheramy <tibob@via.ecp.fr> 
    55  (c) 2000      Samuel Hocevar <sam@via.ecp.fr> 
    66  (c) 1999      Andres Krapf <dae@via.ecp.fr> 
    77  (c) 2001      Loïc Tortay & IN2P3 Computing Center <tortay@cc.ipin2p3.fr> 
    88 
    9   200010xx : sam   : - attempt to create directory if error opening logfile. 
    10                      - optional clearing of data 
    11   200010xx : tibob : optional append to logfile 
     9  200010 : sam   : - attempt to create directory if error opening logfile. 
     10                   - optional clearing of data 
     11  200010 : tibob : optional append to logfile 
     12  200210 : tibob : fix for Solaris 
    1213 
    1314*/ 
     
    303304    if ((NULL != he) && (strlen(he->h_name) <= 34) && 
    304305        (strlen(he->h_name) > 0)) { 
    305       snprintf(pFormatedData, BufLen, "%-35s%15qu%15qu%15qu\n", 
     306      snprintf(pFormatedData, BufLen, "%-35s%15" LONGINTFORMAT "%15" LONGINTFORMAT "%15" LONGINTFORMAT "\n", 
    306307               he->h_name, 
    307308               pData->in,  
     
    315316    char *res; 
    316317    res = inet_ntoa(addr); 
    317       snprintf(pFormatedData, BufLen, "%-35s%15qu%15qu%15qu\n", 
     318      snprintf(pFormatedData, BufLen, "%-35s%15" LONGINTFORMAT "%15" LONGINTFORMAT "%15" LONGINTFORMAT "\n", 
    318319             res, 
    319320             pData->in,