Plan 9 from Bell Labs’s /usr/web/sources/contrib/uriel/changes/2006/0128/22

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


Clean up _MAGIC handling.
 [jmk] --rw-rw-r-- M 1428987 glenda sys 8621 Jan 28 12:56 sys/include/mach.h
	/n/sourcesdump/2006/0128/plan9/sys/include/mach.h:217,225 - 
	/n/sourcesdump/2006/0129/plan9/sys/include/mach.h:217,226
	  typedef struct Fhdr
	  {
	  	char	*name;		/* identifier of executable */
	- 	uchar	type;		/* file type - see codes above*/
	+ 	uchar	type;		/* file type - see codes above */
	  	uchar	hdrsz;		/* header size */
	- 	uchar	spare[2];
	+ 	uchar	_magic;		/* _MAGIC() magic */
	+ 	uchar	spare;
	  	long	magic;		/* magic number */
	  	uvlong	txtaddr;	/* text address */
	  	vlong	txtoff;		/* start of text in file */


Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].