This file is indexed.

/usr/include/scilab/HistoryManager.h is in scilab-include 5.5.2-2ubuntu3.

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
/*
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2007-2008 - INRIA - Allan CORNET
* Copyright (C) 2010 - DIGITEO - Allan CORNET
*
* This file must be used under the terms of the CeCILL.
* This source file is licensed as described in the file COPYING, which
* you should have received as part of this distribution.  The terms
* are also available at
* http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
*
*/

/*------------------------------------------------------------------------*/
#ifndef __HISTORYMANAGER_C_H__
#define __HISTORYMANAGER_C_H__
#include "BOOL.h"
#include "dynlib_history_manager.h"
/*------------------------------------------------------------------------*/
#ifdef __cplusplus
extern "C" {
#endif
    /*------------------------------------------------------------------------*/
    /**
    * get history manager state
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL historyIsEnabled(void);

    /**
    * append lines to History manager
    * @param array of string
    * @param size of the array of string
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL appendLinesToScilabHistory(char **lines_, int numberoflines);
    // Note it is lines_ because line is a keyword for term stuff

    /**
    * add a line to History manager
    * @param a line to add
    * line isn't added if it is the same as previous (FALSE)
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL appendLineToScilabHistory(char *line);

    /**
    * Display history
    */
    HISTORY_MANAGER_IMPEXP void displayScilabHistory(void);

    /**
    * save history in a file
    * @param a filename if NULL saves in default filename
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL writeScilabHistoryToFile(char *filename);

    /**
    * load history from a file
    * @param a filename if NULL load from default filename
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL loadScilabHistoryFromFile(char *filename);

    /**
    * set filename of history
    * @param filename of history
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL setFilenameScilabHistory(char *filename);

    /**
    * get filename of history
    * @return a filename
    */
    HISTORY_MANAGER_IMPEXP char *getFilenameScilabHistory(void);

    /**
    * set default filename of history
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL setDefaultFilenameScilabHistory(void);

    /**
    * get info about history file was or not truncated (too big)
    * @return TRUE (truncated) or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL isScilabHistoryTruncated(void);

    /**
    * reset history manager
    */
    HISTORY_MANAGER_IMPEXP void resetScilabHistory(void);

    /**
    * Get all lines in history
    * @return an array of string
    */
    HISTORY_MANAGER_IMPEXP char **getAllLinesOfScilabHistory(void);

    /**
    * Get numbers of lines in history
    * size of array returned by getAllLinesOfScilabHistory
    * @return int
    */
    HISTORY_MANAGER_IMPEXP int getSizeAllLinesOfScilabHistory(void);

    /**
    * set new token to search in history
    * @param token (a string)
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL setSearchedTokenInScilabHistory(char *token);

    /**
    * reset search in history
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL resetSearchedTokenInScilabHistory(void);

    /**
    * get token searched in history
    * @return token (a string)
    */
    HISTORY_MANAGER_IMPEXP char *getSearchedTokenInScilabHistory(void);

    /**
    * Get the previous line in Scilab history
    * @return a line or NULL
    * after an appendLine iterator go to end
    */
    HISTORY_MANAGER_IMPEXP char *getPreviousLineInScilabHistory(void);

    /**
    * Get the next line in Scilab history
    * @return a line or NULL
    * after an appendLine iterator go to end
    */
    HISTORY_MANAGER_IMPEXP char *getNextLineInScilabHistory(void);

    /**
    * Get numbers of lines in history
    * @return number of lines
    */
    HISTORY_MANAGER_IMPEXP int getNumberOfLinesInScilabHistory(void);

    /**
    * set consecutive duplicate lines are added
    * @param doit (TRUE or FALSE)
    */
    HISTORY_MANAGER_IMPEXP void setSaveConsecutiveDuplicateLinesInScilabHistory(BOOL doit);

    /**
    * indicate if consecutive duplicate lines are added
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL getSaveConsecutiveDuplicateLinesInScilabHistory(void);

    /**
    * Set after how many lines history is saved
    * @param number between 0 and Max
    * default value is 0 (disabled)
    */
    HISTORY_MANAGER_IMPEXP void setAfterHowManyLinesScilabHistoryIsSaved(int num);

    /**
    * Get after how many lines history is saved
    * @return number between 0 and Max
    * default value is 0 (disabled)
    */
    HISTORY_MANAGER_IMPEXP int getAfterHowManyLinesScilabHistoryIsSaved(void);

    /**
    * Get the Nth Line in history
    * @param N
    * @return the Nth Line
    */
    HISTORY_MANAGER_IMPEXP char *getNthLineInScilabHistory(int N);

    /**
    * delete the Nth Line in history
    * @param N
    * @return TRUE or FALSE
    */
    HISTORY_MANAGER_IMPEXP BOOL deleteNthLineScilabHistory(int N);

    /**
    * get number of lines of history
    * @return a number >= 0
    */
    HISTORY_MANAGER_IMPEXP int getSizeScilabHistory(void);

    /**
    */
    HISTORY_MANAGER_IMPEXP BOOL setSizeMaxScilabHistory(int nbLinesMax);

    /**
    */
    int getSizeMaxScilabHistory(void);


    /*------------------------------------------------------------------------*/
#ifdef __cplusplus
}
#endif
/*------------------------------------------------------------------------*/
#endif /* __HISTORYMANAGER_C_H__ */
/*------------------------------------------------------------------------*/