Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0126/1

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


Bprint returns zero on success.
 [rsc] --rw-rw-r-- M 1309610 glenda sys 6523 Jan 26 23:14 sys/man/2/bio
	/n/sourcesdump/2006/0126/plan9/sys/man/2/bio:271,277 - 
	/n/sourcesdump/2006/0127/plan9/sys/man/2/bio:271,279
	  a negative value
	  .RB ( Beof )
	  is returned.
	- Otherwise, the number of bytes output is returned.
	+ Otherwise, 
	+ .I Bprint
	+ returns zero.
	  .I Bvprint
	  does the same except it takes as argument a
	  .B va_list
 [rsc] --rw-rw-r-- M 1309610 glenda sys 44583 Jan 26 23:15 sys/src/cmd/upas/ned/nedmail.c
	/n/sourcesdump/2006/0126/plan9/sys/src/cmd/upas/ned/nedmail.c:1460,1466 - 
	/n/sourcesdump/2006/0127/plan9/sys/src/cmd/upas/ned/nedmail.c:1460,1466
	  		if(interrupted)
	  			break;
	  		p[Blinelen(b)-1] = 0;
	- 		if(Bprint(&out, "%s%s\n", indent, p) <= 0)
	+ 		if(Bprint(&out, "%s%s\n", indent, p) < 0)
	  			break;
	  	}
	  	Bprint(&out, "\n");


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.