Michael Brown
							
						 
						
							
								afe4e011ac
								
							 
						 
						
							Move tolower() etc to ctype.h as per ISO C 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								13d9a660ca
								
							 
						 
						
							Zeroing out memory before using it can be so important. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								d6909f65f0
								
							 
						 
						
							Actually, it's probably safer *not* to leave child processes hanging 
							
							 
							around which still hold pointers to variables belonging to our parent... 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								b6194b8cb9
								
							 
						 
						
							Note that the SIGCHLD handler could be re-entered. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								1411876e26
								
							 
						 
						
							Propagate return status code from last child to fail. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								4256b3338a
								
							 
						 
						
							Split random number generation out into core/random.c, and create the 
							
							 
							correct prototypes for srandom(), rand() and srand(). 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								f4c1e564a1
								
							 
						 
						
							vsprintf.h is gPXE-specific; move it to include/gpxe 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								73b09ecba6
								
							 
						 
						
							Use stdio.h instead of vsprintf.h 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								4e3976711d
								
							 
						 
						
							A working name resolution framework 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								8bb9f726a0
								
							 
						 
						
							When an async operation dies, orphan its children. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								6d4e37cf42
								
							 
						 
						
							Move include/malloc.h to include/gpxe/malloc.h, since everything in there 
							
							 
							is now gPXE-specific.  (The standard malloc() et al have been in stdlib.h
for a while).
Add free memory counter. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								c8b3e969a0
								
							 
						 
						
							Allow buffers to be pre-expanded on demand. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								08da93a311
								
							 
						 
						
							Reorder functions to more closely reflect the flow of control 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								35776f481c
								
							 
						 
						
							Don't always zero memory in malloc().  This saves around 2us on a 
							
							 
							full-length PKB allocation. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								0b11733b75
								
							 
						 
						
							Replacement for fetch() which operates asynchronously and identifies 
							
							 
							protocols by URI scheme. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								6601a7da6a
								
							 
						 
						
							Added async_uninit() to simplify failure paths. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								5a807994d8
								
							 
						 
						
							Add utility function to parse port from URI 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								9828181e3b
								
							 
						 
						
							Obsolete 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								544fa25928
								
							 
						 
						
							Rename e{malloc,realloc,free} to u{malloc,realloc,free}, to more obviously 
							
							 
							reflect the fact that they allocate and deallocate user memory (i.e.
things reached through a userptr_t). 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								4e20d73bb5
								
							 
						 
						
							Gave asynchronous operations approximate POSIX signal semantics.  This 
							
							 
							will enable us to cascade async operations, which is necessary in order to
properly support DNS.  (For example, an HTTP request may have to redirect
to a new location and will have to perform a new DNS lookup, so we can't
just rely on doing the name lookup at the time of parsing the initial
URL).
Anything other than HTTP is probably broken right now; I'll fix the others
up asap. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								ec75b269d3
								
							 
						 
						
							Add missing include 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								26166cf5e0
								
							 
						 
						
							Added a URI parser that should be standards conformant.  (It can certainly 
							
							 
							handle something as convoluted as
  ftp://joe:secret@insecure.org :8081/hidden/path/to?what=is#this 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								c1fd6e8dc7
								
							 
						 
						
							Once image type has been set, do not autoprobe further 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								7dc50167bb
								
							 
						 
						
							Allow load() and exec() methods to be NULL. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								b07161f397
								
							 
						 
						
							Placeholder bzImage support 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								98240d99f0
								
							 
						 
						
							Do not go past the end of the argv[] array. 
							
							 
							
This bug found by setting read and write watchpoints at NULL in bochs. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								dca369ddc3
								
							 
						 
						
							Call hide_etherboot() from startup(), rather than requiring the prefix to 
							
							 
							do it. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								c2708df14a
								
							 
						 
						
							Make shutdown functions callable by OS image's exec methods. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								beb941ed81
								
							 
						 
						
							Rename "boot" to "autoboot" 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								f11900a9c6
								
							 
						 
						
							I prefer IMAGE_XXX to XXX_IMAGE. 
							
							 
							
Add IMAGE_PXE to use the new image format framework.  "kernel pxelinux.0"
now works. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								3b77c7aa1b
								
							 
						 
						
							Hex dumps are now integrated into the DBG() framework. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								ca3db0bf11
								
							 
						 
						
							Added isspace() and made strtoul() accept whitespace, as per POSIX. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								83b7933f8a
								
							 
						 
						
							Damn it; my lovely resilient scheme falls down when you have a protocol 
							
							 
							that switches from line-oriented to byte-oriented partway through, such as
HTTP. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								996b091b50
								
							 
						 
						
							Added generic line-buffering code (a la stdio) 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								5c72d9c4e0
								
							 
						 
						
							Print image physical location in registration message. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								9952df9b52
								
							 
						 
						
							Add "dhcp" command 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								e2c0055e23
								
							 
						 
						
							Let ifmgmt.c take care of calling efree(), since it's the once which 
							
							 
							took out the contract to eventually call efree() when it called fetch().
Maintain the most recently loaded image at the start of the list, so that
imgautoselect() will pick it. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								67aedf34fa
								
							 
						 
						
							Use systematic names for XXX_IMAGE. 
							
							 
							
Add scripts as an image format (since it's trivial to do). 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								eba3609e7f
								
							 
						 
						
							Add debug message 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								5162f30028
								
							 
						 
						
							Ignore comment lines. 
							
							 
							
Avoid returning errors for comments and empty lines. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								475d6d1f7c
								
							 
						 
						
							fetch() now knows nothing about struct image; it simply loads a file and 
							
							 
							returns the allocated buffer. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								742f242863
								
							 
						 
						
							Add free_image 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								9817f93094
								
							 
						 
						
							Add basic "fetch" and "imgstat" commands. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								b9fea9cbac
								
							 
						 
						
							Added IMAGE_LOADED flag and find_image() 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								f15482d85f
								
							 
						 
						
							Added basename() to make automatically naming images easier. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								29dadc5ec6
								
							 
						 
						
							Build automatically expanding buffers from struct buffer and erealloc(). 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								6c894c2a2e
								
							 
						 
						
							Fix typo 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								7bf94b5ad6
								
							 
						 
						
							Allow for named images. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								f59ad50504
								
							 
						 
						
							Provide registration mechanism for loaded images, so that we can e.g. 
							
							 
							refer to them by name from the command line, or build them into a
multiboot module list.
Use setting image->type to disambiguate between "not my image" and "bad
image"; this avoids relying on specific values of the error code. 
							
							
						 
						19 vuotta sitten  
					 
				
					
						
							
								   Michael Brown
							
						 
						
							
								4fc9333159
								
							 
						 
						
							Move include/image.h to include/gpxe/image.h 
							
							
						 
						19 vuotta sitten