Home
last modified time | relevance | path

Searched refs:history_file (Results 1 – 25 of 454) sorted by relevance

12345678910>>...19

/dports/lang/ruby26/ruby-2.6.9/lib/irb/ext/
H A Dsave-history.rb50 def history_file method
55 def history_file=(hist)
70 if history_file = IRB.conf[:HISTORY_FILE]
71 history_file = File.expand_path(history_file)
73 history_file = IRB.rc_file("_history") unless history_file
74 if File.exist?(history_file)
75 open(history_file) do |f|
84 history_file = File.expand_path(history_file)
86 history_file = IRB.rc_file("_history") unless history_file
91 File.chmod(0600, history_file)
[all …]
/dports/deskutils/clipit/clipit-1.4.2/src/
H A Dhistory.c104 if (history_file) { in read_history()
108 if (fread(&size, 4, 1, history_file) != 1) in read_history()
161 fclose(history_file); in read_history()
180 if (history_file) { in save_history()
186 fwrite(&write_val, 4, 1, history_file); in save_history()
198 fwrite(&write_val, 4, 1, history_file); in save_history()
199 fputs(item->str, history_file); in save_history()
201 fwrite(&write_val, 4, 1, history_file); in save_history()
209 fwrite(&end, 4, 1, history_file); in save_history()
210 fwrite(&end, 4, 1, history_file); in save_history()
[all …]
/dports/net/libyang/libyang-1.0.240/tools/lint/
H A Dconfiguration.c72 char *yl_dir, *history_file; in load_config() local
77 history_file = malloc(strlen(yl_dir) + 9); in load_config()
78 if (!history_file) { in load_config()
84 sprintf(history_file, "%s/history", yl_dir); in load_config()
91 free(history_file); in load_config()
98 char *yl_dir, *history_file; in store_config() local
104 history_file = malloc(strlen(yl_dir) + 9); in store_config()
105 if (!history_file) { in store_config()
111 sprintf(history_file, "%s/history", yl_dir); in store_config()
112 if (linenoiseHistorySave(history_file)) { in store_config()
[all …]
/dports/science/py-ruffus/ruffus-2.8.3/ruffus/test/
H A Dtest_task_file_dependencies.py14 history_file = ':memory:' variable
15 history_file = False variable
46 job_history = open_job_history(history_file)
91 history_file),
104 history_file),
113 history_file),
130 history_file),
137 history_file),
146 history_file),
165 history_file),
[all …]
/dports/deskutils/parcellite/parcellite-1.2.1/src/
H A Dhistory.c75 if (history_file) { in read_history_old()
103 fclose(history_file); in read_history_old()
120 if (history_file) { in save_history_old()
135 fclose(history_file); in save_history_old()
181 if (history_file) { in read_history()
192 fclose(history_file); in read_history()
230 fclose(history_file); in read_history()
272 if (history_file) { in save_history()
276 fclose(history_file); in save_history()
294 fwrite(&len,4,1,history_file); in save_history()
[all …]
/dports/japanese/ddskk/ddskk-16.2/bayesian/
H A Dbskk419 if db.save( history_file, history_file_bak )
442 def mode_serve( history_file, server, port )
443 check_type( history_file, String )
445 history_file_bak = history_file + ".BAK"
448 if File.exist?( history_file ) # read history
449 f = open( history_file )
456 STDERR.puts( "#{history_file} is invalid." )
538 -f history_file use history_file as a history_file.
549 history_file = nil
586 if history_file == nil
[all …]
/dports/net/quagga/quagga-1.2.4/vtysh/
H A Dvtysh_main.c45 char history_file[MAXPATHLEN]; variable
188 append_history(1,history_file); in vtysh_rl_gets()
329 snprintf(history_file, sizeof(history_file), "%s/.history_quagga", homedir); in main()
330 if (read_history (history_file) != 0) in main()
334 fp = open (history_file, O_CREAT | O_EXCL, S_IRUSR | S_IWUSR); in main()
338 read_history (history_file); in main()
358 append_history (1, history_file); in main()
377 append_history (1, history_file); in main()
400 history_truncate_file(history_file,1000); in main()
434 history_truncate_file(history_file,1000); in main()
/dports/sysutils/munin-common/munin-2.0.67/node/t/
H A Dmunin_node_configure_history.t11 my ($fh, $history_file) = tempfile( UNLINK => 1);
49 history_file => '/usr/share/munin/plugins/plugins.history',
62 history_file => '/foo/blort',
70 history_file => '/foo/blort',
77 history_file => $history_file,
90 history_file => $history_file,
/dports/sysutils/munin-master/munin-2.0.67/node/t/
H A Dmunin_node_configure_history.t11 my ($fh, $history_file) = tempfile( UNLINK => 1);
49 history_file => '/usr/share/munin/plugins/plugins.history',
62 history_file => '/foo/blort',
70 history_file => '/foo/blort',
77 history_file => $history_file,
90 history_file => $history_file,
/dports/sysutils/munin-node/munin-2.0.67/node/t/
H A Dmunin_node_configure_history.t11 my ($fh, $history_file) = tempfile( UNLINK => 1);
49 history_file => '/usr/share/munin/plugins/plugins.history',
62 history_file => '/foo/blort',
70 history_file => '/foo/blort',
77 history_file => $history_file,
90 history_file => $history_file,
/dports/devel/py-ptpython/ptpython-3.0.20/ptpython/entry_points/
H A Drun_ptpython.py130 history_file = os.path.join(data_dir, "history")
133 if namespace.history_file:
135 history_file = os.path.expanduser(namespace.history_file)
143 % history_file
145 history_file = legacy_history_file
153 return config_file, history_file
159 config_file, history_file = get_config_and_history_file(a)
209 history_filename=history_file,
/dports/games/wolfpack/empire-4.4.1/src/client/
H A Dmain.c93 char *history_file = NULL; in main() local
113 history_file = optarg; in main()
194 if (!restricted && !history_file) in main()
195 history_file = ".empire_history"; in main()
196 if (history_file) in main()
197 history_file = fnameat(history_file, udir); in main()
202 if (play(sock, history_file) < 0) in main()
/dports/devel/py-jep/jep-3.9.1/src/main/python/jep/
H A Dconsole.py31 history_file = None variable
83 history_file = os.path.join(os.path.expanduser('~'), '.jep')
84 if not os.path.exists(history_file):
85 readline.write_history_file(history_file)
87 readline.read_history_file(history_file)
147 readline.write_history_file(history_file)
/dports/www/mitmproxy/mitmproxy-7.0.4/mitmproxy/addons/
H A Dcommand_history.py24 def history_file(self) -> pathlib.Path: member in CommandHistory
34 if ctx.options.command_history and self.history_file.is_file():
35 self.history = self.history_file.read_text().splitlines()
43 self.history_file.write_text(history_str)
55 with self.history_file.open("a") as f:
69 if self.history_file.exists():
71 self.history_file.unlink()
/dports/news/suck/suck-4.3.4/
H A Dchkhistory_db.c105 do_debug("Opening history database: %s\n", master->history_file); in chkhistory()
108 if(open_history(master->history_file) != TRUE) { in chkhistory()
109 error_log(ERRLOG_REPORT, chkh_phrases[0], master->history_file, NULL); in chkhistory()
158 int open_history(const char *history_file) { in open_history() argument
164 if(dbminit(history_file) >= 0) { in open_history()
182 retval = dbzinit(history_file); in open_history()
186 if((db = dbm_open(history_file, O_RDONLY, 0)) != NULL) { in open_history()
191 if((dbf = gdbm_open(history_file, 1024, GDBM_READER,0,0)) != NULL) { in open_history()
/dports/news/suck-cnews/suck-4.3.4/
H A Dchkhistory_db.c105 do_debug("Opening history database: %s\n", master->history_file); in chkhistory()
108 if(open_history(master->history_file) != TRUE) { in chkhistory()
109 error_log(ERRLOG_REPORT, chkh_phrases[0], master->history_file, NULL); in chkhistory()
158 int open_history(const char *history_file) { in open_history() argument
164 if(dbminit(history_file) >= 0) { in open_history()
182 retval = dbzinit(history_file); in open_history()
186 if((db = dbm_open(history_file, O_RDONLY, 0)) != NULL) { in open_history()
191 if((dbf = gdbm_open(history_file, 1024, GDBM_READER,0,0)) != NULL) { in open_history()
/dports/lang/librep/librep_0.92.7/src/
H A Dreadline.c46 static char *history_file = NULL; variable
235history_file=(char*) malloc((uint) strlen(getenv("HOME")) + (uint) strlen("/.rep_history") +2); in rep_dl_init()
236 if (history_file) { in rep_dl_init()
237 sprintf(history_file, "%s/.rep_history",getenv("HOME")); in rep_dl_init()
238 read_history(history_file); in rep_dl_init()
254 if (history_file) { in rep_dl_kill()
255 write_history(history_file); in rep_dl_kill()
256 free(history_file); in rep_dl_kill()
/dports/sysutils/munin-common/munin-2.0.67/node/lib/Munin/Node/Configure/
H A DHistory.pm17 my $history_file = delete $opts{history_file} or die "A history file must be specified\n";
21 history_file => $history_file,
39 open(my $HIST, '<', $self->{history_file})
/dports/sysutils/munin-node/munin-2.0.67/node/lib/Munin/Node/Configure/
H A DHistory.pm17 my $history_file = delete $opts{history_file} or die "A history file must be specified\n";
21 history_file => $history_file,
39 open(my $HIST, '<', $self->{history_file})
/dports/sysutils/munin-master/munin-2.0.67/node/lib/Munin/Node/Configure/
H A DHistory.pm17 my $history_file = delete $opts{history_file} or die "A history file must be specified\n";
21 history_file => $history_file,
39 open(my $HIST, '<', $self->{history_file})
/dports/net/bird2/bird-2.0.8/client/
H A Dbirdc.c33 static char *history_file; variable
149 history_file = malloc(strlen(homedir) + sizeof(HISTORY)); in history_init()
150 if (!history_file) in history_init()
153 sprintf(history_file, "%s%s", homedir, HISTORY); in history_init()
154 read_history(history_file); in history_init()
240 write_history(history_file); in cleanup()
/dports/databases/libgda5/libgda-5.2.10/tools/cmdtool/
H A Dtool-input.c46 gchar *history_file = NULL; variable
412 history_file = g_strdup (ename); in init_history()
413 sanitize_env (history_file); in init_history()
428 g_free (history_file); in init_history()
429 history_file = NULL; in init_history()
434 if (history_file) { in init_history()
436 read_history (history_file); in init_history()
471 if (!history_init_done || !history_file) in save_history()
473 res = append_history (1, file ? file : history_file); in save_history()
475 res = write_history (file ? file : history_file); in save_history()
[all …]
/dports/databases/libgda5-postgresql/libgda-5.2.10/tools/cmdtool/
H A Dtool-input.c46 gchar *history_file = NULL; variable
412 history_file = g_strdup (ename); in init_history()
413 sanitize_env (history_file); in init_history()
428 g_free (history_file); in init_history()
429 history_file = NULL; in init_history()
434 if (history_file) { in init_history()
436 read_history (history_file); in init_history()
471 if (!history_init_done || !history_file) in save_history()
473 res = append_history (1, file ? file : history_file); in save_history()
475 res = write_history (file ? file : history_file); in save_history()
[all …]
/dports/databases/libgda5-ui/libgda-5.2.10/tools/cmdtool/
H A Dtool-input.c46 gchar *history_file = NULL;
412 history_file = g_strdup (ename);
413 sanitize_env (history_file);
428 g_free (history_file);
429 history_file = NULL;
434 if (history_file) {
436 read_history (history_file);
471 if (!history_init_done || !history_file)
473 res = append_history (1, file ? file : history_file);
475 res = write_history (file ? file : history_file);
[all …]
/dports/databases/libgda5-ldap/libgda-5.2.10/tools/cmdtool/
H A Dtool-input.c46 gchar *history_file = NULL; variable
412 history_file = g_strdup (ename); in init_history()
413 sanitize_env (history_file); in init_history()
428 g_free (history_file); in init_history()
429 history_file = NULL; in init_history()
434 if (history_file) { in init_history()
436 read_history (history_file); in init_history()
471 if (!history_init_done || !history_file) in save_history()
473 res = append_history (1, file ? file : history_file); in save_history()
475 res = write_history (file ? file : history_file); in save_history()
[all …]

12345678910>>...19