This file is indexed.

/usr/include/startup-notification-1.0/libsn/sn-util.h is in libstartup-notification0-dev 0.12-4build1.

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
/* 
 * Copyright (C) 2002 Red Hat, Inc.
 * 
 * Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation
 * files (the "Software"), to deal in the Software without
 * restriction, including without limitation the rights to use, copy,
 * modify, merge, publish, distribute, sublicense, and/or sell copies
 * of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 * 
 * The above copyright notice and this permission notice shall be
 * included in all copies or substantial portions of the Software.
 * 
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */


#ifndef __SN_UTIL_H__
#define __SN_UTIL_H__

/* Guard C code in headers, while including them from C++ */
#ifdef  __cplusplus
# define SN_BEGIN_DECLS  extern "C" {
# define SN_END_DECLS    }
#else
# define SN_BEGIN_DECLS
# define SN_END_DECLS
#endif

SN_BEGIN_DECLS

typedef unsigned long sn_size_t;
typedef int           sn_bool_t;

/* Padding in vtables */
typedef void (* SnPaddingFunc) (void);
/* Free data */
typedef void (* SnFreeFunc)    (void *data);

void* sn_malloc      (sn_size_t  n_bytes);
void* sn_malloc0     (sn_size_t  n_bytes);
void* sn_realloc     (void      *mem,
                      sn_size_t  n_bytes);
void  sn_free        (void      *mem);
void* sn_try_malloc  (sn_size_t  n_bytes);
void* sn_try_realloc (void      *mem,
                      sn_size_t  n_bytes);

/* Convenience memory allocators
 */
#define sn_new(struct_type, n_structs)		\
    ((struct_type *) sn_malloc (((sn_size_t) sizeof (struct_type)) * ((sn_size_t) (n_structs))))
#define sn_new0(struct_type, n_structs)		\
    ((struct_type *) sn_malloc0 (((sn_size_t) sizeof (struct_type)) * ((sn_size_t) (n_structs))))
#define sn_renew(struct_type, mem, n_structs)	\
    ((struct_type *) sn_realloc ((mem), ((sn_size_t) sizeof (struct_type)) * ((sn_size_t) (n_structs))))


/* Memory allocation virtualization, so you can override memory
 * allocation behavior.  sn_mem_set_vtable() has to be the very first
 * libsn function called if being used
 */
typedef struct
{
  void* (*malloc)      (sn_size_t    n_bytes);
  void* (*realloc)     (void        *mem,
                        sn_size_t    n_bytes);
  void  (*free)        (void        *mem);
  /* optional */
  void* (*calloc)      (sn_size_t    n_blocks,
                        sn_size_t    n_block_bytes);
  void* (*try_malloc)  (sn_size_t    n_bytes);
  void* (*try_realloc) (void        *mem,
                        sn_size_t    n_bytes);
  SnPaddingFunc        padding1;
  SnPaddingFunc        padding2;
} SnMemVTable;

void      sn_mem_set_vtable       (SnMemVTable *vtable);
sn_bool_t sn_mem_is_system_malloc (void);

typedef sn_bool_t (* SnUtf8ValidateFunc) (const char *str,
                                          int         max_len);

void sn_set_utf8_validator (SnUtf8ValidateFunc validate_func);

SN_END_DECLS

#endif /* __SN_UTIL_H__ */