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

open() does not work #8

Open
GoogleCodeExporter opened this issue Sep 21, 2015 · 0 comments
Open

open() does not work #8

GoogleCodeExporter opened this issue Sep 21, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
The c code like this,

#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
int main(int argc, char **argv) {
  int fp;
  fp= open("/mnt/hdfs/fusetest",O_CREAT | O_RDWR , 0664);
  if(fp<0){
    printf("error creating...\n");
    return -1;

  }
}
2. compile the code with gcc and run the executable.

What is the expected output? What do you see instead?
I expect the file can be created successfully.

What version of the product are you using? On what operating system?
hadoop-0.20.2 on ubuntu 9.04 amd64. Kernel version 2.6.28.10

Please provide any additional information below.
fopen works. but open does not work.

Original issue reported on code.google.com by [email protected] on 8 Jul 2011 at 8:04

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

No branches or pull requests

1 participant