HP3000-L Archives

June 2002, Week 3

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Matthew Perdue <[log in to unmask]>
Reply To:
Matthew Perdue <[log in to unmask]>
Date:
Fri, 21 Jun 2002 15:32:51 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (142 lines)
Hope this helps.
---CONTENTS OF /usr/include/time.h

#ifndef _TIME_INCLUDED
#  define _TIME_INCLUDED

#ifdef _MPE_THREADS
#include <thdwrp.h>
#endif

#  ifndef NULL
#    define NULL 0
#  endif
#  ifdef _POSIX_SOURCE
#    define CLOCKS_PER_SEC 1000
#  else
#    define CLOCKS_PER_SEC 1000000
#  endif
#  define CLK_TCK CLOCKS_PER_SEC
#  ifndef _CLOCK_T
#    define _CLOCK_T
     typedef unsigned long clock_t;
#  endif /* _CLOCK_T */
#  ifndef _TIME_T
#    define _TIME_T
     typedef long time_t;
#  endif /* _TIME_T */
#  ifndef _SIZE_T
#    define _SIZE_T
     typedef unsigned int size_t;
#  endif /* _SIZE_T */
   struct tm {
        int     tm_sec;
        int     tm_min;
        int     tm_hour;
        int     tm_mday;
        int     tm_mon;
        int     tm_year;
        int     tm_wday;
        int     tm_yday;
        int     tm_isdst;
   };
#  ifdef __STDC__
     extern char *asctime(const struct tm *);
     extern clock_t clock(void);
     extern char *ctime(const time_t *);
     extern double difftime(time_t, time_t);
     extern struct tm *gmtime(const time_t *);
     extern struct tm *localtime(const time_t *);
     extern time_t mktime(struct tm *);
     extern size_t strftime(char *, size_t, const char *, const struct
tm *);
     extern time_t time(time_t *); /* conflict w/ name in kernel */
#  else /* __STDC__ */
     extern double difftime();
     extern time_t mktime();
     extern time_t time();
     extern char *asctime();
     extern char *ctime();
     extern struct tm *gmtime();
     extern struct tm *localtime();
     extern size_t strftime();
     extern clock_t clock();
#  endif /* __STDC__ */
#  if defined(_MPEXL_SOURCE) || defined(_POSIX_SOURCE)
#    ifdef __STDC__
       extern void tzset(void);
#    else /* __STDC__ */
       extern void tzset();
#    endif /* __STDC__ */
     extern char *tzname[];
     extern long timezone;
     extern int daylight;
#  endif /* _MPEXL_SOURCE || _POSIX_SOURCE */
#  if defined (_SOCKET_SOURCE) || defined(_POSIX_SOURCE)
     struct timeval {
          unsigned long   tv_sec;         /* seconds */
          long            tv_usec;        /* and microseconds */
     };
     struct timezone {
          int     tz_minuteswest;         /* minutes west of Greenwich
*/
          int     tz_dsttime;             /* type of dst correction */
     };
#  endif /* _SOCKET_SOURCE  || _POSIX_SOURCE */
#endif /* _TIME_INCLUDED */

---CONTENTS OF /usr/include/sys/times.h

#ifndef _TIMES_INCLUDED
#  define _TIMES_INCLUDED

#ifdef _MPE_THREADS
#include <thdwrp.h>
#endif

#  ifndef _TIME_T
#    define _TIME_T
     typedef long time_t;
#  endif /* _TIME_T */

#  ifdef _POSIX_SOURCE
#    ifndef _CLOCK_T
#      define _CLOCK_T
       typedef unsigned long clock_t;
#    endif /* _CLOCK_T */
     struct tms {
             clock_t  tms_utime;         /* user time */
             clock_t  tms_stime;         /* system time */
             clock_t  tms_cutime;        /* user time, children */
             clock_t  tms_cstime;        /* system time, children */
     };
#    ifdef __STDC__
       extern clock_t times(struct tms *buffer);
#    else
       extern clock_t times();
#    endif
#else
     struct tms {
             time_t  tms_utime;          /* user time */
             time_t  tms_stime;          /* system time */
             time_t  tms_cutime;         /* user time, children */
             time_t  tms_cstime;         /* system time, children */
     };
#  endif /* _POSIX_SOURCE */
#endif /* _TIMES_INCLUDED */

Mark Wonsil wrote:
>
> I am doing a port (TO MPE!) on Invent3K and I am missing the sys/time.h
> file.  I know this is one of those includes that can be found in the libbsd
> library on Jazz.  This file is a compressed tar.  I thought it would already
> be in an archive (.a) file format but it is individual files.  I do not have
> the rights to extract to /usr/include.  I am sure someone has already
> skinned this cat.  Is there a libbsd.a somewhere on Invent3K already?  I
> could copy it or set up a link to use it if there is.  Thanks in advance.
>
> Mark Wonsil

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2