Skip to content

C library: model _pipe #3670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 4, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion buildspec-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ phases:
Remove-Item cbmc\byte_update5 -Force -Recurse
Remove-Item cbmc\byte_update6 -Force -Recurse
Remove-Item cbmc\byte_update7 -Force -Recurse
Remove-Item cbmc-library\pipe-01 -Force -Recurse
Remove-Item cpp -Force -Recurse
Remove-Item cbmc-cpp -Force -Recurse
Remove-Item goto-gcc -Force -Recurse
Expand Down
15 changes: 15 additions & 0 deletions src/ansi-c/library/unistd.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,21 @@ int pipe(int fildes[2])
return 0;
}

/* FUNCTION: _pipe */

#ifdef _WIN32
#undef pipe
int pipe(int fildes[2]);

int _pipe(int *pfds, unsigned int psize, int textmode)
{
__CPROVER_HIDE:;
(void)psize;
(void)textmode;
return pipe(pfds);
}
#endif

/* FUNCTION: close */

extern struct __CPROVER_pipet __CPROVER_pipes[];
Expand Down