AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

ARCONVERT( 1) ARCONVERT( 1) NAME arconvert - archive conversion tool SYNOPSIS arconvert [archive] DESCRIPTION Arconvert uses the convert( 1) utility to transform UNIX System Release 5.0 archive files to the UNIX System Release 5.2 archive formal FILES If no archive arguments are passed to arconvert, it will transform all files found in /lib and /usr/lib (and recursively under any of their subdirectories) whose name ends with the ".a" suffix, and whose type, as reported by the file( I) utility, is "5.0 archive". If an argument is passed to arconvert, that file alone will be transformed if its type, as reported by the file utility, is "5.0 archive". Any me which is converted is first saved under its pathname, with the suffix "-old" appended to it. /tmp/convlibs, /tmp/archives SEE ALSO ar(l), a.out(4), ar(4), find(l), convert(1). - I-

BRK(2) BRK(2) NAME brk, sbrk - change data segment space allocation SYNOPSIS int brk (endds) char *endds; char *sbrk (incr) int incr; DESCRIPTION Brk and sbrk are used to change dynamically the amount of space allocated for the calling process's data segment; see exec(2). The change is made by resetting the process's break value and allocating the appropriate amount of space. The break value is the address of the first location beyond the end of the data segment The amount of allocated space increases as the break value increases. Brk sets the break value to endds and changes the allocated space accordingly. Sbrk adds incr bytes to the break value and changes the allocated space accordingly. /ncr can be negative, in which case the amount of allocated space is decreased. Sbrk clears only the page actually allocated, starting at a page boundary. Brk and sbrk will fail without making any change in the allocated space if one or more of the following are true: Such a change would result in more space being allocated than is allowed by a system-imposed maximum (see ulimit (2)). [ENOMEM] Such a change would result in the break value being greater than the start address of any attached shared memory segment (see shmop(2)). RETURN VALUE Upon successful completion, brk returns a value of 0 and sbrk returns the old break value. Otherwise, a value of -1 is returned and errno is set to indicate the error. SEE ALSO exec(2). -1-

BRK(2) BRK(2)<br />

NAME<br />

brk, sbrk - change data segment space allocation<br />

SYNOPSIS<br />

int brk (endds)<br />

char *endds;<br />

char *sbrk (incr)<br />

int incr;<br />

DESCRIPTION<br />

Brk and sbrk are used to change dynamically the amount of space allocated<br />

for the calling process's data segment; see exec(2). The change is<br />

made by resetting the process's break value and allocating the appropriate<br />

amount of space. The break value is the address of the first location<br />

beyond the end of the data segment The amount of allocated space<br />

increases as the break value increases.<br />

Brk sets the break value to endds and changes the allocated space<br />

accordingly.<br />

Sbrk adds incr bytes to the break value and changes the allocated space<br />

accordingly. /ncr can be negative, in which case the amount of allocated<br />

space is decreased. Sbrk clears only the page actually allocated, starting<br />

at a page boundary.<br />

Brk and sbrk will fail without making any change in the allocated space<br />

if one or more of the following are true:<br />

Such a change would result in more space being allocated than<br />

is allowed by a system-imposed maximum (see ulimit (2)).<br />

[ENOMEM]<br />

Such a change would result in the break value being greater<br />

than the start address of any attached shared memory segment<br />

(see shmop(2)).<br />

RETURN VALUE<br />

Upon successful completion, brk returns a value of 0 and sbrk returns the<br />

old break value. Otherwise, a value of -1 is returned and errno is set to<br />

indicate the error.<br />

SEE ALSO<br />

exec(2).<br />

-1-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!