Skip to content

Commit

Permalink
annotate fdopen() with "ALLOC_RET"
Browse files Browse the repository at this point in the history
  • Loading branch information
shuangxiangkan committed Sep 8, 2023
1 parent 51cdb40 commit 459880d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions svf-llvm/lib/extapi.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ void *fopen64(const char *voidname, const char *mode)
return NULL;
}

__attribute__((annotate("ALLOC_RET")))
void *fdopen(int fd, const char *mode)
{
return NULL;
}

__attribute__((annotate("ALLOC_RET")))
struct dirent64 *readdir64(void *dirp)
{
Expand Down Expand Up @@ -968,11 +974,6 @@ char * dngettext(const char * domainname, const char * msgid, const char * msgid
return STATIC_OBJECT;
}

void *fdopen(int fd, const char *mode)
{
return STATIC_OBJECT;
}

struct group *getgrgid(unsigned int gid)
{
return STATIC_OBJECT;
Expand Down

0 comments on commit 459880d

Please sign in to comment.