Michael Camilleri 
							
						 
					 
					
						
						
							
						
						4b5a2a14c0 
					 
					
						
						
							
							Update year in copyright disclaimer to 2025  
						
						
						
						
					 
					
						2025-03-04 11:24:09 +09:00 
						 
				 
			
				
					
						
							
							
								peteee 
							
						 
					 
					
						
						
							
						
						ed63987fd1 
					 
					
						
						
							
							use fileno()  
						
						... 
						
						
						
						Should use fileno() instead of direct 
						
						
					 
					
						2024-12-14 07:17:28 -05:00 
						 
				 
			
				
					
						
							
							
								peteee 
							
						 
					 
					
						
						
							
						
						ff173047f4 
					 
					
						
						
							
							file/open: check if directory  
						
						... 
						
						
						
						Adds fstat() directory test after fopen(), which can return non-NULL when passed a directory name on Linux 
						
						
					 
					
						2024-12-13 00:20:44 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						3894f4021a 
					 
					
						
						
							
							Update copyright date.  
						
						
						
						
					 
					
						2024-09-29 16:07:24 -05:00 
						 
				 
			
				
					
						
							
							
								Philip Nelson 
							
						 
					 
					
						
						
							
						
						0b51ab157d 
					 
					
						
						
							
							Fix typos  
						
						
						
						
					 
					
						2024-06-16 06:59:27 -07:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						fe348187cc 
					 
					
						
						
							
							Be explicit about 64 bit offset on windows.  
						
						
						
						
					 
					
						2024-05-26 11:26:12 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						634429cf61 
					 
					
						
						
							
							Merge branch 'locales'  
						
						
						
						
					 
					
						2024-05-19 17:05:49 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						e00a461c26 
					 
					
						
						
							
							Add optional buffer-size to file/open.  
						
						... 
						
						
						
						This calls setvbuf to change FILE buffering. A goal is
to be able to use the existing file/* functions for blocking
IO analogous to `read` and `write` system calls. 
						
						
					 
					
						2023-09-23 09:40:17 -05:00 
						 
				 
			
				
					
						
							
							
								sogaiu 
							
						 
					 
					
						
						
							
						
						f9233ef90b 
					 
					
						
						
							
							Add fopen reference to file/open docstring  
						
						
						
						
					 
					
						2023-07-23 18:39:20 +09:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						9a2897e741 
					 
					
						
						
							
							Run through astyle with manual corrections  
						
						
						
						
					 
					
						2023-06-08 13:01:49 -05:00 
						 
				 
			
				
					
						
							
							
								sogaiu 
							
						 
					 
					
						
						
							
						
						3c523d66e9 
					 
					
						
						
							
							Add file/tell  
						
						
						
						
					 
					
						2023-02-21 20:19:17 +09:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						d1eba60ba8 
					 
					
						
						
							
							Add separate sandbox flag for file/temp  
						
						... 
						
						
						
						Doesn't really impart (much) file systtem information when used, and
can be used for a lot of things where file functions are used to process
in a stream. 
						
						
					 
					
						2023-02-09 08:57:53 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						b032d94877 
					 
					
						
						
							
							Add sandboxing API.  
						
						... 
						
						
						
						The sandboxing API is meant to make janet a bit more attractive
for certain application embedding use cases. The sandboxing API
puts limits on what system resources the interpreter can access. 
						
						
					 
					
						2023-02-06 09:05:57 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						55af6ce834 
					 
					
						
						
							
							Fix write after free with printing to files.  
						
						
						
						
					 
					
						2023-02-04 13:36:30 -06:00 
						 
				 
			
				
					
						
							
							
								alectroemel 
							
						 
					 
					
						
						
							
						
						1acf4c3ab7 
					 
					
						
						
							
							add int32_t type for file flags, just like header  
						
						... 
						
						
						
						Signed-off-by: alectroemel <alectroemel@hotmail.com >
Signed-off-by: alectroemel <alec@mirusresearch.com > 
						
						
					 
					
						2023-01-22 10:24:46 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						a0f40042cb 
					 
					
						
						
							
							Update copyright year.  
						
						
						
						
					 
					
						2023-01-07 15:03:35 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						f4bbcdcbc8 
					 
					
						
						
							
							Get rid of disabled tracing.  #1005  
						
						
						
						
					 
					
						2022-08-02 12:19:22 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						79c375b1af 
					 
					
						
						
							
							Address  #1005  - Fix janet_call stack clobbering on dirty stack.  
						
						
						
						
					 
					
						2022-08-02 12:13:56 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						8d0e6ed32f 
					 
					
						
						
							
							Fix function handlers for :out and :err.  
						
						... 
						
						
						
						They were not properly handled for formatting functions. 
						
						
					 
					
						2022-07-02 21:11:05 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						fe7d35171f 
					 
					
						
						
							
							Remove file/popen - address  #974  
						
						
						
						
					 
					
						2022-05-05 18:33:34 -05:00 
						 
				 
			
				
					
						
							
							
								John Gabriele 
							
						 
					 
					
						
						
							
						
						c80587868e 
					 
					
						
						
							
							io.c docstrings  
						
						... 
						
						
						
						Added some backticks around code in docstrings to distinguish them from prose. 
						
						
					 
					
						2022-04-17 20:07:05 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						3715d7a184 
					 
					
						
						
							
							Auto update copyright date.  
						
						
						
						
					 
					
						2022-03-21 18:22:59 -05:00 
						 
				 
			
				
					
						
							
							
								Michael Camilleri 
							
						 
					 
					
						
						
							
						
						4e263b8c39 
					 
					
						
						
							
							Support using functions with :out dynamic binding  
						
						
						
						
					 
					
						2021-11-13 01:42:44 +09:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						7e5f226480 
					 
					
						
						
							
							Put source mapping info in stack traces.  
						
						
						
						
					 
					
						2021-07-29 21:29:08 -05:00 
						 
				 
			
				
					
						
							
							
								sogaiu 
							
						 
					 
					
						
						
							
						
						d0575e4087 
					 
					
						
						
							
							Update io.c with new style core function declarations.  
						
						
						
						
					 
					
						2021-07-26 21:39:13 +09:00 
						 
				 
			
				
					
						
							
							
								Andrew Chambers 
							
						 
					 
					
						
						
							
						
						f4c9064b79 
					 
					
						
						
							
							Add config support for custom allocators.  
						
						
						
						
					 
					
						2021-03-23 23:00:48 +13:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						771b0d0ab1 
					 
					
						
						
							
							Version bump.  
						
						
						
						
					 
					
						2021-02-09 20:32:09 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						c9ea3ac304 
					 
					
						
						
							
							Address  #618  - clarify file/open docs.  
						
						
						
						
					 
					
						2021-01-31 08:39:57 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						462e74ef87 
					 
					
						
						
							
							Add os/proc-close to close all pipes associated with a subprocess.  
						
						... 
						
						
						
						This will not leak handles until the GC runs in most use cases. 
						
						
					 
					
						2021-01-16 15:11:07 -06:00 
						 
				 
			
				
					
						
							
							
								sogaiu 
							
						 
					 
					
						
						
							
						
						33c9395d79 
					 
					
						
						
							
							Tweak file docs  
						
						
						
						
					 
					
						2021-01-14 08:33:04 +09:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						61cca10cf6 
					 
					
						
						
							
							Allow iterating through the properties of core abstract types.  
						
						
						
						
					 
					
						2021-01-11 23:14:07 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						d457aa5951 
					 
					
						
						
							
							Deprecate file/popen.  
						
						... 
						
						
						
						os/spawn is the prefered way of creating a subprocess and
communicating with it. 
						
						
					 
					
						2020-12-30 10:22:45 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						1092013c2b 
					 
					
						
						
							
							Merge branch 'master' into ev  
						
						
						
						
					 
					
						2020-11-07 14:36:25 -06:00 
						 
				 
			
				
					
						
							
							
								Matthew Carter 
							
						 
					 
					
						
						
							
						
						4dffd662f0 
					 
					
						
						
							
							Fix function doc to match that of C POPEN  
						
						... 
						
						
						
						It may be misleading to some user to believe it is taking a path to a
file, when it is executing an arbitrary shell command for the first argument. 
						
						
					 
					
						2020-11-03 20:52:02 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						95f4bd8e23 
					 
					
						
						
							
							Merge branch 'master' into ev  
						
						
						
						
					 
					
						2020-09-13 11:24:27 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						d3147b661b 
					 
					
						
						
							
							Add :pipe to os/spawn for piping to subprocess.  
						
						... 
						
						
						
						Similar to Python's subprocess.PIPE, this creates and manages pipes
automatically for the caller. 
						
						
					 
					
						2020-09-12 19:48:12 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						babfe50550 
					 
					
						
						
							
							Merge branch 'master' into ev  
						
						... 
						
						
						
						Also add poll implementation for ev. 
						
						
					 
					
						2020-09-07 12:52:50 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						e7fca0051e 
					 
					
						
						
							
							Add :a option to os/execute, and allow redirecting stdio.  
						
						... 
						
						
						
						This should help cover a number of common cases for
use of subprocesses. This should also eventually work well
with the ev branch via 
						
						
					 
					
						2020-09-01 20:06:35 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						6273e56886 
					 
					
						
						
							
							Add janet_getjfile to C API.  
						
						
						
						
					 
					
						2020-08-29 17:36:14 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						a31e079f93 
					 
					
						
						
							
							Fix import macro to not coerce everything to string.  
						
						
						
						
					 
					
						2020-08-27 08:19:41 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						30522bbf7d 
					 
					
						
						
							
							Merge branch 'master' into ev  
						
						
						
						
					 
					
						2020-08-16 17:52:36 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						7b42ed66f2 
					 
					
						
						
							
							Add xprint, xprin, xprintf, and xprinf.  
						
						
						
						
					 
					
						2020-08-09 09:30:58 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						1213990b7d 
					 
					
						
						
							
							Merge branch 'master' into ev  
						
						
						
						
					 
					
						2020-08-07 19:51:37 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						c3af30d520 
					 
					
						
						
							
							Fix broken links in README.md  
						
						
						
						
					 
					
						2020-08-07 19:48:06 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						0403e306ed 
					 
					
						
						
							
							Silence warnings from some compilers.  
						
						
						
						
					 
					
						2020-07-26 08:48:22 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						409a8a3a43 
					 
					
						
						
							
							Fix   #452  - Bad file marshal  
						
						... 
						
						
						
						We forgot a call to janet_marshal_abstract, which corrupted the output. 
						
						
					 
					
						2020-07-25 08:09:22 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						2b36ed967c 
					 
					
						
						
							
							Address some windows issues.  
						
						
						
						
					 
					
						2020-07-03 20:13:49 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						617ec7f565 
					 
					
						
						
							
							Threading improvements.  
						
						... 
						
						
						
						- Add thread/exit to kill the current thread.
- Add global lock aroung custom getline and add atexit handler
- to prevent any possible issues when exiting program.
- Allow sending stderr, stdout, and stdin over thread. 
						
						
					 
					
						2020-07-03 16:28:07 -05:00 
						 
				 
			
				
					
						
							
							
								Matthew Carter 
							
						 
					 
					
						
						
							
						
						ee94828355 
					 
					
						
						
							
							Fix for double free on fclose due to GC not knowing it failed  
						
						
						
						
					 
					
						2020-05-28 15:35:09 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						e013381e72 
					 
					
						
						
							
							Conditionally ignore pclose as well as popen.  
						
						
						
						
					 
					
						2020-05-10 21:06:52 -05:00