[Cbe-oss-dev] [PATCH 2/3] libspe: fix image func typos

Dirk Herrendoerfer d.herrendoerfer at de.ibm.com
Thu Jul 16 23:37:58 EST 2009


This patch fixes spe_image_open and spe_image_close typos

Signed-off-by: Brian Watt <bwatt at us.ibm.com>
Acked-by: Dirk Herrendoerfer <d.herrendoerfer [at] de [dot] ibm [dot]  
com>

diff -uprN libspe2.orig/spebase/spebase.h libspe2.fix_image_func_typos/ 
spebase/spebase.h
--- libspe2.orig/spebase/spebase.h	2009-06-24 17:06:51.000000000 -0500
+++ libspe2.fix_image_func_typos/spebase/spebase.h	2009-06-25  
17:30:22.000000000 -0500
@@ -256,14 +256,14 @@ extern int _base_spe_context_run(spe_con

  /**
   * _base_spe_image_close unmaps an SPE ELF object that was  
previously mapped using
- * spe_open_image.
+ * spe_image_open.
   * @param handle handle to open file
   *
   * @retval 0 On success, spe_close_image returns 0.
   * @retval -1 On failure, -1 is returned and errno is set  
appropriately.\n
   * Possible values for errno:\n
   * EINVAL From spe_close_image, this indicates that the file,  
specified by
- * filename, was not previously mapped by a call to spe_open_image.
+ * filename, was not previously mapped by a call to spe_image_open.
   */
  extern int _base_spe_image_close(spe_program_handle_t *handle);

@@ -275,7 +275,7 @@ extern int _base_spe_image_close(spe_pro
   * symbols which point to the SPE ELF objects after these special  
libraries are
   * loaded. These libraries are then linked with the associated PPE  
code to provide
   * a direct symbol reference to the SPE ELF object. The symbols in  
this scheme
- * are equivalent to the address returned from the spe_open_image  
function.
+ * are equivalent to the address returned from the spe_image_open  
function.
   * SPE ELF objects loaded using this function are not shared with  
other processes,
   * but SPE ELF objects loaded using the other scheme, mentioned  
above, can be
   * shared if so desired.
@@ -283,7 +283,7 @@ extern int _base_spe_image_close(spe_pro
   * @param filename Specifies the filename of an SPE ELF executable  
to be loaded
   * and mapped into system memory.
   *
- * @return On success, spe_open_image returns the address at which  
the specified
+ * @return On success, spe_image_open returns the address at which  
the specified
   * SPE ELF object has been mapped. On failure, NULL is returned and  
errno is set
   * appropriately.\n
   * Possible values for errno include:\n
@@ -294,7 +294,7 @@ extern int _base_spe_image_close(spe_pro
   *
   * A number of other errno values could be returned by the open(2),  
fstat(2),
   * mmap(2), munmap(2), or close(2) system calls which may be  
utilized by the
- * spe_open_image or spe_close_image functions.
+ * spe_image_open or spe_image_close functions.
   * @sa spe_create_thread
   */
  extern spe_program_handle_t *_base_spe_image_open(const char  
*filename);
diff -uprN libspe2.orig/tests/libspe2.basic/testevent1.c  
libspe2.fix_image_func_typos/tests/libspe2.basic/testevent1.c
--- libspe2.orig/tests/libspe2.basic/testevent1.c	2009-06-24  
17:06:53.000000000 -0500
+++ libspe2.fix_image_func_typos/tests/libspe2.basic/testevent1.c	 
2009-06-24 16:43:57.000000000 -0500
@@ -30,7 +30,7 @@ int main()
  	/* load the program. */
  	program = spe_image_open("helloworld.spu.elf");
  	if (!program) {
-		perror("spe_open_image");
+		perror("spe_image_open");
  		return -1;
  	}

diff -uprN libspe2.orig/tests/libspe2.basic/testsingle.c  
libspe2.fix_image_func_typos/tests/libspe2.basic/testsingle.c
--- libspe2.orig/tests/libspe2.basic/testsingle.c	2009-06-24  
17:06:54.000000000 -0500
+++ libspe2.fix_image_func_typos/tests/libspe2.basic/testsingle.c	 
2009-06-24 16:43:57.000000000 -0500
@@ -16,7 +16,7 @@ int main(void)
  	
  	program = spe_image_open("helloworld.spu.elf");
  	if (!program) {
-		perror("spe_open_image");
+		perror("spe_image_open");
  		return -1;
  	}
  	



More information about the cbe-oss-dev mailing list