• Anthony Martin's avatar
    syscall: fix mksysnum_linux.sh · fee3aca2
    Anthony Martin authored
    A few system call numbers on x86 Linux are
    defined in terms of a previous definition,
    
    e.g.,
    	#define __NR_timer_create	259
    	#define __NR_timer_settime	(__NR_timer_create+1)
    	...
    	#define __NR_mq_open		277
    	#define __NR_mq_unlink		(__NR_mq_open+1)
    
    This change assumes the numbers are sorted
    sequentially in the input file.
    
    R=rsc, bradfitzwork
    CC=golang-dev
    https://golang.org/cl/3946041
    fee3aca2
zsysnum_linux_386.go 11.1 KB