OSDN Git Service

(split) Apply minor changes from v3.32 to v3.35 in the upstream.
[linuxjm/LDP_man-pages.git] / draft / man2 / spu_run.2
index a9b0df7..9022cdc 100644 (file)
@@ -352,7 +352,7 @@ int main(void)
     uint32_t instruction, npc;
 
     context = spu_create("/spu/example\-context", 0, 0755);
-    if (context == -1)
+    if (context == \-1)
         handle_error("spu_create");
 
     /* write a \(aqstop 0x1234\(aq instruction to the SPU\(aqs
@@ -361,7 +361,7 @@ int main(void)
     instruction = 0x00001234;
 
     fd = open("/spu/example\-context/mem", O_RDWR);
-    if (fd == -1)
+    if (fd == \-1)
         handle_error("open");
     write(fd, &instruction, sizeof(instruction));
 
@@ -372,7 +372,7 @@ int main(void)
     npc = 0;
 
     spu_status = spu_run(context, &npc, NULL);
-    if (spu_status == -1)
+    if (spu_status == \-1)
         handle_error("open");
 
     /* we should see a status code of 0x1234002: