This file is indexed.

/usr/share/splint/lib/linux.h is in splint-data 3.1.2.dfsg1-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
/*
** linux.h
*/

/*
** Based on Linux Standard Base Specification 1.0.0 
** http://www.linuxbase.org/spec/gLSB/gLSB/libc-ddefs.html
*/

/*

Data Definitions for libc

dirent.h
*/

typedef struct __dirstream DIR;

/* Not in LSB: based on RedHat 7.0: */

struct dirent {
#ifndef __USE_FILE_OFFSET64
    __ino_t d_ino;
    __off_t d_off;
#else
    __ino64_t d_ino;
    __off64_t d_off;
#endif
  unsigned short int d_reclen;
  unsigned char d_type;
  char d_name[256];		/* We must not include limits.h! */
} ; 

/*@i43 struct dirent not in LSB spec
       why doesn't alphasort64 use struct dirent64's?
*/

int acct (/*@null@*/ const char *filename) 
   /*:statusreturn@*/
   /*@modifies systemState@*/ ;

int alphasort (const struct dirent **a, const struct dirent **b) /*@*/ ;
int alphasort64(const struct dirent **a, const struct dirent **b) /*@*/ ; 

/*
ftw.h
*/

typedef int (*__ftw_func_t) (char *__filename, struct stat * __status,
			     int __flag);

typedef int (*__ftw64_func_t) (char *__filename, struct stat64 * __status,
			       int __flag);

typedef int (*__nftw_func_t) (char *__filename, struct stat * __status,
			      int __flag, struct FTW * __info);

typedef int (*__nftw64_func_t) (char *__filename, struct stat64 * __status,
				int __flag, struct FTW * __info);

/* 
glob.h
*/

typedef struct
{
  __size_t gl_pathc;
  char **gl_pathv;
  __size_t gl_offs;
  int gl_flags;
  void (*gl_closedir) ();
  struct dirent64 *(*gl_readdir) ();
  void *(*gl_opendir) ();
  int (*gl_lstat) ();
  int (*gl_stat) ();
}
glob_t;

typedef struct
{
  __size_t gl_pathc;
  char **gl_pathv;
  __size_t gl_offs;
  int gl_flags;
  void (*gl_closedir) ();
  struct dirent64 *(*gl_readdir) ();
  void *(*gl_opendir) ();
  int (*gl_lstat) ();
  int (*gl_stat) ();
}
glob64_t;
 
/*
grp.h
*/

struct group
{
  char *gr_name;
  char *gr_passwd;
  __gid_t gr_gid;
  char **gr_mem;
}
;
 
/*
iconv.h
*/

typedef void *iconv_t;
 
/*
inttypes.h
*/

typedef lldiv_t imaxdiv_t;

typedef long long intmax_t;

typedef unsigned long long uintmax_t;
 
/*
locale.h
*/

struct lconv
{
  char *decimal_point;
  char *thousands_sep;
  char *grouping;
  char *int_curr_symbol;
  char *currency_symbol;
  char *mon_decimal_point;
  char *mon_thousands_sep;
  char *mon_grouping;
  char *positive_sign;
  char *negative_sign;
  char int_frac_digits;
  char frac_digits;
  char p_cs_precedes;
  char p_sep_by_space;
  char n_cs_precedes;
  char n_sep_by_space;
  char p_sign_posn;
  char n_sign_posn;
}
;
 
/*
nl_types.h
*/

typedef void *nl_catd;

typedef int nl_item;
 
/*
pwd.h
*/

struct passwd
{
  char *pw_name;
  char *pw_passwd;
  __uid_t pw_uid;
  __gid_t pw_gid;
  char *pw_gecos;
  char *pw_dir;
  char *pw_shell;
}
;
 
/*
regex.h
*/

typedef unsigned long reg_syntax_t;

typedef struct re_pattern_buffer
{
  unsigned char *buffer;
  unsigned long allocated;
  unsigned long used;
  reg_syntax_t syntax;
  char *fastmap;
  char *translate;
  size_t re_nsub;
  unsigned int can_be_null;
  unsigned int regs_allocated;
  unsigned int fastmap_accurate;
  unsigned int no_sub;
  unsigned int not_bol;
  unsigned int not_eol;
  unsigned int newline_anchor;
}
regex_t;

typedef int regoff_t;

typedef struct
{
  regoff_t rm_so;
  regoff_t rm_eo;
}
regmatch_t;
 
/*
search.h
*/

typedef enum
{
  FIND,
  ENTER
}
ACTION;

typedef enum
{
  preorder,
  postorder,
  endorder,
  leaf
}
VISIT;

typedef struct entry
{
  char *key;
  void *data;
}
ENTRY;

typedef void (*__action_fn_t) (void *__nodep, VISIT __value, int __level);
 
/*
setjmp.h
*/

typedef int __jmp_buf;

typedef struct __jmp_buf_tag
{
  __jmp_buf __jmpbuf;
  int __mask_was_saved;
  __sigset_t __saved_mask;
}
jmp_buf;

typedef jmp_buf sigjmp_buf;
 
/*
signal.h
*/

typedef union sigval
{
  int sival_int;
  void *sival_ptr;
}
sigval_t;

typedef void (*__sighandler_t) ();

struct sigevent
{
  sigval_t sigev_value;
  int sigev_signo;
  int sigev_notify;
}
;

typedef struct
{
  unsigned long __val[1];
}
__sigset_t;

typedef __sigset_t sigset_t;

struct sigaction;

typedef struct
{
  int si_band;
  int si_fd;
  struct _sifields;
  struct _sigpoll;
}
siginfo_t;

struct sigaltstack
{
  void *ss_sp;
  int ss_flags;
  size_t ss_size;
}
;

struct sigstack
{
  void *ss_sp;
  int ss_onstack;
}
;
 
/*
stdio.h
*/

typedef struct _IO_FILE FILE;

typedef __off_t fpos_t;

typedef __off64_t fpos64_t;
 
/*
stdlib.h
*/

typedef struct
{
  long long quot;
  long long rem;
}
lldiv_t;

typedef struct
{
  int quot;
  int rem;
}
div_t;

typedef struct
{
  long quot;
  long rem;
}
ldiv_t;

typedef int (*__compar_fn_t) ();
 
/*
sys/sem.h
*/

struct sembuf
{
  short sem_num;
  short sem_op;
  short sem_flg;
}
;
 
/*
sys/socket.h
*/

typedef unsigned short sa_family_t;

typedef unsigned int socklen_t;

struct sockaddr
{
  sa_family_t sa_family;
  char sa_data[1];
}
;

struct msghdr
{
  void *msg_name;
  socklen_t msg_namelen;
  struct iovec *msg_iov;
  size_t msg_iovlen;
  void *msg_control;
  size_t msg_controllen;
  int msg_flags;
}
;
 
/*
sys/times.h
*/

struct tms
{
  clock_t tms_utime;
  clock_t tms_stime;
  clock_t tms_cutime;
  clock_t tms_cstime;
}
;
 
/*
sys/utsname.h
*/

struct utsname
{
  char sysname[1];
  char nodename[1];
  char release[1];
  char version[1];
  char machine[1];
  char __domainname[1];
}
;
 
/*
sys/wait.h
*/

typedef enum
{
  P_ALL,
  P_PID,
  P_PGID
}
idtype_t;
 
/*
time.h
*/

typedef long __clock_t;

struct timespec
{
  long tv_sec;
  long tv_nsec;
}
;

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;
  long __tm_gmtoff;
  char *__tm_zone;
}
;

typedef __clock_t clock_t;

typedef __time_t time_t;
 
int adjtime (/*@notnull@*/ const struct timeval *delta, /*@null@*/ struct timeval *olddelta)
     /*@warn superuser "Only super-user processes may call adjtime."@*/
     /*:statusreturn@*/ 
     /*@modifies systemState@*/ ;

/*
unistd.h
*/

typedef __ssize_t ssize_t;

typedef __pid_t pid_t;

typedef __off_t off_t;

extern /*@observer@*/ /*@nullterminated@*/ /*@null@*/ 
char *bindtextdomain (/*@null@*/ /*@nullterminated@*/ const char *domainname,
		      /*@null@*/ /*@nullterminated@*/ const char *dirname) /*@*/ ;
/* LSB doesn't specify: taken from
   http://www.hgmp.mrc.ac.uk/cgi-bin/man.cgi?section=3C&topic=bindtextdomain
*/
 

/*
utime.h
*/

struct utimbuf
{
  __time_t actime;
  __time_t modtime;
}
;
 
/*
wchar.h
*/

typedef long wchar_t;

typedef unsigned int wint_t;

typedef struct
{
  int count;
  wint_t value;
}
mbstate_t;
 
/*
wctype.h
*/

typedef unsigned long wctype_t;

typedef __int32_t *wctrans_t;
 
/*
wordexp.h
*/

typedef struct
{
  int we_wordc;
  char **we_wordv;
  int we_offs;
}
wordexp_t;
 
/*
timex.h
*/

struct timex {
  int modes; /* mode selector */
  long offset; /* time offset (usec) */
  long freq; /* frequency offset (scaled ppm) */
  long maxerror; /* maximum error (usec) */
  long esterror; /* estimated error (usec) */
  int status; /* clock command/status */
  long constant; /* pll time constant */
  long precision; /* clock precision (usec) (read only) */
  long tolerance; /* clock frequency tolerance (ppm) (read only) */
  struct timeval time; /* current time (read only) */
  long tick; /* usecs between clock ticks */

};

/*@constant int ADJ_OFFSET@*/
/*@constant int ADJ_FREQUENCY@*/
/*@constant int ADJ_MAXERROR@*/
/*@constant int ADJ_ESTERROR@*/
/*@constant int ADJ_STATUS@*/
/*@constant int ADJ_TIMECONST@*/
/*@constant int ADJ_TICK@*/
/*@constant int ADJ_OFFSET_SINGLESHOT@*/

int adjtimex (/*@notnull@*/ struct timex *buf)
     /*@warn superuser "Only super-user processes may call adjtimex unless the modes field is 0."@*/
     /*:statusreturn@*/
     /*@modifies systemState@*/ ;

/*
termios.h
*/

typedef unsigned char	cc_t;
typedef unsigned int	speed_t;
typedef unsigned int	tcflag_t;

struct termios
{
  tcflag_t c_iflag;		/* input mode flags */
  tcflag_t c_oflag;		/* output mode flags */
  tcflag_t c_cflag;		/* control mode flags */
  tcflag_t c_lflag;		/* local mode flags */
  cc_t c_cc[NCCS];		/* control characters */
};

int cfmakeraw (/*@out@*/ struct termios *termios_p)
     /*:statusreturn@*/ ; 

int cfsetspeed(struct termios *t, speedt speed)
     /*:statusreturn@*/ ;
   
/*
** Built in
*/

/*@exits@*/ void __assert_fail (/*@notnull@*/ const char *assertion,
				/*@notnull@*/ const char *file,
				unsigned int line,
				/*@null@*/ const char *function) 
     /*@modifies stderr@*/;