File: ud.h

package info (click to toggle)
ud 0.7.1-13
  • links: PTS
  • area: main
  • in suites: woody
  • size: 276 kB
  • ctags: 38
  • sloc: ansic: 704; sh: 522; makefile: 69
file content (37 lines) | stat: -rw-r--r-- 652 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef HEADER_FILE_INCLUDED
#define HEADER_FILE_INCLUDED

#include <stdio.h>		/* size_t */
#include <sys/utsname.h>

/* How long are the records in utsname? */

#ifndef UTSLEN

#ifdef SYS_NMLN
#define UTSLEN SYS_NMLN
#else
#define UTSLEN 384		/* What the hell should one use as default?
				   Biggest SYS_NMLN I've seen was 257 */
#endif /* SYS_NMLN */
#endif /* UTSLEN */

/* max lenght of  kern_vers  */
#define VERSLEN 3*UTSLEN

/* max lenght of a line buffer used to parse the record file */
#define LINELEN 2048


struct logentry
  {
    float uptime;
    char kern_vers[VERSLEN];
  };

struct record
  {
    struct logentry le[3];
  };

#endif