Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2005/0919/2

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


Move atexit into its own file.
 [rsc] --rw-rw-r-- M 28433 rsc sys 220 Sep 19 06:47 sys/src/ape/lib/ap/stdio/atexit.c
 [rsc] --rw-rw-r-- M 28433 glenda sys 321 Sep 19 06:47 sys/src/ape/lib/ap/stdio/exit.c
	/n/sourcesdump/2005/0919/plan9/sys/src/ape/lib/ap/stdio/exit.c:15,27 - 
	/n/sourcesdump/2005/0920/plan9/sys/src/ape/lib/ap/stdio/exit.c:15,17
	  	_doatexits();
	  	_exit(status);
	  }
	- atexit(int (*f)(void))
	- {
	- 	int i;
	- 	for(i=0; i<NONEXIT; i++)
	- 		if(!_atexitfns[i]){
	- 			_atexitfns[i] = f;
	- 			return(0);
	- 		}
	- 	return(1);
	- }
 [rsc] --rw-rw-r-- M 28433 glenda sys 841 Sep 19 06:47 sys/src/ape/lib/ap/stdio/mkfile
	/n/sourcesdump/2005/0919/plan9/sys/src/ape/lib/ap/stdio/mkfile:7,12 - 
	/n/sourcesdump/2005/0920/plan9/sys/src/ape/lib/ap/stdio/mkfile:7,13
	  	_dtoa.$O\
	  	_fconv.$O\
	  	clearerr.$O\
	+ 	atexit.$O\
	  	exit.$O\
	  	fclose.$O\
	  	fdopen.$O\


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.