Skip to content
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

dup vs tee #2

Open
mnhrdt opened this issue Nov 12, 2018 · 2 comments
Open

dup vs tee #2

mnhrdt opened this issue Nov 12, 2018 · 2 comments

Comments

@mnhrdt
Copy link
Member

mnhrdt commented Nov 12, 2018

https://github.com/cmla/on-line-vpp/blob/4ef61db2c7a5dbe19db3a9c8f89b14a6cddcf731/src/vpp/src/vp.c#L685

the name "dup" may be confusing, shouldn't it rather be "tee" ?

@kidanger
Copy link
Member

It is named dup because it is clear that it duplicates a stream, and also not to confuse it with "tee". "tee" does not offer the same features and should not be used with vpp.

@mnhrdt
Copy link
Member Author

mnhrdt commented Nov 13, 2018

I do not mean to use the program "tee", my concern is with the choice of the name "dup" for this function (creating a new stream with the same contents). This has always been called "tee", whereas dup(2) is used to give a new name to the same stream (without creating a new stream).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants