File:  [MW Coherent from dump] / coherent / b / lib / libc / sys / i386 / brk.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:35 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent

/	Copyright (c) Ciaran O'Donnell, Bievres (FRANCE), 1991
	.globl	sbrk
	.globl	brk
	.globl	__end
	.globl	.cerror

sbrk:
	movl	landsend,%ecx
	addl	%ecx,4(%esp)
	movl	$17,%eax
	lcall	$7,$0
	jc	.cerror
	movl	4(%esp),%eax
	movl	%eax,landsend
	movl	%ecx,%eax
	orl	%eax,%eax
	ret
brk:
	movl	$17,%eax
	lcall	$0x7,$0
	jc	.cerror
	movl	4(%esp),%eax
	movl	%eax,landsend
	xorl	%eax,%eax
	ret
	.data
landsend:
	.long	__end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.