int dup(int oldfd)
{
+ _SysDebug("libposix: dup() does not share offsets/flags");
// NOTE: Acess's CopyFD doesn't cause offset sharing
// TODO: Check that -1 does cause a new allocation
return _SysCopyFD(oldfd, -1);
int dup2(int oldfd, int newfd)
{
+ _SysDebug("libposix: dup2() does not share offsets/flags");
// NOTE: Acess's CopyFD doesn't cause offset sharing
return _SysCopyFD(oldfd, newfd);
}
return -1;
}
-char *getpass(void)
+char *getpass(const char *prompt)
{
static char passbuf[PASS_MAX+1];
- fprintf(stderr, "Password: ");
+ fprintf(stderr, "%s", prompt);
fgets(passbuf, PASS_MAX+1, stdin);
fprintf(stderr, "\n");
return passbuf;