posix.cfg: Improved support for more macros and constants.
This commit is contained in:
parent
5135cbeecd
commit
831670c355
|
@ -4116,6 +4116,18 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- These are defined as macros http://man7.org/linux/man-pages/man7/inode.7.html -->
|
||||
<!-- It is better to configure them as functions -->
|
||||
<function name="S_ISREG,S_ISDIR,S_ISCHR,S_ISBLK,S_ISFIFO,S_ISLNK,S_ISSOCK">
|
||||
<returnValue type="int"/>
|
||||
<use-retval/>
|
||||
<noreturn>false</noreturn>
|
||||
<leak-ignore/>
|
||||
<arg nr="1">
|
||||
<not-uninit/>
|
||||
<not-bool/>
|
||||
</arg>
|
||||
</function>
|
||||
<!-- void swab(const void * src, void* dest, ssize_t bytes); -->
|
||||
<function name="swab">
|
||||
<returnValue type="void"/>
|
||||
|
@ -4284,4 +4296,12 @@ The function 'mktemp' is considered to be dangerous due to race conditions and s
|
|||
<define name="RTLD_NOW" value="0x02"/>
|
||||
<define name="RTLD_GLOBAL" value="0x04"/>
|
||||
<define name="RTLD_LOCAL" value="0x08"/>
|
||||
<define name="S_IFMT" value="0170000"/>
|
||||
<define name="S_IFSOCK" value="0140000"/>
|
||||
<define name="S_IFLNK" value="0120000"/>
|
||||
<define name="S_IFREG" value="0100000"/>
|
||||
<define name="S_IFBLK" value="0060000"/>
|
||||
<define name="S_IFDIR" value="0040000"/>
|
||||
<define name="S_IFCHR" value="0020000"/>
|
||||
<define name="S_IFIFO" value="0010000"/>
|
||||
</def>
|
||||
|
|
Loading…
Reference in New Issue