Fix copy and pasted typos that prevented strtok_r, realloc, getenv, ungetc,
authorNick Lewycky <nicholas@mxc.ca>
Sun, 18 Jan 2009 04:34:36 +0000 (04:34 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 18 Jan 2009 04:34:36 +0000 (04:34 +0000)
commit0b6679d32ff86d8fec964110e5293798369c98e6
tree5cf279b939884cdbd46207180914a888e9aa41c7
parent7f85bb6f83440382ed5154f2a7ba7756acda6160
Fix copy and pasted typos that prevented strtok_r, realloc, getenv, ungetc,
putc, puts, perror, vscanf and vsscanf from getting annotations.

Add annotations for eight printf functions, memalign, pread and pwrite.

On Linux, llvm-gcc sometimes renames strdup, getc, putc, strtok_r, scanf and
sscanf. Match the alternate function names.

Fix a crash annotating opendir.

Don't mark fsetpos's second parameter as nocapture. It's supposed to be
captured.

Do mark fopen's path and mode strings as nocapture. Mark ferror as readonly,
but not fileno which may set errno.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62456 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/SimplifyLibCalls.cpp