* Makefile.in: Create libutil.a from bsdlib.o exports.

* bsdlib.cc (logwtmp): Move from syscalls.cc to here.
	(login): Ditto.
	(logout): Ditto.

	* winsup.h (EXPORT_ALIAS): New macro.
	* exec.cc: Define alias symbols using EXPORT_ALIAS macro.
	* syscalls.cc: Ditto.
	* times.cc: Ditto.
This commit is contained in:
Corinna Vinschen
2004-09-10 08:30:51 +00:00
parent 04d55823da
commit 4875a4b66e
7 changed files with 78 additions and 70 deletions

View File

@@ -35,8 +35,7 @@ execve (const char *path, char *const argv[], char *const envp[])
return spawnve (_P_OVERLAY, path, argv, envp);
}
extern "C" int _execve (const char *, char *const [], char *const [])
__attribute__ ((alias ("execve")));
EXPORT_ALIAS (execve, _execve)
extern "C" int
execl (const char *path, const char *arg0, ...)