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

StdLib's tmpfile and mkstemp do not work (Bugzilla Bug 50) #9551

Open
tianocore-issues opened this issue Jul 20, 2016 · 2 comments
Open

StdLib's tmpfile and mkstemp do not work (Bugzilla Bug 50) #9551

tianocore-issues opened this issue Jul 20, 2016 · 2 comments
Labels
package:stdlib priority:medium Moderate impact. Should be prioritized over lower priority issues. type:bug Something isn't working

Comments

@tianocore-issues
Copy link

This issue was created automatically with bugzilla2github

Bugzilla Bug 50

Date: 2016-07-20T21:03:48+00:00
From: @mdkinney
To: unassigned <>
CC: hot.tian, yonghong.zhu

Last updated: 2022-02-09T13:50:23+00:00

@tianocore-issues
Copy link
Author

Comment 75

Date: 2016-07-20 21:03:48 +0000
From: @mdkinney

  • Industry Specification: ---
  • Release Observed: EDK II Master
  • Releases to Fix: EDK II Master
  • Target OS: ---
  • Bugzilla Assignee(s): unassigned <>

mischief commented on Mar 19
i haven't been able to figure out exactly what is wrong, but tmpfile and mkstemp are broken and don't return a FILE*/fd (or a useful errno).

i have created /efi/stdlib/tmp as specified in the readme for tmpfile.

#include <string.h>
#include <stdio.h>
#include <errno.h>

int
main(int argc, char *argv[])
{
FILE *fp = tmpfile();
if(fp != NULL)
printf("got file\n");
else
printf("did not get file: %s\n", strerror(errno));
return 0;
}

@tianocore-issues
Copy link
Author

Comment 666

Date: 2016-10-20 20:21:42 +0000
From: Yonghong Zhu <<yonghong.zhu>>

Bug scrub: Assign to module owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package:stdlib priority:medium Moderate impact. Should be prioritized over lower priority issues. type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant