]> Cypherpunks repositories - gostls13.git/commit
syscall: fix mksysnum_linux.sh
authorAnthony Martin <ality@pbrane.org>
Tue, 11 Jan 2011 19:38:14 +0000 (14:38 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 11 Jan 2011 19:38:14 +0000 (14:38 -0500)
commitfee3aca2e02a44b51d3f41b94701055de434ae6b
tree2ae2b5c5625106d121135ace8f5eef8cbacfe120
parent882f9d6d7a74a9701b2c07b210b5555c5caefed3
syscall: fix mksysnum_linux.sh

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
src/pkg/syscall/mksysnum_linux.sh
src/pkg/syscall/zsysnum_linux_386.go