Leah Neukirchen 
							
						 
					 
					
						
						
							
						
						f013c6e48d 
					 
					
						
						
							
							os/date: check the second argument truthy, not the third.  
						
						
						
						
					 
					
						2020-03-18 23:45:02 +01:00 
						 
				 
			
				
					
						
							
							
								Leah Neukirchen 
							
						 
					 
					
						
						
							
						
						6e67899401 
					 
					
						
						
							
							Add os/readlink.  
						
						
						
						
					 
					
						2020-03-18 20:05:48 +01:00 
						 
				 
			
				
					
						
							
							
								Leah Neukirchen 
							
						 
					 
					
						
						
							
						
						381dd1ce98 
					 
					
						
						
							
							Add os/lstat.  
						
						
						
						
					 
					
						2020-03-18 20:05:48 +01:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						4a05b4556e 
					 
					
						
						
							
							Fix MSVC build warning.  
						
						
						
						
					 
					
						2020-03-14 12:02:31 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						c074615550 
					 
					
						
						
							
							Revert to 9 char permission strings on windows.  
						
						
						
						
					 
					
						2020-03-14 12:00:11 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						bac2b74b3d 
					 
					
						
						
							
							Add os/chmod.  
						
						
						
						
					 
					
						2020-03-14 11:57:04 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						0600b32908 
					 
					
						
						
							
							Fix docstring for os/cd -  Fixes   #307  
						
						
						
						
					 
					
						2020-03-13 15:01:48 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						a68ee7aac6 
					 
					
						
						
							
							Update Copyright 2020.  
						
						
						
						
					 
					
						2020-01-12 10:50:37 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						b54d9725d8 
					 
					
						
						
							
							Fix MSVC errors.  
						
						
						
						
					 
					
						2020-01-12 10:18:03 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						3d40c95e80 
					 
					
						
						
							
							Add ability to Janet signal from C functions.  
						
						... 
						
						
						
						While C functions are not re-entrant, signaling from a C function
can be used to implement async returns. When resuming a fiber that
signalled from within a C function, the fiber is started after the
instruction that emitted the signal. The resume argument is used
as the return result from the c function. 
						
						
					 
					
						2020-01-10 20:44:16 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						ed5027db5d 
					 
					
						
						
							
							Address  #242  
						
						... 
						
						
						
						Synchronize critical sections in setenv/getenv/environ. 
						
						
					 
					
						2020-01-06 22:41:18 -06:00 
						 
				 
			
				
					
						
							
							
								Andrew Chambers 
							
						 
					 
					
						
						
							
						
						ec1a06cfaf 
					 
					
						
						
							
							Optional default value for os/getenv.  
						
						
						
						
					 
					
						2020-01-07 11:21:05 +13:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						6c7f376410 
					 
					
						
						
							
							Try to remove potential overflow bugs.  
						
						... 
						
						
						
						Also make integer to size_t casts explicit rather than relying on
int32_t * sizeof(x) = size_t. This is kind of a personal preference for
this problem. 
						
						
					 
					
						2020-01-02 22:08:17 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						9dd152dc28 
					 
					
						
						
							
							Add features.h for feature test macros.  
						
						... 
						
						
						
						Because we use an amalgated build, feature
test macros should be set in a single file that
is included before any other headers, and is placed
at the top of the amalgamated build. 
						
						
					 
					
						2019-12-30 19:06:15 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						3492ed6d88 
					 
					
						
						
							
							Windows installer pulls version from interpreter.  
						
						... 
						
						
						
						This should make version updates simpler. Also
try an make installer write to ProgramFiles instead
of ProgramFiles (x86) for 64 bit build. 
						
						
					 
					
						2019-12-19 13:18:46 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						2b2c1ff917 
					 
					
						
						
							
							Get rid of warning on BSDs.  
						
						
						
						
					 
					
						2019-12-15 16:04:43 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						c7912249b2 
					 
					
						
						
							
							Typo in #ifdef.  
						
						
						
						
					 
					
						2019-12-15 15:56:26 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						b8004555ea 
					 
					
						
						
							
							Start cleaning up defines in janet.h  
						
						
						
						
					 
					
						2019-12-15 15:41:58 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						58ff7f0788 
					 
					
						
						
							
							BSD os.c fix with arc4random.  
						
						
						
						
					 
					
						2019-12-15 12:47:12 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						f1afc5b0b4 
					 
					
						
						
							
							Address  #214  
						
						... 
						
						
						
						This adds several common patterns, which are defined in
boot.janet. This essentially gives more primitive patterns
to work with out of the box.
Fix build when JANET_REDUCED_OS is defined. 
						
						
					 
					
						2019-12-14 20:39:14 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						36b2f27873 
					 
					
						
						
							
							Merge branch 'master' into threads-3  
						
						
						
						
					 
					
						2019-12-12 17:07:03 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						b8e02afd1a 
					 
					
						
						
							
							Improve error messages in os.c and jpm  
						
						... 
						
						
						
						In os/* functions, show failed path name. In jpm, indicate
a permission issue if we can't stat the file. 
						
						
					 
					
						2019-12-12 03:20:20 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						38f7e256d0 
					 
					
						
						
							
							Port threads code to Windows API  
						
						... 
						
						
						
						Can run demo in examples/threads.janet 
						
						
					 
					
						2019-12-10 20:32:41 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						600bed9f6d 
					 
					
						
						
							
							Merge pull request  #209  from andrewchambers/cryptorand2  
						
						... 
						
						
						
						Add os/cryptorand. 
						
						
					 
					
						2019-12-03 19:12:32 -06:00 
						 
				 
			
				
					
						
							
							
								Andrew Chambers 
							
						 
					 
					
						
						
							
						
						0ac5b243c7 
					 
					
						
						
							
							Add os/cryptorand.  
						
						
						
						
					 
					
						2019-12-04 14:02:37 +13:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						ac85fca8a1 
					 
					
						
						
							
							Fix warnings for appveyor.  
						
						
						
						
					 
					
						2019-12-02 09:07:49 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						4e4cdb6356 
					 
					
						
						
							
							Run formatter.  
						
						
						
						
					 
					
						2019-11-28 23:26:11 -05:00 
						 
				 
			
				
					
						
							
							
								Andrew Chambers 
							
						 
					 
					
						
						
							
						
						07db4c530e 
					 
					
						
						
							
							Add os/environ.  
						
						
						
						
					 
					
						2019-11-28 19:00:52 +13:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						719f7ba0c4 
					 
					
						
						
							
							Default to UTC for date.  
						
						
						
						
					 
					
						2019-11-09 16:57:21 -06:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						a18a251d16 
					 
					
						
						
							
							Address some issues found in lgtm  
						
						... 
						
						
						
						Caught a few potentially issues with overflows, as well as use of
unsafe function localtime. 
						
						
					 
					
						2019-10-10 22:59:43 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						7bee204390 
					 
					
						
						
							
							Fix installer.  
						
						
						
						
					 
					
						2019-09-22 13:29:34 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						81789a6930 
					 
					
						
						
							
							Add wasm to architectures returned by os/arch.  
						
						
						
						
					 
					
						2019-08-18 10:08:52 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						28fb2403d9 
					 
					
						
						
							
							Add os/arch to core.  
						
						... 
						
						
						
						Also allow setting custom keywords for compiled
os name and architecture name. 
						
						
					 
					
						2019-08-18 10:00:04 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						d6a1faa380 
					 
					
						
						
							
							Typos.  
						
						
						
						
					 
					
						2019-07-27 11:36:48 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						3c133bd677 
					 
					
						
						
							
							Add more values for (os/which)  
						
						... 
						
						
						
						Some bsd flavors. 
						
						
					 
					
						2019-07-27 11:29:40 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						dfe00fee94 
					 
					
						
						
							
							Building standalone binaries on linux working.  
						
						... 
						
						
						
						Mostly changes to cook and jpm. Also some
code for file associations in the windows installer, and
adding the :linux value from os/which (instead of just :posix). 
						
						
					 
					
						2019-07-26 22:43:54 -05:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						5689ef1af1 
					 
					
						
						
							
							Add keyword flag utility for modules.  
						
						
						
						
					 
					
						2019-06-12 12:05:48 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						d9a4ef05ac 
					 
					
						
						
							
							Update docstring format.  
						
						... 
						
						
						
						Also add :p flag to fiber/new, change implemntation of with-dyns, and
make meson build install static library by default. 
						
						
					 
					
						2019-06-08 10:30:43 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						e697cc3811 
					 
					
						
						
							
							Make os/execute not leak memory on panics.  
						
						... 
						
						
						
						Since many calls can panic, it's best
to only use scratch memory for temporary values. 
						
						
					 
					
						2019-06-01 23:38:10 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						e1bd24c2ab 
					 
					
						
						
							
							Make os/execute on windows closer to posix version  
						
						
						
						
					 
					
						2019-05-31 15:02:44 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						1f30ea66e9 
					 
					
						
						
							
							Windows quick fix.  
						
						
						
						
					 
					
						2019-05-31 13:45:39 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						c43aaf8986 
					 
					
						
						
							
							More work to os/execute.  
						
						... 
						
						
						
						Use environ when eflag not given. Also try to escape windows
command line strings correctly. 
						
						
					 
					
						2019-05-31 13:44:14 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						d005ac6888 
					 
					
						
						
							
							Appease MSVC.  
						
						
						
						
					 
					
						2019-05-30 19:21:11 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						7fdb098a20 
					 
					
						
						
							
							Add process.h.  
						
						
						
						
					 
					
						2019-05-30 19:14:54 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						a4a200e037 
					 
					
						
						
							
							Spawn.h not found in windows.  
						
						
						
						
					 
					
						2019-05-30 19:13:13 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						46950a8cb3 
					 
					
						
						
							
							Convert os/execute to use posix_spawn.  
						
						
						
						
					 
					
						2019-05-30 18:40:10 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						fd2d706e33 
					 
					
						
						
							
							Add os/remove.  
						
						
						
						
					 
					
						2019-05-29 11:31:19 -04:00 
						 
				 
			
				
					
						
							
							
								Andrew Chambers 
							
						 
					 
					
						
						
							
						
						ec43afb426 
					 
					
						
						
							
							Minor documentation fixes.  
						
						
						
						
					 
					
						2019-05-17 20:58:06 +12:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						73b81e0253 
					 
					
						
						
							
							Fix os/date doc typo.  
						
						
						
						
					 
					
						2019-04-23 22:43:51 -04:00 
						 
				 
			
				
					
						
							
							
								Calvin Rose 
							
						 
					 
					
						
						
							
						
						ee35786c8f 
					 
					
						
						
							
							semicolon  
						
						
						
						
					 
					
						2019-04-05 14:45:45 -04:00