From ea03559a9d4730f89105b6f5e674a0aaefc74b3b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 27 Sep 1995 06:49:48 +0000 Subject: Wed Sep 27 00:27:25 1995 Roland McGrath * config.make.in (AS): New variable; set to `$(CC) -c'. * posix/unistd.h [__USE_BSD]: Declare profil. * elf/dl-load.c (_dl_map_object_from_fd): New function, broken out of _dl_map_object. (_dl_map_object): Call it. * elf/link.h (_dl_map_object_from_fd): Declare it. --- posix/unistd.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'posix/unistd.h') diff --git a/posix/unistd.h b/posix/unistd.h index eda44c96be..846653c75c 100644 --- a/posix/unistd.h +++ b/posix/unistd.h @@ -568,6 +568,15 @@ extern int vhangup __P ((void)); extern int revoke __P ((const char *__file)); +/* Enable statistical profiling, writing samples of the PC into at most + SIZE bytes of SAMPLE_BUFFER; every processor clock tick while profiling + is enabled, the system examines the user PC and increments + SAMPLE_BUFFER[((PC - OFFSET) / 2) * SCALE / 65536]. If SCALE is zero, + disable profiling. Returns zero on success, -1 on error. */ +extern int profil __P ((unsigned short int *__sample_buffer, size_t __size, + size_t __offset, unsigned int __scale)); + + /* Turn accounting on if NAME is an existing file. The system will then write a record for each process as it terminates, to this file. If NAME is NULL, turn accounting off. This call is restricted to the super-user. */ -- cgit v1.2.3