Return to BSD News archive
Xref: sserve comp.os.misc:3339 comp.unix.bsd:15009 comp.unix.internals:7773 comp.unix.programmer:20522 Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!ihnp4.ucsd.edu!usc!usc!not-for-mail From: fabbroci@sal-sun2.usc.edu (Frank Fabbrocino) Newsgroups: comp.os.misc,comp.unix.bsd,comp.unix.internals,comp.unix.programmer,comp.unix.quest1ions Subject: Question: What exactly does sbrk(0) do? Date: 2 Oct 1994 13:45:45 -0700 Organization: University of Southern California, Los Angeles, CA Lines: 28 Sender: fabbroci@sal-sun2.usc.edu Message-ID: <36n65p$blf@sal-sun2.usc.edu> NNTP-Posting-Host: sal-sun2.usc.edu Summary: Question: What exactly does sbrk(0) do? Keywords: Question: What exactly does sbrk(0) do? From what I understand, calling sbrk(0) returns the size of the data segment in the executable. However, I can't find this call in our system documentation or my UNIX books (specifically, calling sbrk with 0). Since I can't look at the code for sbrk() since our system is proprietary :( and I can't find the code on BSD ftp sites :( does anyone know where I can get more info on that specific call of sbrk() with 0 as an arg? Do I even have the right info on what sbrk(0) does? Thanks in advance. Later, Frank ---------------------------------------------------------------- Frank Fabbrocino | I have heard the word and the word is: | All that is editing is emacs. University of | All that is not editing is emacs. Southern California | All that is, is emacs. | Emacs is all that is. fabbroci@scf.usc.edu | Frank, just another Soldier of Emacs. ---------------------------------------------------------------- OK, I admit it: My girlfriend's just an object to me. Unfortunately, there is some information hiding, but thankfully, she's fairly encapsulated, nicely modular, and has a very well defined interface! =) ----------------------------------------------------------------