end(3) netbsd man page | unix.com

Man Page: end

Operating Environment: netbsd

Section: 3

END(3)							   BSD Library Functions Manual 						    END(3)

NAME
end, etext, edata -- end boundaries of image segments
SYNOPSIS
extern int end; extern int etext; extern int edata;
DESCRIPTION
The globals end, etext and edata are program segment end addresses. etext is located at the first address after the end of the text segment. edata is located at the first address after the end of the initialized data segment. end is located at the first address after the end of the data segment (BSS) when the program is loaded. Use the sbrk(2) system call with zero as its argument to find the current end of the data segment.
SEE ALSO
sbrk(2), malloc(3), a.out(5)
HISTORY
An end manual page appeared in Version 6 AT&T UNIX.
BUGS
Traditionally, no variable existed that pointed to the start of the text segment because the text segment always started at address zero. Although it is no longer valid to make this assumption, no variable similar to the ones documented above exists to point to the start of the text segment.
BSD
September 1, 2005 BSD
Related Man Pages
etext(3) - centos
end(3) - suse
end(3) - x11r4
end(3) - xfree86
end(3) - posix
Similar Topics in the Unix Linux Community
Automated FTP task
Connecting to SUN server from PC
Help finding a Unix friendly RAID 1 backup
Need comand or script for append text after searching for the desired string
Print byte position of extended ascii character