-
Notifications
You must be signed in to change notification settings - Fork 407
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
Two Questions #16
Comments
To answer your first question, I believe that you are using the read() function incorrectly. The error is with your second argument to the read() function, you pass in "README", but when you look at the error that you get you can notice that the second argument is supposed to be along the lines of void *__buf.This argument is the buffer where the read data is stored. |
Okay, so what would be an example of the correct way to use the read function? Not too sure what a void *_buf is. Thanks Bryan! |
To sync with upstream you can run the following commands:
|
@aguerrero thanks for the post
As a side not, as a programmer being able to look up information is a variable skill. |
These are good answers, but I'd like to add the following:
|
Thanks for the answers Mike! I'm still unfamiliar with how to use github, so if it's not too much trouble, can you outline the steps of creating a new project and syncing it with our computers? Would it be just like the lab? Thanks! |
Go to http://github.com. On the right hand side there's a button labeled |
Hey everybody,
I have two questions:
This statement here is giving me compiler errors:
This is the compiler error I'm getting:
main.cpp:33:28: error: invalid conversion from ‘const void_’ to ‘void_’ [-fpermissive]
if(read(fd, "README", 6) == -1)
^
In file included from main.cpp:5:0:
/usr/include/unistd.h:360:16: error: initializing argument 2 of ‘ssize_t read(int, void*, size_t)’ [-fpermissive]
extern ssize_t read (int __fd, void *__buf, size_t __nbytes) __wur;
Thanks!
The text was updated successfully, but these errors were encountered: