mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-28 17:10:59 +01:00
43080: _sys_calls: analyze recent syscall.h properly
This commit is contained in:
parent
a0233a74e3
commit
3c57f71668
2 changed files with 4 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ local -au syscalls
|
|||
zparseopts -D -K -E a=all n=none
|
||||
|
||||
[[ $OSTYPE = linux* ]] && ifile=/usr/include/bits/syscall.h
|
||||
syscalls=( ${${${(M)${(f)"$(<$ifile)"}:#?define[[:blank:]]##SYS_*}#*[[:blank:]]SYS_}%%[[:blank:]]*} ) 2>/dev/null
|
||||
syscalls=( ${${${(M)${(f)"$(<$ifile)"}:#\#[[:blank:]]#define[[:blank:]]##SYS_*}#*[[:blank:]]SYS_}%%[[:blank:]]*} ) 2>/dev/null
|
||||
[[ -n $all ]] && syscalls+=( all )
|
||||
[[ -n $none ]] && syscalls+=( none )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue