Usermode/libposix - fcntl and debug
[tpg/acess2.git] / Usermode / Libraries / libposix.so_src / unistd.c
index d8cbbf6..5f97440 100644 (file)
@@ -89,6 +89,7 @@ int execv(const char *b, char *v[])
 
 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);
@@ -96,6 +97,7 @@ int dup(int oldfd)
 
 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);
 }
@@ -167,10 +169,10 @@ int mkdir(const char *pathname, mode_t mode)
        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;

UCC git Repository :: git.ucc.asn.au