[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ibcs & SCO5 (II)



I just found tried the following program:

#include <unistd.h>
#include <stdio.h>

main()
{
    char *cwd;
    if ((cwd = getcwd(NULL, 64)) == NULL) {
	perror("pwd");
	exit(2);
    }
    (void) printf("%s\n", cwd);
    return (0);
}

When I compile, link and start as ./t I get:

pwd: Function not implemented

However, when I first cd into my home dir I get and use the path from there
I get:

/home/meskes

Strange, isn't it?

So I tried cd /home/meskes; /home/meskes/projekte/cau01b/t and got:

/home/meskes

But with cd /home/meskes/projekte; /home/meskes/projekte/cau01b/t I still get:

pwd: Function not implemented

Does anyone have an idea?

Michael


-- 
Michael Meskes, Projekt-Manager      | meskes@topsystem.de, meskes@debian.org
topsystem Systemhaus GmbH            | Phone: (+49) 2405/4670-44
Europark A2, Adenauerstr. 20         | Fax:   (+49) 2405/4670-10
52146 Wuerselen                      | Go SF 49ers! Use Debian GNU/Linux!


Reply to: