diff options
author | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
---|---|---|
committer | stevel@tonic-gate <none@none> | 2005-06-14 00:00:00 -0700 |
commit | 7c478bd95313f5f23a4c958a745db2134aa03244 (patch) | |
tree | c871e58545497667cbb4b0a4f2daf204743e1fe7 /usr/src/lib/libc/common/sys | |
download | illumos-gate-7c478bd95313f5f23a4c958a745db2134aa03244.tar.gz |
OpenSolaris Launch
Diffstat (limited to 'usr/src/lib/libc/common/sys')
149 files changed, 7230 insertions, 0 deletions
diff --git a/usr/src/lib/libc/common/sys/__clock_timer.s b/usr/src/lib/libc/common/sys/__clock_timer.s new file mode 100644 index 0000000000..4c4e917836 --- /dev/null +++ b/usr/src/lib/libc/common/sys/__clock_timer.s @@ -0,0 +1,120 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include "SYS.h" + +/* + * int + * __clock_getres(clockid_t clock_id, timespec_t *res) + */ + + ENTRY(__clock_getres) + SYSTRAP_RVAL1(clock_getres) + SYSCERROR + RET + SET_SIZE(__clock_getres) + +/* + * int + * __clock_settime(clockid_t clock_id, timespec_t *tp) + */ + + ENTRY(__clock_settime) + SYSTRAP_RVAL1(clock_settime) + SYSCERROR + RET + SET_SIZE(__clock_settime) + +/* + * int + * __timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid) + */ + + ENTRY(__timer_create) + SYSTRAP_RVAL1(timer_create) + SYSCERROR + RET + SET_SIZE(__timer_create) + +/* + * int + * __timer_delete(timer_t timerid) + */ + + ENTRY(__timer_delete) + SYSTRAP_RVAL1(timer_delete) + SYSCERROR + RET + SET_SIZE(__timer_delete) + +/* + * int + * __timer_getoverrun(timer_t timerid) + */ + + ENTRY(__timer_getoverrun) + SYSTRAP_RVAL1(timer_getoverrun) + SYSCERROR + RET + SET_SIZE(__timer_getoverrun) + +/* + * int + * __timer_gettime(timer_t timerid, struct itimerspec *value) + */ + + ENTRY(__timer_gettime) + SYSTRAP_RVAL1(timer_gettime) + SYSCERROR + RET + SET_SIZE(__timer_gettime) + +/* + * int + * __timer_settime(timer_t timerid, int flags, + * const struct itimerspec *value, struct itimerspec *ovalue) + */ + + ENTRY(__timer_settime) + SYSTRAP_RVAL1(timer_settime) + SYSCERROR + RET + SET_SIZE(__timer_settime) + +/* + * int + * ___nanosleep(const timespec_t *rqtp, timespec_t *rmtp) + */ + + ENTRY(___nanosleep) + SYSTRAP_RVAL1(nanosleep) + SYSLWPERR + RET + SET_SIZE(___nanosleep) diff --git a/usr/src/lib/libc/common/sys/__fcntl.s b/usr/src/lib/libc/common/sys/__fcntl.s new file mode 100644 index 0000000000..6628c7b4b6 --- /dev/null +++ b/usr/src/lib/libc/common/sys/__fcntl.s @@ -0,0 +1,40 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * int fcntl(int fildes, int cmd [, arg]) + */ + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_fcntl,__fcntl,function) + SYSCALL2_RESTART_RVAL1(__fcntl,fcntl) + RET + SET_SIZE(__fcntl) diff --git a/usr/src/lib/libc/common/sys/__getloadavg.s b/usr/src/lib/libc/common/sys/__getloadavg.s new file mode 100644 index 0000000000..a3691ccd42 --- /dev/null +++ b/usr/src/lib/libc/common/sys/__getloadavg.s @@ -0,0 +1,39 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * int __getloadavg(int *buf, int nelem); + */ + +#include "SYS.h" + + SYSCALL2_RVAL1(__getloadavg,getloadavg) + RET + SET_SIZE(__getloadavg) diff --git a/usr/src/lib/libc/common/sys/__rusagesys.s b/usr/src/lib/libc/common/sys/__rusagesys.s new file mode 100644 index 0000000000..d79ce1d2a3 --- /dev/null +++ b/usr/src/lib/libc/common/sys/__rusagesys.s @@ -0,0 +1,39 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * int __rusagesys(type, struct rusage *) + */ + +#include "SYS.h" + + SYSCALL2_RVAL1(__rusagesys,rusagesys) + RET + SET_SIZE(__rusagesys) diff --git a/usr/src/lib/libc/common/sys/__signotify.s b/usr/src/lib/libc/common/sys/__signotify.s new file mode 100644 index 0000000000..f49d5eb297 --- /dev/null +++ b/usr/src/lib/libc/common/sys/__signotify.s @@ -0,0 +1,39 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* unpublished system call for librt -- __signotify */ +/* int _signotify (int cmd, siginfo_t *siginfo, */ +/* signotify_id_t *sn_id); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(__signotify,signotify) + RET + SET_SIZE(__signotify) diff --git a/usr/src/lib/libc/common/sys/__sigrt.s b/usr/src/lib/libc/common/sys/__sigrt.s new file mode 100644 index 0000000000..df1154abd0 --- /dev/null +++ b/usr/src/lib/libc/common/sys/__sigrt.s @@ -0,0 +1,48 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include "SYS.h" + +/* + * int + * __sigqueue(pid_t pid, int signo, void *value, int si_code) + */ + SYSCALL2_RVAL1(__sigqueue,sigqueue) + RETC + SET_SIZE(__sigqueue) + +/* + * int + * ___sigtimedwait(const sigset_t *set, siginfo_t *info, + * const timespec_t *timeout) + */ + SYSCALL2_RVAL1(___sigtimedwait,sigtimedwait) + RET + SET_SIZE(___sigtimedwait) diff --git a/usr/src/lib/libc/common/sys/__time.s b/usr/src/lib/libc/common/sys/__time.s new file mode 100644 index 0000000000..d7b46a0309 --- /dev/null +++ b/usr/src/lib/libc/common/sys/__time.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * raw system calls: + * time_t __time(void); + * int __stime(time_t); + * See time.c + */ + +#include "SYS.h" + + ENTRY(__time) + SYSTRAP_RVAL1(time) + RET + SET_SIZE(__time) + + SYSCALL2_RVAL1(__stime,stime) + RETC + SET_SIZE(__stime) diff --git a/usr/src/lib/libc/common/sys/_lgrp_home_fast.s b/usr/src/lib/libc/common/sys/_lgrp_home_fast.s new file mode 100644 index 0000000000..a88268810a --- /dev/null +++ b/usr/src/lib/libc/common/sys/_lgrp_home_fast.s @@ -0,0 +1,55 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- gethomelgroup + * lgrpid_t gethomelgroup() + * lgrp_id_t _lgrp_home_fast() + */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(gethomelgroup,function) + +#include "SYS.h" + +/* + * lgrp_id_t _lgrp_home_fast(void) + * lgrpid_t gethomelgroup(void) + * + * Returns the home lgroup id for caller using fast trap + * XXX gethomelgroup() being replaced by lgrp_home() XXX + */ + + ENTRY2(_lgrp_home_fast,_gethomelgroup) + SYSFASTTRAP(GETLGRP) /* share fast trap with getcpuid */ + RET2 /* return rval2 */ + SET_SIZE(_lgrp_home_fast) + SET_SIZE(_gethomelgroup) diff --git a/usr/src/lib/libc/common/sys/_lgrpsys.s b/usr/src/lib/libc/common/sys/_lgrpsys.s new file mode 100644 index 0000000000..b8e992e317 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_lgrpsys.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include "SYS.h" + +/* + * int + * _lgrpsys(int subcode, long arg, void *ap) + * + * Syscall entry point for lgroup interface routines + */ + + SYSCALL2_RVAL1(_lgrpsys,lgrpsys) + RET + SET_SIZE(_lgrpsys) diff --git a/usr/src/lib/libc/common/sys/_nfssys.s b/usr/src/lib/libc/common/sys/_nfssys.s new file mode 100644 index 0000000000..17779908fa --- /dev/null +++ b/usr/src/lib/libc/common/sys/_nfssys.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- nfssys */ +/* int nfssys(int opcode, int arg) */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_nfssys,nfssys) + RETC + SET_SIZE(_nfssys) diff --git a/usr/src/lib/libc/common/sys/_portfs.s b/usr/src/lib/libc/common/sys/_portfs.s new file mode 100644 index 0000000000..d421f9a7a4 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_portfs.s @@ -0,0 +1,41 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library implementation -- _portfs() + * + * int _portfs() + */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_portfs,port) + RET + SET_SIZE(_portfs) diff --git a/usr/src/lib/libc/common/sys/_pset.s b/usr/src/lib/libc/common/sys/_pset.s new file mode 100644 index 0000000000..3182e1df7b --- /dev/null +++ b/usr/src/lib/libc/common/sys/_pset.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include "SYS.h" + +/* + * int + * _pset(int subcode, long arg1, long arg2, long arg3, long arg4) + * + * Syscall entry point for pset_create, pset_assign, pset_destroy, + * pset_bind, and pset_info. + */ + SYSCALL2_RVAL1(_pset,pset) + RETC + SET_SIZE(_pset) diff --git a/usr/src/lib/libc/common/sys/_rename.s b/usr/src/lib/libc/common/sys/_rename.s new file mode 100644 index 0000000000..417722b819 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_rename.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _rename */ +/* _rename() is the system call version of rename() */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_rename,rename) + RETC + SET_SIZE(_rename) diff --git a/usr/src/lib/libc/common/sys/_rpcsys.s b/usr/src/lib/libc/common/sys/_rpcsys.s new file mode 100644 index 0000000000..de1b349f58 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_rpcsys.s @@ -0,0 +1,38 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* rpcsys */ +/* int rpcsys(int opcode, int arg) */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_rpcsys,rpcsys) + RETC + SET_SIZE(_rpcsys) diff --git a/usr/src/lib/libc/common/sys/_sigaction.s b/usr/src/lib/libc/common/sys/_sigaction.s new file mode 100644 index 0000000000..c0c60b3f55 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_sigaction.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- sigaction */ +/* int sigaction (int sig, struct sigaction *act); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(__sigaction,sigaction) + RET + SET_SIZE(__sigaction) diff --git a/usr/src/lib/libc/common/sys/_so_accept.s b/usr/src/lib/libc/common/sys/_so_accept.s new file mode 100644 index 0000000000..cd94ffe1f8 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_accept.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_accept */ +/* int _so_accept (int socket, struct sockaddr *name, int *namelen, */ +/* int vers); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_accept,accept) + RET + SET_SIZE(_so_accept) diff --git a/usr/src/lib/libc/common/sys/_so_bind.s b/usr/src/lib/libc/common/sys/_so_bind.s new file mode 100644 index 0000000000..e400abe579 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_bind.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_bind */ +/* int _so_bind (int fildes, struct sockaddr *name, int namelen, int vers); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_bind,bind) + RET + SET_SIZE(_so_bind) diff --git a/usr/src/lib/libc/common/sys/_so_connect.s b/usr/src/lib/libc/common/sys/_so_connect.s new file mode 100644 index 0000000000..ede794d28c --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_connect.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_connect */ +/* int _so_connect (int socket, struct sockaddr *name, int namelen, int vers); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_connect,connect) + RET + SET_SIZE(_so_connect) diff --git a/usr/src/lib/libc/common/sys/_so_getpeername.s b/usr/src/lib/libc/common/sys/_so_getpeername.s new file mode 100644 index 0000000000..93617e1f36 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_getpeername.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_getpeername */ +/* int _so_getpeername (int fildes, struct sockaddr *name, */ +/* int namelen, int vers); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_getpeername,getpeername) + RET + SET_SIZE(_so_getpeername) diff --git a/usr/src/lib/libc/common/sys/_so_getsockname.s b/usr/src/lib/libc/common/sys/_so_getsockname.s new file mode 100644 index 0000000000..bdd631234f --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_getsockname.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_getsockname */ +/* int _so_getsockname (int fildes, struct sockaddr *name, int namelen, */ +/* int vers); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_getsockname,getsockname) + RET + SET_SIZE(_so_getsockname) diff --git a/usr/src/lib/libc/common/sys/_so_getsockopt.s b/usr/src/lib/libc/common/sys/_so_getsockopt.s new file mode 100644 index 0000000000..b4e02e0690 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_getsockopt.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_getsockopt */ +/* int _so_getsockopt (int socket, int level, int option_name, */ +/* void *option_value, size_t *option_len, int vers); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_getsockopt,getsockopt) + RET + SET_SIZE(_so_getsockopt) diff --git a/usr/src/lib/libc/common/sys/_so_listen.s b/usr/src/lib/libc/common/sys/_so_listen.s new file mode 100644 index 0000000000..48ac132f6c --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_listen.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_listen */ +/* int _so_listen (int socket, int backlog, int vers); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_listen,listen) + RET + SET_SIZE(_so_listen) diff --git a/usr/src/lib/libc/common/sys/_so_recv.s b/usr/src/lib/libc/common/sys/_so_recv.s new file mode 100644 index 0000000000..6fb1eaac52 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_recv.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_recv */ +/* int _so_recv (int socket, void *buffer, size_t len, int flags); */ + +#include "SYS.h" + + SYSCALL2_RESTART_RVAL1(_so_recv,recv) + RET + SET_SIZE(_so_recv) diff --git a/usr/src/lib/libc/common/sys/_so_recvfrom.s b/usr/src/lib/libc/common/sys/_so_recvfrom.s new file mode 100644 index 0000000000..95b3d4ac99 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_recvfrom.s @@ -0,0 +1,45 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_recvfrom */ +/* + * int _so_recvfrom (int socket, void *buffer, size_t len, int flags, + * struct sockaddr *address, size_t *address_len); + */ + +#include "SYS.h" + + SYSCALL2_RESTART_RVAL1(_so_recvfrom,recvfrom) + RET + SET_SIZE(_so_recvfrom) diff --git a/usr/src/lib/libc/common/sys/_so_recvmsg.s b/usr/src/lib/libc/common/sys/_so_recvmsg.s new file mode 100644 index 0000000000..953faf6105 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_recvmsg.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_recvmsg */ +/* int _so_recvmsg (int socket, struct msghdr *msg, int flags); */ + +#include "SYS.h" + + SYSCALL2_RESTART(_so_recvmsg,recvmsg) + RET + SET_SIZE(_so_recvmsg) diff --git a/usr/src/lib/libc/common/sys/_so_send.s b/usr/src/lib/libc/common/sys/_so_send.s new file mode 100644 index 0000000000..706f02ac6d --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_send.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_send */ +/* int _so_send (int socket, void *buffer, size_t len, int flags); */ + +#include "SYS.h" + + SYSCALL2_RESTART_RVAL1(_so_send,send) + RET + SET_SIZE(_so_send) diff --git a/usr/src/lib/libc/common/sys/_so_sendmsg.s b/usr/src/lib/libc/common/sys/_so_sendmsg.s new file mode 100644 index 0000000000..ce9cb079d2 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_sendmsg.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_sendmsg */ +/* int _so_sendmsg (int socket, struct msghdr *msg, int flags); */ + +#include "SYS.h" + + SYSCALL2_RESTART_RVAL1(_so_sendmsg,sendmsg) + RET + SET_SIZE(_so_sendmsg) diff --git a/usr/src/lib/libc/common/sys/_so_sendto.s b/usr/src/lib/libc/common/sys/_so_sendto.s new file mode 100644 index 0000000000..8c5374a9d6 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_sendto.s @@ -0,0 +1,45 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_sendto */ +/* + * int _so_sendto (int socket, void *buffer, size_t len, int flags, + * struct sockaddr *address, size_t address_len); + */ + +#include "SYS.h" + + SYSCALL2_RESTART_RVAL1(_so_sendto,sendto) + RET + SET_SIZE(_so_sendto) diff --git a/usr/src/lib/libc/common/sys/_so_setsockopt.s b/usr/src/lib/libc/common/sys/_so_setsockopt.s new file mode 100644 index 0000000000..f4e09d0f33 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_setsockopt.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_setsockopt */ +/* int _so_setsockopt (int socket, int level, int option_name, */ +/* void *option_value, size_t option_len, int vers); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_setsockopt,setsockopt) + RET + SET_SIZE(_so_setsockopt) diff --git a/usr/src/lib/libc/common/sys/_so_shutdown.s b/usr/src/lib/libc/common/sys/_so_shutdown.s new file mode 100644 index 0000000000..add0dcce89 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_shutdown.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_shutdown */ +/* int _so_shutdown (int fildes, int how, int vers); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_shutdown,shutdown) + RET + SET_SIZE(_so_shutdown) diff --git a/usr/src/lib/libc/common/sys/_so_socket.s b/usr/src/lib/libc/common/sys/_so_socket.s new file mode 100644 index 0000000000..8d7d24240c --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_socket.s @@ -0,0 +1,45 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_socket */ +/* + * int _so_socket (int domain, int type, int protocol, + * dev_t dev, int version); + */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_socket,so_socket) + RET + SET_SIZE(_so_socket) diff --git a/usr/src/lib/libc/common/sys/_so_socketpair.s b/usr/src/lib/libc/common/sys/_so_socketpair.s new file mode 100644 index 0000000000..30b596c56e --- /dev/null +++ b/usr/src/lib/libc/common/sys/_so_socketpair.s @@ -0,0 +1,44 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _so_socketpair */ +/* + * int _so_socketpair (int sv[2]); + */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_so_socketpair,so_socketpair) + RET + SET_SIZE(_so_socketpair) diff --git a/usr/src/lib/libc/common/sys/_sockconfig.s b/usr/src/lib/libc/common/sys/_sockconfig.s new file mode 100644 index 0000000000..1381617017 --- /dev/null +++ b/usr/src/lib/libc/common/sys/_sockconfig.s @@ -0,0 +1,45 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _sockconfig */ +/* + * int _sockconfig (int domain, int type, int protocol, + * dev_t dev, int version); + */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_sockconfig,sockconfig) + RET + SET_SIZE(_sockconfig) diff --git a/usr/src/lib/libc/common/sys/access.s b/usr/src/lib/libc/common/sys/access.s new file mode 100644 index 0000000000..f622ade40d --- /dev/null +++ b/usr/src/lib/libc/common/sys/access.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- access */ +/* int access(char *path, int amode) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(access,function) + +#include "SYS.h" + + SYSCALL_RVAL1(access) + RET + SET_SIZE(access) diff --git a/usr/src/lib/libc/common/sys/acct.s b/usr/src/lib/libc/common/sys/acct.s new file mode 100644 index 0000000000..1d7ed4480f --- /dev/null +++ b/usr/src/lib/libc/common/sys/acct.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- acct */ +/* int acct(const char *path) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(acct,function) + +#include "SYS.h" + + SYSCALL_RVAL1(acct) + RETC + SET_SIZE(acct) diff --git a/usr/src/lib/libc/common/sys/acl.s b/usr/src/lib/libc/common/sys/acl.s new file mode 100644 index 0000000000..64f697e881 --- /dev/null +++ b/usr/src/lib/libc/common/sys/acl.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- acl */ +/* int acl(const char *path, int cmd, int cnt, struct aclent *buf) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(acl,function) + +#include "SYS.h" + + SYSCALL_RVAL1(acl) + RET + SET_SIZE(acl) diff --git a/usr/src/lib/libc/common/sys/adjtime.s b/usr/src/lib/libc/common/sys/adjtime.s new file mode 100644 index 0000000000..8c103ee2ae --- /dev/null +++ b/usr/src/lib/libc/common/sys/adjtime.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C Library -- adjtime */ +/* int adjtime(struct timeval *delta, struct timeval *olddelta) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(adjtime,function) + +#include "SYS.h" + + SYSCALL_RVAL1(adjtime) + RETC + SET_SIZE(adjtime) diff --git a/usr/src/lib/libc/common/sys/alarm.s b/usr/src/lib/libc/common/sys/alarm.s new file mode 100644 index 0000000000..20c7a2ef99 --- /dev/null +++ b/usr/src/lib/libc/common/sys/alarm.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- alarm */ +/* unsigned alarm(unsigned seconds) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(alarm,function) + +#include "SYS.h" + + SYSCALL_RVAL1(alarm) + RET + SET_SIZE(alarm) diff --git a/usr/src/lib/libc/common/sys/brk.s b/usr/src/lib/libc/common/sys/brk.s new file mode 100644 index 0000000000..8bedf3ab2f --- /dev/null +++ b/usr/src/lib/libc/common/sys/brk.s @@ -0,0 +1,44 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include "SYS.h" + +/* + * _brk_unlocked() simply traps into the kernel to set the brk. It + * returns 0 if the break was successfully set, or -1 otherwise. + * It doesn't enforce any alignment and it doesn't perform any locking. + * _brk_unlocked() is only called from brk() and _sbrk_unlocked(). + */ + + ENTRY_NP(_brk_unlocked) + SYSTRAP_RVAL1(brk) + SYSCERROR + RETC + SET_SIZE(_brk_unlocked) diff --git a/usr/src/lib/libc/common/sys/chdir.s b/usr/src/lib/libc/common/sys/chdir.s new file mode 100644 index 0000000000..198f5b439a --- /dev/null +++ b/usr/src/lib/libc/common/sys/chdir.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- chdir */ +/* int chdir(char *path) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(chdir,function) + +#include "SYS.h" + + SYSCALL_RVAL1(chdir) + RETC + SET_SIZE(chdir) diff --git a/usr/src/lib/libc/common/sys/chmod.s b/usr/src/lib/libc/common/sys/chmod.s new file mode 100644 index 0000000000..12a4b3f29e --- /dev/null +++ b/usr/src/lib/libc/common/sys/chmod.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- chmod */ +/* int chmod(char *path, mode_t mode) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(chmod,function) + +#include "SYS.h" + + SYSCALL_RVAL1(chmod) + RETC + SET_SIZE(chmod) diff --git a/usr/src/lib/libc/common/sys/chown.s b/usr/src/lib/libc/common/sys/chown.s new file mode 100644 index 0000000000..2951402730 --- /dev/null +++ b/usr/src/lib/libc/common/sys/chown.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- chown */ +/* int chown(char *path, uid_t owner, gid_t group) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(chown,function) + +#include "SYS.h" + + SYSCALL_RVAL1(chown) + RETC + SET_SIZE(chown) diff --git a/usr/src/lib/libc/common/sys/chroot.s b/usr/src/lib/libc/common/sys/chroot.s new file mode 100644 index 0000000000..81fe5896f1 --- /dev/null +++ b/usr/src/lib/libc/common/sys/chroot.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- chroot */ +/* int chroot(const char *path) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(chroot,function) + +#include "SYS.h" + + SYSCALL_RVAL1(chroot) + RET + SET_SIZE(chroot) diff --git a/usr/src/lib/libc/common/sys/cladm.s b/usr/src/lib/libc/common/sys/cladm.s new file mode 100644 index 0000000000..17d74041a3 --- /dev/null +++ b/usr/src/lib/libc/common/sys/cladm.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(_cladm,function) + +#include "SYS.h" + +/* + * int + * _cladm(int fac, int cmd, void *arg) + * + * Syscall entry point for cluster administration. + */ + + SYSCALL2_RVAL1(_cladm,cladm) + RETC + SET_SIZE(_cladm) diff --git a/usr/src/lib/libc/common/sys/close.s b/usr/src/lib/libc/common/sys/close.s new file mode 100644 index 0000000000..c8fa248014 --- /dev/null +++ b/usr/src/lib/libc/common/sys/close.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- close */ +/* int close(int fildes) */ + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_close,_close,function) + SYSCALL_RVAL1(close) + RETC + SET_SIZE(close) diff --git a/usr/src/lib/libc/common/sys/creat.s b/usr/src/lib/libc/common/sys/creat.s new file mode 100644 index 0000000000..fa6800ad11 --- /dev/null +++ b/usr/src/lib/libc/common/sys/creat.s @@ -0,0 +1,53 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) +/* C library -- creat */ +/* int creat(char *path, mode_t mode) */ + + SYSCALL_RVAL1(creat) + RET + SET_SIZE(creat) + +#else +/* C library -- creat64 */ +/* int creat64(char *path, mode_t mode) */ + + SYSCALL_RVAL1(creat64) + RET + SET_SIZE(creat64) + +#endif diff --git a/usr/src/lib/libc/common/sys/dup.s b/usr/src/lib/libc/common/sys/dup.s new file mode 100644 index 0000000000..6813353005 --- /dev/null +++ b/usr/src/lib/libc/common/sys/dup.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- dup */ +/* int dup(int fildes) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(dup,function) + +#include "SYS.h" + + SYSCALL_RVAL1(dup) + RET + SET_SIZE(dup) diff --git a/usr/src/lib/libc/common/sys/execve.s b/usr/src/lib/libc/common/sys/execve.s new file mode 100644 index 0000000000..8a6312a989 --- /dev/null +++ b/usr/src/lib/libc/common/sys/execve.s @@ -0,0 +1,50 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- execve */ +/* int execve(const char *path, const char *argv[], const char *envp[]) + * + * where argv is a vector argv[0] ... argv[x], 0 + * last vector element must be 0 + */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(execve,function) + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_execve,execve,function) + SYSCALL_RVAL1(execve) + SET_SIZE(execve) diff --git a/usr/src/lib/libc/common/sys/exit.s b/usr/src/lib/libc/common/sys/exit.s new file mode 100644 index 0000000000..3ef2f157b9 --- /dev/null +++ b/usr/src/lib/libc/common/sys/exit.s @@ -0,0 +1,55 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _exit + * + * void _exit(int status) + * void _Exit(int status) -- added for SUSv3 standard + * + * code is return in r0 to system + * Same as plain exit, for user who want to define their own exit. + * + * _Exit() has been implemented as a weak symbol of _exit(). + * This is the cheapest way to get a duplicate symbol of _exit() + * which is all that is required. To the dynamic linker there + * is no difference between a strong and weak symbol. + */ + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_exit,_exit,function) + ANSI_PRAGMA_WEAK2(_Exit,_exit,function) + ENTRY(_exit) + SYSTRAP_RVAL1(exit) + SET_SIZE(_exit) diff --git a/usr/src/lib/libc/common/sys/facl.s b/usr/src/lib/libc/common/sys/facl.s new file mode 100644 index 0000000000..ebccb91f78 --- /dev/null +++ b/usr/src/lib/libc/common/sys/facl.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- facl */ +/* int facl(int fd, int cmd, int cnt, struct aclent *buf) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(facl,function) + +#include "SYS.h" + + SYSCALL_RVAL1(facl) + RET + SET_SIZE(facl) diff --git a/usr/src/lib/libc/common/sys/fchdir.s b/usr/src/lib/libc/common/sys/fchdir.s new file mode 100644 index 0000000000..a97d4ff2d1 --- /dev/null +++ b/usr/src/lib/libc/common/sys/fchdir.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- fchdir */ +/* int fchdir(int fildes) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(fchdir,function) + +#include "SYS.h" + + SYSCALL_RVAL1(fchdir) + RETC + SET_SIZE(fchdir) diff --git a/usr/src/lib/libc/common/sys/fchmod.s b/usr/src/lib/libc/common/sys/fchmod.s new file mode 100644 index 0000000000..d891b519ad --- /dev/null +++ b/usr/src/lib/libc/common/sys/fchmod.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- fchmod */ +/* int fchmod(int fildes, mode_t mode) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(fchmod,function) + +#include "SYS.h" + + SYSCALL_RVAL1(fchmod) + RETC + SET_SIZE(fchmod) diff --git a/usr/src/lib/libc/common/sys/fchown.s b/usr/src/lib/libc/common/sys/fchown.s new file mode 100644 index 0000000000..7daa697711 --- /dev/null +++ b/usr/src/lib/libc/common/sys/fchown.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- fchown */ +/* int fchown(int fildes, uid_t owner, gid_t group) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(fchown,function) + +#include "SYS.h" + + SYSCALL_RVAL1(fchown) + RETC + SET_SIZE(fchown) diff --git a/usr/src/lib/libc/common/sys/fchroot.s b/usr/src/lib/libc/common/sys/fchroot.s new file mode 100644 index 0000000000..b541215132 --- /dev/null +++ b/usr/src/lib/libc/common/sys/fchroot.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- fchroot */ +/* int fchroot(const int fd) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(fchroot,function) + +#include "SYS.h" + + SYSCALL_RVAL1(fchroot) + RETC + SET_SIZE(fchroot) diff --git a/usr/src/lib/libc/common/sys/fdsync.s b/usr/src/lib/libc/common/sys/fdsync.s new file mode 100644 index 0000000000..52e561346c --- /dev/null +++ b/usr/src/lib/libc/common/sys/fdsync.s @@ -0,0 +1,44 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* Underlying function for C library(fsync) and POSIX(fdatasync)*/ +/* int fdsync(int fildes,int flag) */ + +#include "SYS.h" + + ENTRY(__fdsync) + SYSTRAP_RVAL1(fdsync) + SYSCERROR + RETC + SET_SIZE(__fdsync) diff --git a/usr/src/lib/libc/common/sys/fpathconf.s b/usr/src/lib/libc/common/sys/fpathconf.s new file mode 100644 index 0000000000..9bb7fb64e7 --- /dev/null +++ b/usr/src/lib/libc/common/sys/fpathconf.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- fpathconf */ +/* int fpathconf(int fd, int name) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(fpathconf,function) + +#include "SYS.h" + + SYSCALL_RVAL1(fpathconf) + RET + SET_SIZE(fpathconf) diff --git a/usr/src/lib/libc/common/sys/fstat.s b/usr/src/lib/libc/common/sys/fstat.s new file mode 100644 index 0000000000..13ce8eb77b --- /dev/null +++ b/usr/src/lib/libc/common/sys/fstat.s @@ -0,0 +1,63 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- fstat */ +/* int fstat (int fildes, struct stat *buf) */ + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(fstat,function) +#else + ANSI_PRAGMA_WEAK(fstat64,function) +#endif + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RVAL1(fstat) + RETC + SET_SIZE(fstat) + +#else + +/* C library -- fstat64 transitional large file API */ +/* int fstat64 (int fildes, struct stat64 *buf) */ + + SYSCALL_RVAL1(fstat64) + RETC + SET_SIZE(fstat64) + +#endif diff --git a/usr/src/lib/libc/common/sys/fstatfs.s b/usr/src/lib/libc/common/sys/fstatfs.s new file mode 100644 index 0000000000..271bf07e4d --- /dev/null +++ b/usr/src/lib/libc/common/sys/fstatfs.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- fstatfs */ +/* int fstatfs(int fildes, struct statfs *buf, int len, + int fstyp) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(fstatfs,function) + +#include "SYS.h" + + SYSCALL_RVAL1(fstatfs) + RETC + SET_SIZE(fstatfs) diff --git a/usr/src/lib/libc/common/sys/fstatvfs.s b/usr/src/lib/libc/common/sys/fstatvfs.s new file mode 100644 index 0000000000..0dbef242fa --- /dev/null +++ b/usr/src/lib/libc/common/sys/fstatvfs.s @@ -0,0 +1,63 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- fstatvfs */ +/* int fstatvfs(int fildes, struct statvfs *buf) */ + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(fstatvfs,function) +#else + ANSI_PRAGMA_WEAK(fstatvfs64,function) +#endif + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RVAL1(fstatvfs) + RETC + SET_SIZE(fstatvfs) + +#else + +/* C library -- fstatvfs64 */ +/* int fstatvfs64(int fildes, struct statvfs64 *buf) */ + + SYSCALL_RVAL1(fstatvfs64) + RETC + SET_SIZE(fstatvfs64) + +#endif diff --git a/usr/src/lib/libc/common/sys/getcpuid.s b/usr/src/lib/libc/common/sys/getcpuid.s new file mode 100644 index 0000000000..62749efccd --- /dev/null +++ b/usr/src/lib/libc/common/sys/getcpuid.s @@ -0,0 +1,51 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- getcpuid + * processorid_t getcpuid() + */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(getcpuid,function) + +#include "SYS.h" + +/* + * processorid_t getcpuid(void) + * + * Returns the cpu id + */ + + ENTRY(_getcpuid) + SYSFASTTRAP(GETLGRP) /* share fast trap with _lgrp_home_fast() */ + RET /* return rval1 */ + SET_SIZE(_getcpuid) diff --git a/usr/src/lib/libc/common/sys/getdents.s b/usr/src/lib/libc/common/sys/getdents.s new file mode 100644 index 0000000000..d6df84a7e3 --- /dev/null +++ b/usr/src/lib/libc/common/sys/getdents.s @@ -0,0 +1,65 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- getdents */ +/* int getdents (int fildes, struct dirent *buf, size_t count) */ + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(getdents,function) +#else + ANSI_PRAGMA_WEAK(getdents64,function) +#endif + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RVAL1(getdents) + RET + SET_SIZE(getdents) + +#else + +/* C library -- getdents64 */ +/* int getdents64 (int fildes, struct dirent64 *buf, size_t count) */ + + SYSCALL_RVAL1(getdents64) + RET + SET_SIZE(getdents64) + +#endif + + diff --git a/usr/src/lib/libc/common/sys/getegid.s b/usr/src/lib/libc/common/sys/getegid.s new file mode 100644 index 0000000000..812142b767 --- /dev/null +++ b/usr/src/lib/libc/common/sys/getegid.s @@ -0,0 +1,49 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- getegid + * gid_t getegid (void); + */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(getegid,function) + +#include "SYS.h" + + ENTRY(getegid) /* shared syscall: rval1 = gid */ + SYSTRAP_RVAL2(getgid) /* rval2 = egid */ + RET2 + SET_SIZE(getegid) diff --git a/usr/src/lib/libc/common/sys/geteuid.s b/usr/src/lib/libc/common/sys/geteuid.s new file mode 100644 index 0000000000..89dd1f964c --- /dev/null +++ b/usr/src/lib/libc/common/sys/geteuid.s @@ -0,0 +1,51 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- geteuid + * uid_t geteuid (void); + */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(geteuid,function) + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_geteuid,_geteuid,function) + + ENTRY(geteuid) /* shared syscall: rval1 = uid */ + SYSTRAP_RVAL2(getuid) /* rval2 = euid */ + RET2 + SET_SIZE(geteuid) diff --git a/usr/src/lib/libc/common/sys/getgid.s b/usr/src/lib/libc/common/sys/getgid.s new file mode 100644 index 0000000000..8ee68e6a1c --- /dev/null +++ b/usr/src/lib/libc/common/sys/getgid.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- getgid */ +/* gid_t getgid (void); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(getgid,function) + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_getgid,_getgid,function) + SYSCALL_NOERROR_RVAL1(getgid) + RET + SET_SIZE(getgid) diff --git a/usr/src/lib/libc/common/sys/getgroups.s b/usr/src/lib/libc/common/sys/getgroups.s new file mode 100644 index 0000000000..f7d9930a1f --- /dev/null +++ b/usr/src/lib/libc/common/sys/getgroups.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- getgroups */ +/* int getgroups(int gidsetsize, uid_t grouplist[]); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(getgroups,function) + +#include "SYS.h" + + SYSCALL_RVAL1(getgroups) + RET + SET_SIZE(getgroups) diff --git a/usr/src/lib/libc/common/sys/gethrtime.s b/usr/src/lib/libc/common/sys/gethrtime.s new file mode 100644 index 0000000000..0c2fc628eb --- /dev/null +++ b/usr/src/lib/libc/common/sys/gethrtime.s @@ -0,0 +1,69 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include "SYS.h" + +/* + * hrtime_t gethrtime(void) + * + * Returns the current hi-res real time. + */ + + ENTRY(gethrtime) + SYSFASTTRAP(GETHRTIME) +#if defined(__sparcv9) + /* + * Note that the fast trap actually assumes V8 parameter passing + * conventions, so we have to reassemble a 64-bit value here. + */ + sllx %o0, 32, %o0 + or %o1, %o0, %o0 +#endif + RET + SET_SIZE(gethrtime) + +/* + * hrtime_t gethrvtime(void) + * + * Returns the current hi-res LWP virtual time. + */ + + ENTRY(gethrvtime) + SYSFASTTRAP(GETHRVTIME) +#if defined(__sparcv9) + /* + * Note that the fast trap actually assumes V8 parameter passing + * conventions, so we have to reassemble a 64-bit value here. + */ + sllx %o0, 32, %o0 + or %o1, %o0, %o0 +#endif + RET + SET_SIZE(gethrvtime) diff --git a/usr/src/lib/libc/common/sys/getitimer.s b/usr/src/lib/libc/common/sys/getitimer.s new file mode 100644 index 0000000000..ab272babe0 --- /dev/null +++ b/usr/src/lib/libc/common/sys/getitimer.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- getgid */ +/* int getitimer (int, struct itimerval *value); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(getitimer,function) + +#include "SYS.h" + + SYSCALL_RVAL1(getitimer) + RETC + SET_SIZE(getitimer) diff --git a/usr/src/lib/libc/common/sys/getmsg.s b/usr/src/lib/libc/common/sys/getmsg.s new file mode 100644 index 0000000000..39e8aa2524 --- /dev/null +++ b/usr/src/lib/libc/common/sys/getmsg.s @@ -0,0 +1,44 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- getmsg */ +/* int getmsg (int fd, struct strbuf *ctlptr, */ +/* struct strbuf *dataptr, int *flags) */ + +#include <sys/asm_linkage.h> +#include "SYS.h" + + SYSCALL_RESTART_RVAL1(getmsg) + RET + SET_SIZE(getmsg) diff --git a/usr/src/lib/libc/common/sys/getpagesizes.s b/usr/src/lib/libc/common/sys/getpagesizes.s new file mode 100644 index 0000000000..d70cede69d --- /dev/null +++ b/usr/src/lib/libc/common/sys/getpagesizes.s @@ -0,0 +1,45 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2001 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +/* Copyright (c) 1983, 1984, 1985, 1986, 1987, 1988, 1989 AT&T */ +/* All Rights Reserved */ + +.ident "%Z%%M% %I% %E% SMI" + +/* C library -- getpagesizes */ +/* uint_t getpagesizes(size_t buf[], uint_t nelem) */ + + .file "getpagesizes.s" + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(getpagesizes,function) + +#include "SYS.h" + + SYSCALL(getpagesizes) + RET + SET_SIZE(getpagesizes) diff --git a/usr/src/lib/libc/common/sys/getpid.s b/usr/src/lib/libc/common/sys/getpid.s new file mode 100644 index 0000000000..bd9b8f0f64 --- /dev/null +++ b/usr/src/lib/libc/common/sys/getpid.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- getpid */ +/* pid_t getpid (void) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(getpid,function) + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_getpid,_getpid,function) + SYSCALL_NOERROR_RVAL1(getpid) + RET + SET_SIZE(getpid) diff --git a/usr/src/lib/libc/common/sys/getpmsg.s b/usr/src/lib/libc/common/sys/getpmsg.s new file mode 100644 index 0000000000..9594e79111 --- /dev/null +++ b/usr/src/lib/libc/common/sys/getpmsg.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- getpmsg */ +/* int getpmsg (int fd, struct strbuf *ctlptr, */ +/* struct strbuf *dataptr, int pri, int *flags) */ + +#include "SYS.h" + + SYSCALL_RESTART_RVAL1(getpmsg) + RET + SET_SIZE(getpmsg) diff --git a/usr/src/lib/libc/common/sys/getppid.s b/usr/src/lib/libc/common/sys/getppid.s new file mode 100644 index 0000000000..45c4dd0a3e --- /dev/null +++ b/usr/src/lib/libc/common/sys/getppid.s @@ -0,0 +1,49 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- getppid + * pid_t getppid (void); + */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(getppid,function) + +#include "SYS.h" + + ENTRY(getppid) /* shared syscall: rval1 = pid */ + SYSTRAP_RVAL2(getpid) /* rval2 = ppid */ + RET2 + SET_SIZE(getppid) diff --git a/usr/src/lib/libc/common/sys/getrlimit.s b/usr/src/lib/libc/common/sys/getrlimit.s new file mode 100644 index 0000000000..40952add04 --- /dev/null +++ b/usr/src/lib/libc/common/sys/getrlimit.s @@ -0,0 +1,64 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- getrlimit */ +/* int getrlimit(int resources, struct rlimit *rlp) */ + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(getrlimit,function) +#else + ANSI_PRAGMA_WEAK(getrlimit64,function) +#endif + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + ANSI_PRAGMA_WEAK2(_private_getrlimit,getrlimit,function) + SYSCALL_RVAL1(getrlimit) + RETC + SET_SIZE(getrlimit) + +#else + +/* C library -- getrlimit64 */ +/* int getrlimit64(int resources, struct rlimit64 *rlp) */ + + SYSCALL_RVAL1(getrlimit64) + RETC + SET_SIZE(getrlimit64) + +#endif diff --git a/usr/src/lib/libc/common/sys/getuid.s b/usr/src/lib/libc/common/sys/getuid.s new file mode 100644 index 0000000000..e7e5b29c7e --- /dev/null +++ b/usr/src/lib/libc/common/sys/getuid.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- getuid */ +/* uid_t getuid (void); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(getuid,function) + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_getuid,_getuid,function) + SYSCALL_NOERROR_RVAL1(getuid) + RET + SET_SIZE(getuid) diff --git a/usr/src/lib/libc/common/sys/gtty.s b/usr/src/lib/libc/common/sys/gtty.s new file mode 100644 index 0000000000..a1af420723 --- /dev/null +++ b/usr/src/lib/libc/common/sys/gtty.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- gtty */ +/* int gtty (int fildes, int arg); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(gtty,function) + +#include "SYS.h" + + SYSCALL_RVAL1(gtty) + RET + SET_SIZE(gtty) diff --git a/usr/src/lib/libc/common/sys/install_utrap.s b/usr/src/lib/libc/common/sys/install_utrap.s new file mode 100644 index 0000000000..f861be6698 --- /dev/null +++ b/usr/src/lib/libc/common/sys/install_utrap.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(install_utrap,function) + +#include "SYS.h" + +/* + * int install_utrap(utrap_entry_t type, utrap_handler_t new_handler, + * utrap_handler_t *old_handlerp) + */ + SYSCALL_RVAL1(install_utrap) + RET + SET_SIZE(install_utrap) diff --git a/usr/src/lib/libc/common/sys/ioctl.s b/usr/src/lib/libc/common/sys/ioctl.s new file mode 100644 index 0000000000..6009bee136 --- /dev/null +++ b/usr/src/lib/libc/common/sys/ioctl.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- ioctl */ +/* int ioctl (int fildes, int request, ... ); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(ioctl,function) + +#include "SYS.h" + + SYSCALL_RESTART_RVAL1(ioctl) + RET + SET_SIZE(ioctl) diff --git a/usr/src/lib/libc/common/sys/kaio.s b/usr/src/lib/libc/common/sys/kaio.s new file mode 100644 index 0000000000..cb75d3e2d5 --- /dev/null +++ b/usr/src/lib/libc/common/sys/kaio.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- kaio */ +/* intptr_t kaio (); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(kaio,function) + +#include "SYS.h" + + SYSCALL_RVAL1(kaio) + RET + SET_SIZE(kaio) diff --git a/usr/src/lib/libc/common/sys/kill.s b/usr/src/lib/libc/common/sys/kill.s new file mode 100644 index 0000000000..b1519849e3 --- /dev/null +++ b/usr/src/lib/libc/common/sys/kill.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- kill */ +/* int kill (pid_t pid, int sig); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(kill,function) + +#include "SYS.h" + + SYSCALL_RVAL1(kill) + RETC + SET_SIZE(kill) diff --git a/usr/src/lib/libc/common/sys/lchown.s b/usr/src/lib/libc/common/sys/lchown.s new file mode 100644 index 0000000000..db01eb12bb --- /dev/null +++ b/usr/src/lib/libc/common/sys/lchown.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- lchown */ +/* int lchown(const char *path, uid_t owner, gid_t group) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(lchown,function) + +#include "SYS.h" + + SYSCALL_RVAL1(lchown) + RETC + SET_SIZE(lchown) diff --git a/usr/src/lib/libc/common/sys/link.s b/usr/src/lib/libc/common/sys/link.s new file mode 100644 index 0000000000..290daa3a6a --- /dev/null +++ b/usr/src/lib/libc/common/sys/link.s @@ -0,0 +1,44 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- link */ +/* int link (const char *path1, const char *path2); */ + +#include <sys/asm_linkage.h> + +#include "SYS.h" + + SYSCALL2_RVAL1(__link,link) + RETC + SET_SIZE(__link) diff --git a/usr/src/lib/libc/common/sys/llseek.s b/usr/src/lib/libc/common/sys/llseek.s new file mode 100644 index 0000000000..3dc9aab6a9 --- /dev/null +++ b/usr/src/lib/libc/common/sys/llseek.s @@ -0,0 +1,55 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- llseek + * offset_t llseek(int fildes, offset_t offset, int whence); + */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(llseek,function) + +#include "SYS.h" + +#if CLONGSIZE == 8 /* from sys/asm_linkage.h */ + /* + * For _LP64, llseek() is the same as lseek(). + */ + SYSCALL2_RVAL1(llseek,lseek) +#else + SYSCALL64(llseek) +#endif + RET + SET_SIZE(llseek) diff --git a/usr/src/lib/libc/common/sys/lseek.s b/usr/src/lib/libc/common/sys/lseek.s new file mode 100644 index 0000000000..b7011b1a7a --- /dev/null +++ b/usr/src/lib/libc/common/sys/lseek.s @@ -0,0 +1,65 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- lseek */ +/* off_t lseek(int fildes, off_t offset, int whence); */ + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(lseek,function) +#else + ANSI_PRAGMA_WEAK(lseek64,function) +#endif + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RVAL1(lseek) + RET + SET_SIZE(lseek) + +#else + +/* C library -- lseek64 transitional large file API */ +/* off64_t lseek64(int fildes, off64_t offset, int whence); */ + + ENTRY(lseek64) + SYSTRAP_64RVAL(llseek) + SYSCERROR64 + RET + SET_SIZE(lseek64) + +#endif diff --git a/usr/src/lib/libc/common/sys/lstat.s b/usr/src/lib/libc/common/sys/lstat.s new file mode 100644 index 0000000000..dabe0f3b45 --- /dev/null +++ b/usr/src/lib/libc/common/sys/lstat.s @@ -0,0 +1,63 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- lstat */ +/* error = lstat(const char *path, struct lstat *buf) */ + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(lstat,function) +#else + ANSI_PRAGMA_WEAK(lstat64,function) +#endif + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RVAL1(lstat) + RETC + SET_SIZE(lstat) + +#else + +/* C library -- lstat64 - transitional large file API */ +/* error = lstat64(const char *path, struct stat64 *buf) */ + + SYSCALL_RVAL1(lstat64) + RETC + SET_SIZE(lstat64) + +#endif diff --git a/usr/src/lib/libc/common/sys/memcntl.s b/usr/src/lib/libc/common/sys/memcntl.s new file mode 100644 index 0000000000..05dc9c3311 --- /dev/null +++ b/usr/src/lib/libc/common/sys/memcntl.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- memcntl */ +/* int memcntl(caddr_t addr, size_t len, int cmd, + int attr, int arg) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(memcntl,function) + +#include "SYS.h" + + SYSCALL_RVAL1(memcntl) + RETC + SET_SIZE(memcntl) diff --git a/usr/src/lib/libc/common/sys/mincore.s b/usr/src/lib/libc/common/sys/mincore.s new file mode 100644 index 0000000000..7f2cc90b8f --- /dev/null +++ b/usr/src/lib/libc/common/sys/mincore.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- mincore */ +/* int mincore(caddr_t addr, size_t len, char *vec) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(mincore,function) + +#include "SYS.h" + + SYSCALL_RVAL1(mincore) + RETC + SET_SIZE(mincore) diff --git a/usr/src/lib/libc/common/sys/mkdir.s b/usr/src/lib/libc/common/sys/mkdir.s new file mode 100644 index 0000000000..88a1e36c76 --- /dev/null +++ b/usr/src/lib/libc/common/sys/mkdir.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- mkdir */ +/* int mkdir (const char *path, mode_t mode); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(mkdir,function) + +#include "SYS.h" + + SYSCALL_RVAL1(mkdir) + RET + SET_SIZE(mkdir) diff --git a/usr/src/lib/libc/common/sys/mknod.s b/usr/src/lib/libc/common/sys/mknod.s new file mode 100644 index 0000000000..de711cc8ab --- /dev/null +++ b/usr/src/lib/libc/common/sys/mknod.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- mknod */ +/* int mknod(const char *path, mode_t mode, dev_t dev); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(mknod,function) + +#include "SYS.h" + + SYSCALL_RVAL1(mknod) + RETC + SET_SIZE(mknod) diff --git a/usr/src/lib/libc/common/sys/mmap.s b/usr/src/lib/libc/common/sys/mmap.s new file mode 100644 index 0000000000..e8df86b7ad --- /dev/null +++ b/usr/src/lib/libc/common/sys/mmap.s @@ -0,0 +1,86 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(mmap,function) +#else + ANSI_PRAGMA_WEAK(mmap64,function) +#endif + +#include "SYS.h" +#include <sys/mman.h> /* Need _MAP_NEW definition */ + +#if !defined(_LARGEFILE_SOURCE) + +/* + * C library -- mmap + * caddr_t mmap(caddr_t addr, size_t len, int prot, + * int flags, int fd, off_t off) + */ + + ANSI_PRAGMA_WEAK2(_private_mmap,mmap,function) + + ENTRY(mmap) +#if defined(__sparc) + /* this depends upon the _MAP_NEW flag being in the top bits */ + sethi %hi(_MAP_NEW), %g1 + or %g1, %o3, %o3 +#endif + SYSTRAP_RVAL1(mmap) + SYSCERROR + RET + SET_SIZE(mmap) + +#else + +/* + * C library -- mmap64 + * caddr_t mmap64(caddr_t addr, size_t len, int prot, + * int flags, int fd, off64_t off) + */ + + ENTRY(mmap64) +#if defined(__sparc) + /* this depends upon the _MAP_NEW flag being in the top bits */ + sethi %hi(_MAP_NEW), %g1 + or %g1, %o3, %o3 +#endif + SYSTRAP_RVAL1(mmap64) + SYSCERROR + RET + SET_SIZE(mmap64) + +#endif diff --git a/usr/src/lib/libc/common/sys/modctl.s b/usr/src/lib/libc/common/sys/modctl.s new file mode 100644 index 0000000000..6f50f4a6ec --- /dev/null +++ b/usr/src/lib/libc/common/sys/modctl.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- modctl */ +/* int modctl(int opcode, char *arg) */ + +#include "SYS.h" + + SYSCALL_RVAL1(modctl) + RETC + SET_SIZE(modctl) diff --git a/usr/src/lib/libc/common/sys/mount.s b/usr/src/lib/libc/common/sys/mount.s new file mode 100644 index 0000000000..99e26969f8 --- /dev/null +++ b/usr/src/lib/libc/common/sys/mount.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- mount */ +/* int mount(const char *spec, const char *dir, int mflag, + int fstype, const char *dataptr, int datalen); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(mount,function) + +#include "SYS.h" + + SYSCALL_RVAL1(mount) + RETC + SET_SIZE(mount) diff --git a/usr/src/lib/libc/common/sys/mprotect.s b/usr/src/lib/libc/common/sys/mprotect.s new file mode 100644 index 0000000000..6843b12767 --- /dev/null +++ b/usr/src/lib/libc/common/sys/mprotect.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- mprotect */ +/* int mprotect(caddr_t addr, size_t len, int prot) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(mprotect,function) + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_mprotect,mprotect,function) + SYSCALL_RVAL1(mprotect) + RETC + SET_SIZE(mprotect) diff --git a/usr/src/lib/libc/common/sys/munmap.s b/usr/src/lib/libc/common/sys/munmap.s new file mode 100644 index 0000000000..5180b30ce2 --- /dev/null +++ b/usr/src/lib/libc/common/sys/munmap.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- munmap */ +/* int munmap(caddr_t addr, size_t len) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(munmap,function) + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_munmap,munmap,function) + SYSCALL_RVAL1(munmap) + RETC + SET_SIZE(munmap) diff --git a/usr/src/lib/libc/common/sys/nice.s b/usr/src/lib/libc/common/sys/nice.s new file mode 100644 index 0000000000..4e1709c74a --- /dev/null +++ b/usr/src/lib/libc/common/sys/nice.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- nice */ +/* int nice (int incr); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(nice,function) + +#include "SYS.h" + + SYSCALL_RVAL1(nice) + RET + SET_SIZE(nice) diff --git a/usr/src/lib/libc/common/sys/ntp_adjtime.s b/usr/src/lib/libc/common/sys/ntp_adjtime.s new file mode 100644 index 0000000000..0c6435b02a --- /dev/null +++ b/usr/src/lib/libc/common/sys/ntp_adjtime.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- ntp_adjtime */ +/* int ntp_adjtime (struct timex *); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(ntp_adjtime,function) + +#include "SYS.h" + + SYSCALL_RVAL1(ntp_adjtime) + RET + SET_SIZE(ntp_adjtime) diff --git a/usr/src/lib/libc/common/sys/ntp_gettime.s b/usr/src/lib/libc/common/sys/ntp_gettime.s new file mode 100644 index 0000000000..18c796dada --- /dev/null +++ b/usr/src/lib/libc/common/sys/ntp_gettime.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- ntp_gettime */ +/* int ntp_gettime (struct ntptimeval *); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(ntp_gettime,function) + +#include "SYS.h" + + SYSCALL_RVAL1(ntp_gettime) + RET + SET_SIZE(ntp_gettime) diff --git a/usr/src/lib/libc/common/sys/open.s b/usr/src/lib/libc/common/sys/open.s new file mode 100644 index 0000000000..df5386a726 --- /dev/null +++ b/usr/src/lib/libc/common/sys/open.s @@ -0,0 +1,55 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) +/* C library -- open */ +/* int open (const char *path, int oflag, [ mode_t mode ] ) */ + + SYSCALL2_RVAL1(__open,open) + RET + SET_SIZE(__open) + +#else +/* + * C library -- open64 - transitional API + * int open64 (const char *path, int oflag, [ mode_t mode ] ) + */ + + SYSCALL2_RVAL1(__open64,open64) + RET + SET_SIZE(__open64) + +#endif diff --git a/usr/src/lib/libc/common/sys/p_online.s b/usr/src/lib/libc/common/sys/p_online.s new file mode 100644 index 0000000000..c2dc8508f2 --- /dev/null +++ b/usr/src/lib/libc/common/sys/p_online.s @@ -0,0 +1,40 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- p_online + * int p_online(processorid_t cpu, int flag); + */ + +#include "SYS.h" + + SYSCALL_RVAL1(p_online) + RET + SET_SIZE(p_online) diff --git a/usr/src/lib/libc/common/sys/pathconf.s b/usr/src/lib/libc/common/sys/pathconf.s new file mode 100644 index 0000000000..1e6bd8ab56 --- /dev/null +++ b/usr/src/lib/libc/common/sys/pathconf.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- pathconf */ +/* long pathconf(char *path, int name) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(pathconf,function) + +#include "SYS.h" + + SYSCALL_RVAL1(pathconf) + RET + SET_SIZE(pathconf) diff --git a/usr/src/lib/libc/common/sys/pause.s b/usr/src/lib/libc/common/sys/pause.s new file mode 100644 index 0000000000..e07ed61397 --- /dev/null +++ b/usr/src/lib/libc/common/sys/pause.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library - pause */ +/* int pause (void); */ + +#include "SYS.h" + + SYSCALL_RVAL1(pause) + RET + SET_SIZE(pause) diff --git a/usr/src/lib/libc/common/sys/pcsample.s b/usr/src/lib/libc/common/sys/pcsample.s new file mode 100644 index 0000000000..db40f2d2df --- /dev/null +++ b/usr/src/lib/libc/common/sys/pcsample.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- pcsample */ +/* long pcsample(uintptr_t buf[], long nsamples); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(pcsample,function) + +#include "SYS.h" + + SYSCALL_RVAL1(pcsample) + RET + SET_SIZE(pcsample) diff --git a/usr/src/lib/libc/common/sys/pollsys.s b/usr/src/lib/libc/common/sys/pollsys.s new file mode 100644 index 0000000000..4294f73a50 --- /dev/null +++ b/usr/src/lib/libc/common/sys/pollsys.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- __pollsys + * int __pollsys(struct poll fds[], unsigned long nfds, + timespec_t *timeout, sigset_t *sigmask); + */ + +#include <sys/asm_linkage.h> +#include "SYS.h" + + SYSCALL2_RVAL1(__pollsys,pollsys) + RET + SET_SIZE(__pollsys) diff --git a/usr/src/lib/libc/common/sys/pread.s b/usr/src/lib/libc/common/sys/pread.s new file mode 100644 index 0000000000..31207d81d6 --- /dev/null +++ b/usr/src/lib/libc/common/sys/pread.s @@ -0,0 +1,55 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- pread */ +/* int pread (int fildes, void *buf, unsigned nbyte, off_t offset); */ + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RESTART_RVAL1(pread) + RET + SET_SIZE(pread) + +#else + +/* C library -- pread64 transitional large file API */ +/* ssize_t pread(int, void *, size_t, off64_t); */ + + SYSCALL_RESTART_RVAL1(pread64) + RET + SET_SIZE(pread64) + +#endif diff --git a/usr/src/lib/libc/common/sys/priocntlset.s b/usr/src/lib/libc/common/sys/priocntlset.s new file mode 100644 index 0000000000..78099580d9 --- /dev/null +++ b/usr/src/lib/libc/common/sys/priocntlset.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- priocntlset */ +/* long priocntlset(procset_t psp, int cmd, int arg) */ + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private__priocntlset,__priocntlset,function) + SYSCALL2_RVAL1(__priocntlset,priocntlsys) + RET + SET_SIZE(__priocntlset) diff --git a/usr/src/lib/libc/common/sys/processor_bind.s b/usr/src/lib/libc/common/sys/processor_bind.s new file mode 100644 index 0000000000..58b7489af0 --- /dev/null +++ b/usr/src/lib/libc/common/sys/processor_bind.s @@ -0,0 +1,41 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- processor_bind + * processor_bind(idtype_t idtype, id_t id, + * processorid_t processorid, processorid_t *obind) + */ + +#include "SYS.h" + + SYSCALL_RVAL1(processor_bind) + RET + SET_SIZE(processor_bind) diff --git a/usr/src/lib/libc/common/sys/processor_info.s b/usr/src/lib/libc/common/sys/processor_info.s new file mode 100644 index 0000000000..42877965e5 --- /dev/null +++ b/usr/src/lib/libc/common/sys/processor_info.s @@ -0,0 +1,40 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- processor_info + * processor_info(processorid_t processorid, processorid_t *obind) + */ + +#include "SYS.h" + + SYSCALL_RVAL1(processor_info) + RET + SET_SIZE(processor_info) diff --git a/usr/src/lib/libc/common/sys/profil.s b/usr/src/lib/libc/common/sys/profil.s new file mode 100644 index 0000000000..46d97b7828 --- /dev/null +++ b/usr/src/lib/libc/common/sys/profil.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- profil */ +/* void profil (short *buff, int buffsz, int offset, int scale);*/ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(profil,function) + +#include "SYS.h" + + SYSCALL_NOERROR_RVAL1(profil) + RET + SET_SIZE(profil) diff --git a/usr/src/lib/libc/common/sys/putmsg.s b/usr/src/lib/libc/common/sys/putmsg.s new file mode 100644 index 0000000000..423e16f1a1 --- /dev/null +++ b/usr/src/lib/libc/common/sys/putmsg.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- putmsg */ +/* int putmsg (int fd, struct const strbuf *ctlptr, + struct const strbuf *dataptr, int *flags) */ + +#include "SYS.h" + + SYSCALL_RESTART_RVAL1(putmsg) + RET + SET_SIZE(putmsg) diff --git a/usr/src/lib/libc/common/sys/putpmsg.s b/usr/src/lib/libc/common/sys/putpmsg.s new file mode 100644 index 0000000000..f2a56f3006 --- /dev/null +++ b/usr/src/lib/libc/common/sys/putpmsg.s @@ -0,0 +1,43 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- putpmsg */ +/* int putpmsg (int fd, struct const strbuf *ctlptr, + struct const strbuf *dataptr, int *flags) */ + +#include "SYS.h" + + SYSCALL_RESTART_RVAL1(putpmsg) + RET + SET_SIZE(putpmsg) diff --git a/usr/src/lib/libc/common/sys/pwrite.s b/usr/src/lib/libc/common/sys/pwrite.s new file mode 100644 index 0000000000..cff21b3c20 --- /dev/null +++ b/usr/src/lib/libc/common/sys/pwrite.s @@ -0,0 +1,51 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- pwrite */ +/* int pwrite (int fildes, const void *buf, unsigned nbyte, off_t offset); */ + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RESTART_RVAL1(pwrite) + RET + SET_SIZE(pwrite) + +#else + +/* C library -- lseek64 transitional large file API */ +/* ssize_t pwrite(int, void *, size_t, off64_t); */ + + SYSCALL_RESTART_RVAL1(pwrite64) + RET + SET_SIZE(pwrite64) + +#endif diff --git a/usr/src/lib/libc/common/sys/read.s b/usr/src/lib/libc/common/sys/read.s new file mode 100644 index 0000000000..f124bc7b68 --- /dev/null +++ b/usr/src/lib/libc/common/sys/read.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- read */ +/* int read (int fildes, void *buf, unsigned nbyte); */ + +#include "SYS.h" + + SYSCALL_RESTART_RVAL1(read) + RET + SET_SIZE(read) diff --git a/usr/src/lib/libc/common/sys/readlink.s b/usr/src/lib/libc/common/sys/readlink.s new file mode 100644 index 0000000000..4a4d9d1883 --- /dev/null +++ b/usr/src/lib/libc/common/sys/readlink.s @@ -0,0 +1,48 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* + * C library -- readlink + * ssize_t readlink(const char *path, char *buf, size_t bufsize); + */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(readlink,function) + +#include "SYS.h" + + SYSCALL_RVAL1(readlink) + RET + SET_SIZE(readlink) diff --git a/usr/src/lib/libc/common/sys/readv.s b/usr/src/lib/libc/common/sys/readv.s new file mode 100644 index 0000000000..c8990a99c2 --- /dev/null +++ b/usr/src/lib/libc/common/sys/readv.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- readv */ +/* nt readv(int fildes, void *iovp[], int iovcnt[]) */ + +#include "SYS.h" + + SYSCALL_RESTART_RVAL1(readv) + RET + SET_SIZE(readv) diff --git a/usr/src/lib/libc/common/sys/resolvepath.s b/usr/src/lib/libc/common/sys/resolvepath.s new file mode 100644 index 0000000000..1ef05e84a4 --- /dev/null +++ b/usr/src/lib/libc/common/sys/resolvepath.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- resolvepath */ +/* int resolvepath(const char *path, void *buf, int bufsiz) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(resolvepath,function) + +#include "SYS.h" + + SYSCALL_RVAL1(resolvepath) + RET + SET_SIZE(resolvepath) diff --git a/usr/src/lib/libc/common/sys/rmdir.s b/usr/src/lib/libc/common/sys/rmdir.s new file mode 100644 index 0000000000..6067763b40 --- /dev/null +++ b/usr/src/lib/libc/common/sys/rmdir.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- rmdir */ +/* int rmdir (const char *path); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(rmdir,function) + +#include "SYS.h" + + SYSCALL_RVAL1(rmdir) + RET + SET_SIZE(rmdir) diff --git a/usr/src/lib/libc/common/sys/seteguid.s b/usr/src/lib/libc/common/sys/seteguid.s new file mode 100644 index 0000000000..cfc6991dc3 --- /dev/null +++ b/usr/src/lib/libc/common/sys/seteguid.s @@ -0,0 +1,53 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- setegid, seteuid */ +/* int setegid (gid_t gid) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(setegid,function) + ANSI_PRAGMA_WEAK(seteuid,function) + +#include "SYS.h" + + SYSCALL_RVAL1(setegid) + RET + SET_SIZE(setegid) + +/* int seteuid (uid_t uid) */ + + SYSCALL_RVAL1(seteuid) + RET + SET_SIZE(seteuid) diff --git a/usr/src/lib/libc/common/sys/setgid.s b/usr/src/lib/libc/common/sys/setgid.s new file mode 100644 index 0000000000..a12dc5adcf --- /dev/null +++ b/usr/src/lib/libc/common/sys/setgid.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- setgid */ +/* int setgid(gid_t gid); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(setgid,function) + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_setgid,_setgid,function) + SYSCALL_RVAL1(setgid) + RETC + SET_SIZE(setgid) diff --git a/usr/src/lib/libc/common/sys/setgroups.s b/usr/src/lib/libc/common/sys/setgroups.s new file mode 100644 index 0000000000..6b128d67df --- /dev/null +++ b/usr/src/lib/libc/common/sys/setgroups.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- setgroups */ +/* int setgroups(int ngroups, uid_t grouplist[]) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(setgroups,function) + +#include "SYS.h" + + SYSCALL_RVAL1(setgroups) + RETC + SET_SIZE(setgroups) diff --git a/usr/src/lib/libc/common/sys/setitimer.s b/usr/src/lib/libc/common/sys/setitimer.s new file mode 100644 index 0000000000..bfb2de13cb --- /dev/null +++ b/usr/src/lib/libc/common/sys/setitimer.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- setitimer */ +/* int setitimer (int, const struct itimerval *, struct itimerval *); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(setitimer,function) + +#include "SYS.h" + + SYSCALL_RVAL1(setitimer) + RETC + SET_SIZE(setitimer) diff --git a/usr/src/lib/libc/common/sys/setreid.s b/usr/src/lib/libc/common/sys/setreid.s new file mode 100644 index 0000000000..c04b9df6e1 --- /dev/null +++ b/usr/src/lib/libc/common/sys/setreid.s @@ -0,0 +1,44 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(setreuid,function) + ANSI_PRAGMA_WEAK(setregid,function) + +#include "SYS.h" + + SYSCALL_RVAL1(setreuid) + RETC + SET_SIZE(setreuid) + + SYSCALL_RVAL1(setregid) + RETC + SET_SIZE(setregid) diff --git a/usr/src/lib/libc/common/sys/setrlimit.s b/usr/src/lib/libc/common/sys/setrlimit.s new file mode 100644 index 0000000000..b8630b272e --- /dev/null +++ b/usr/src/lib/libc/common/sys/setrlimit.s @@ -0,0 +1,60 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- setrlimit */ +/* int setrlimit(int resource, const struct rlimit *rlp) */ + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(setrlimit,function) +#else + ANSI_PRAGMA_WEAK(setrlimit64,function) +#endif + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RVAL1(setrlimit) + RETC + SET_SIZE(setrlimit) + +#else + + SYSCALL_RVAL1(setrlimit64) + RETC + SET_SIZE(setrlimit64) + +#endif diff --git a/usr/src/lib/libc/common/sys/setuid.s b/usr/src/lib/libc/common/sys/setuid.s new file mode 100644 index 0000000000..115ef8bf8f --- /dev/null +++ b/usr/src/lib/libc/common/sys/setuid.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- setuid */ +/* int setuid (uid_t uid); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(setuid,function) + +#include "SYS.h" + + ANSI_PRAGMA_WEAK2(_private_setuid,_setuid,function) + SYSCALL_RVAL1(setuid) + RETC + SET_SIZE(setuid) diff --git a/usr/src/lib/libc/common/sys/sigaltstk.s b/usr/src/lib/libc/common/sys/sigaltstk.s new file mode 100644 index 0000000000..38b8e648ec --- /dev/null +++ b/usr/src/lib/libc/common/sys/sigaltstk.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- sigaltstack */ +/* int sigaltstack (stack_t *ss, stack_t *oss); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(sigaltstack,function) + +#include "SYS.h" + + SYSCALL_RVAL1(sigaltstack) + RETC + SET_SIZE(sigaltstack) diff --git a/usr/src/lib/libc/common/sys/sigprocmsk.s b/usr/src/lib/libc/common/sys/sigprocmsk.s new file mode 100644 index 0000000000..68891726e1 --- /dev/null +++ b/usr/src/lib/libc/common/sys/sigprocmsk.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- sigprocmask */ +/* int sigprocmask (int how, sigset_t *set, sigset_t *oset) */ + +#include "SYS.h" + + SYSCALL2_RVAL1(__sigprocmask,sigprocmask) + RETC + SET_SIZE(__sigprocmask) diff --git a/usr/src/lib/libc/common/sys/sigsendset.s b/usr/src/lib/libc/common/sys/sigsendset.s new file mode 100644 index 0000000000..934c110edc --- /dev/null +++ b/usr/src/lib/libc/common/sys/sigsendset.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- sigsendset */ +/* int sigsendset(procset_t *psp, int sig) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(sigsendset,function) + +#include "SYS.h" + + SYSCALL2_RVAL1(sigsendset,sigsendsys) + RETC + SET_SIZE(sigsendset) diff --git a/usr/src/lib/libc/common/sys/sigsuspend.s b/usr/src/lib/libc/common/sys/sigsuspend.s new file mode 100644 index 0000000000..c0cdd47478 --- /dev/null +++ b/usr/src/lib/libc/common/sys/sigsuspend.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- sigsuspend trap */ +/* int __sigsuspend (sigset_t *set); */ + +#include "SYS.h" + + SYSCALL2_RVAL1(__sigsuspend,sigsuspend) + RETC + SET_SIZE(__sigsuspend) diff --git a/usr/src/lib/libc/common/sys/stat.s b/usr/src/lib/libc/common/sys/stat.s new file mode 100644 index 0000000000..ae624e6b89 --- /dev/null +++ b/usr/src/lib/libc/common/sys/stat.s @@ -0,0 +1,63 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- stat */ +/* int stat (const char *path, struct stat *buf); */ + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(stat,function) +#else + ANSI_PRAGMA_WEAK(stat64,function) +#endif + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RVAL1(stat) + RETC + SET_SIZE(stat) + +#else + +/* C library -- stat64 - transitional API */ +/* int stat64 (const char *path, struct stat64 *buf); */ + + SYSCALL_RVAL1(stat64) + RETC + SET_SIZE(stat64) + +#endif diff --git a/usr/src/lib/libc/common/sys/statfs.s b/usr/src/lib/libc/common/sys/statfs.s new file mode 100644 index 0000000000..4010e364d6 --- /dev/null +++ b/usr/src/lib/libc/common/sys/statfs.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- statfs */ +/* int statfs (const char *path, struct statfs *buf, int len, */ +/* int fstyp); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(statfs,function) + +#include "SYS.h" + + SYSCALL_RVAL1(statfs) + RETC + SET_SIZE(statfs) diff --git a/usr/src/lib/libc/common/sys/statvfs.s b/usr/src/lib/libc/common/sys/statvfs.s new file mode 100644 index 0000000000..b2f87ef5f4 --- /dev/null +++ b/usr/src/lib/libc/common/sys/statvfs.s @@ -0,0 +1,63 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- statvfs */ +/* int statvfs(const char *path, struct statvfs *statbuf) */ + +#include <sys/asm_linkage.h> + +#if !defined(_LARGEFILE_SOURCE) + ANSI_PRAGMA_WEAK(statvfs,function) +#else + ANSI_PRAGMA_WEAK(statvfs64,function) +#endif + +#include "SYS.h" + +#if !defined(_LARGEFILE_SOURCE) + + SYSCALL_RVAL1(statvfs) + RETC + SET_SIZE(statvfs) + +#else + +/* C library -- statvfs64 */ +/* int statvfs64(const char *path, struct statvfs64 *statbuf) */ + + SYSCALL_RVAL1(statvfs64) + RETC + SET_SIZE(statvfs64) + +#endif diff --git a/usr/src/lib/libc/common/sys/stty.s b/usr/src/lib/libc/common/sys/stty.s new file mode 100644 index 0000000000..f020360c64 --- /dev/null +++ b/usr/src/lib/libc/common/sys/stty.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- stty */ +/* int stty (char *path, struct ?? buf, int len); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(stty,function) + +#include "SYS.h" + + SYSCALL_RVAL1(stty) + RETC + SET_SIZE(stty) diff --git a/usr/src/lib/libc/common/sys/symlink.s b/usr/src/lib/libc/common/sys/symlink.s new file mode 100644 index 0000000000..dd0408b6e9 --- /dev/null +++ b/usr/src/lib/libc/common/sys/symlink.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- symlink */ +/* int symlink(const char *name1, const char *name2) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(symlink,function) + +#include "SYS.h" + + SYSCALL_RVAL1(symlink) + RETC + SET_SIZE(symlink) diff --git a/usr/src/lib/libc/common/sys/sync.s b/usr/src/lib/libc/common/sys/sync.s new file mode 100644 index 0000000000..1184210683 --- /dev/null +++ b/usr/src/lib/libc/common/sys/sync.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- sync */ +/* void sync (void); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(sync,function) + +#include "SYS.h" + + SYSCALL_NOERROR_RVAL1(sync) + RETC + SET_SIZE(sync) diff --git a/usr/src/lib/libc/common/sys/sysconfig.s b/usr/src/lib/libc/common/sys/sysconfig.s new file mode 100644 index 0000000000..9ec706f360 --- /dev/null +++ b/usr/src/lib/libc/common/sys/sysconfig.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- _sysconfig */ +/* int _sysconfig(name) */ + +#include "SYS.h" + + SYSCALL2_RVAL1(_sysconfig,sysconfig) + RET + SET_SIZE(_sysconfig) diff --git a/usr/src/lib/libc/common/sys/sysfs.s b/usr/src/lib/libc/common/sys/sysfs.s new file mode 100644 index 0000000000..198bb220b9 --- /dev/null +++ b/usr/src/lib/libc/common/sys/sysfs.s @@ -0,0 +1,48 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- sysfs */ +/* int sysfs (int opcode, const char *fsname); */ +/* int sysfs (int opcode, int fs_index, char *buf); */ +/* int sysfs (int opcode); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(sysfs,function) + +#include "SYS.h" + + SYSCALL_RVAL1(sysfs) + RET + SET_SIZE(sysfs) diff --git a/usr/src/lib/libc/common/sys/sysinfo.s b/usr/src/lib/libc/common/sys/sysinfo.s new file mode 100644 index 0000000000..640e74da29 --- /dev/null +++ b/usr/src/lib/libc/common/sys/sysinfo.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- sysinfo */ +/* int sysinfo(cmd, buf, count) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(sysinfo,function) + +#include "SYS.h" + + SYSCALL2_RVAL1(sysinfo,systeminfo) + RET + SET_SIZE(sysinfo) diff --git a/usr/src/lib/libc/common/sys/syslwp.s b/usr/src/lib/libc/common/sys/syslwp.s new file mode 100644 index 0000000000..1b0cca505f --- /dev/null +++ b/usr/src/lib/libc/common/sys/syslwp.s @@ -0,0 +1,247 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(_lwp_continue,function) + ANSI_PRAGMA_WEAK(_lwp_kill,function) + ANSI_PRAGMA_WEAK(_lwp_self,function) + ANSI_PRAGMA_WEAK(_lwp_cond_broadcast,function) + ANSI_PRAGMA_WEAK(_lwp_cond_signal,function) + ANSI_PRAGMA_WEAK(_lwp_sema_trywait,function) + ANSI_PRAGMA_WEAK(_lwp_sema_post,function) + ANSI_PRAGMA_WEAK(_lwp_info,function) + +#include "SYS.h" + +/* + * int + * __lwp_create(ucontext_t *uc, unsigned long flags, lwpid_t *lwpidp) + */ + ENTRY(__lwp_create) + SYSTRAP_RVAL1(lwp_create) + SYSLWPERR + RET + SET_SIZE(__lwp_create) + +/* + * int + * __lwp_continue(lwpid_t lwpid) + */ + ENTRY(__lwp_continue) + SYSTRAP_RVAL1(lwp_continue) + SYSLWPERR + RET + SET_SIZE(__lwp_continue) + +/* + * int + * ___lwp_suspend(lwpid_t lwpid) + */ + SYSREENTRY(___lwp_suspend) + SYSTRAP_RVAL1(lwp_suspend) + SYSINTR_RESTART(.restart____lwp_suspend) + RET + SET_SIZE(___lwp_suspend) + +/* + * int + * __lwp_kill(lwpid_t lwpid, int sig) + */ + ENTRY(__lwp_kill) + SYSTRAP_RVAL1(lwp_kill) + SYSLWPERR + RET + SET_SIZE(__lwp_kill) + +/* + * lwpid_t + * __lwp_self(void) + */ + ENTRY(__lwp_self) + SYSTRAP_RVAL1(lwp_self) + RET + SET_SIZE(__lwp_self) + +/* + * int + * __lwp_wait(lwpid_t lwpid, lwpid_t *departed) + */ + ENTRY(__lwp_wait) + SYSTRAP_RVAL1(lwp_wait) + SYSLWPERR + RET + SET_SIZE(__lwp_wait) + +/* + * int + * __lwp_detach(lwpid_t lwpid) + */ + ENTRY(__lwp_detach) + SYSTRAP_RVAL1(lwp_detach) + SYSLWPERR + RET + SET_SIZE(__lwp_detach) + +/* + * The ___lwp_mutex_timedlock() and ___lwp_mutex_wakeup() functions + * are called while holding non-preemptive spin locks and we must + * not call out of the library while holding such locks in order + * to avoid invoking the dynamic linker. For this reason, these + * functions must never become exported symbols from the library. + */ + +/* + * int + * ___lwp_mutex_timedlock(lwp_mutex_t *, timespec_t *) + */ + SYSREENTRY(___lwp_mutex_timedlock) + SYSTRAP_RVAL1(lwp_mutex_timedlock) + SYSINTR_RESTART(.restart____lwp_mutex_timedlock) + RET + SET_SIZE(___lwp_mutex_timedlock) + +/* + * int + * ___lwp_mutex_wakeup(lwp_mutex_t *mp) + */ + ENTRY(___lwp_mutex_wakeup) + SYSTRAP_RVAL1(lwp_mutex_wakeup) + SYSLWPERR + RET + SET_SIZE(___lwp_mutex_wakeup) + +/* + * int + * __lwp_cond_broadcast(lwp_cond_t *cvp) + */ + ENTRY(__lwp_cond_broadcast) + SYSTRAP_RVAL1(lwp_cond_broadcast) + SYSLWPERR + RET + SET_SIZE(__lwp_cond_broadcast) + +/* + * int + * ___lwp_cond_wait(lwp_cond_t *, lwp_mutex_t *, timespec_t *, int) + */ + ENTRY(___lwp_cond_wait) + SYSTRAP_RVAL1(lwp_cond_wait) + SYSLWPERR + RET + SET_SIZE(___lwp_cond_wait) + +/* + * int + * __lwp_cond_signal(lwp_cond_t *cvp) + */ + ENTRY(__lwp_cond_signal) + SYSTRAP_RVAL1(lwp_cond_signal) + SYSLWPERR + RET + SET_SIZE(__lwp_cond_signal) + +/* + * int + * ___lwp_sema_timedwait(lwp_sema_t *, timespec_t *, int check_park) + */ + ENTRY(___lwp_sema_timedwait) + SYSTRAP_RVAL1(lwp_sema_timedwait) + SYSLWPERR + RET + SET_SIZE(___lwp_sema_timedwait) + +/* + * int + * __lwp_sema_trywait(lwp_sema_t *sp) + */ + ENTRY(__lwp_sema_trywait) + SYSTRAP_RVAL1(lwp_sema_trywait) + SYSLWPERR + RET + SET_SIZE(__lwp_sema_trywait) + +/* + * int + * __lwp_sema_post(lwp_sema_t *sp) + */ + ENTRY(__lwp_sema_post) + SYSTRAP_RVAL1(lwp_sema_post) + SYSLWPERR + RET + SET_SIZE(__lwp_sema_post) + +/* + * int + * __lwp_info(struct lwpinfo *infop) + */ + ENTRY(__lwp_info) + SYSTRAP_RVAL1(lwp_info) + SYSLWPERR + RET + SET_SIZE(__lwp_info) + +/* + * sc_shared_t * + * __schedctl(void) + */ + SYSCALL2_RVAL1(__schedctl,schedctl) + RET + SET_SIZE(__schedctl) + +/* + * int + * ___lwp_mutex_trylock(lwp_mutex_t *mp) + */ + ENTRY(___lwp_mutex_trylock) + SYSTRAP_RVAL1(lwp_mutex_trylock) + SYSLWPERR + RET + SET_SIZE(___lwp_mutex_trylock) + +/* + * int + * ___lwp_mutex_unlock(lwp_mutex_t *mp) + */ + ENTRY(___lwp_mutex_unlock) + SYSTRAP_RVAL1(lwp_mutex_unlock) + SYSLWPERR + RET + SET_SIZE(___lwp_mutex_unlock) + +/* + * int + * ___lwp_mutex_init(lwp_mutex_t *mp, int type) + */ + ENTRY(___lwp_mutex_init) + SYSTRAP_RVAL1(lwp_mutex_init) + SYSLWPERR + RET + SET_SIZE(___lwp_mutex_init) diff --git a/usr/src/lib/libc/common/sys/times.s b/usr/src/lib/libc/common/sys/times.s new file mode 100644 index 0000000000..5607f4d50f --- /dev/null +++ b/usr/src/lib/libc/common/sys/times.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- times */ +/* long times (struct tms *buffer); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(times,function) + +#include "SYS.h" + + SYSCALL_RVAL1(times) + RET + SET_SIZE(times) diff --git a/usr/src/lib/libc/common/sys/ulimit.s b/usr/src/lib/libc/common/sys/ulimit.s new file mode 100644 index 0000000000..b4715957f0 --- /dev/null +++ b/usr/src/lib/libc/common/sys/ulimit.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- ulimit */ +/* long ulimit (int cmd, long newlimit); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(ulimit,function) + +#include "SYS.h" + + SYSCALL_RVAL1(ulimit) + RET + SET_SIZE(ulimit) diff --git a/usr/src/lib/libc/common/sys/umask.s b/usr/src/lib/libc/common/sys/umask.s new file mode 100644 index 0000000000..8efa975c55 --- /dev/null +++ b/usr/src/lib/libc/common/sys/umask.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- umask */ +/* mode_t umask (mode_t cmask); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(umask,function) + +#include "SYS.h" + + SYSCALL_RVAL1(umask) + RET + SET_SIZE(umask) diff --git a/usr/src/lib/libc/common/sys/umount2.s b/usr/src/lib/libc/common/sys/umount2.s new file mode 100644 index 0000000000..4613d4fe05 --- /dev/null +++ b/usr/src/lib/libc/common/sys/umount2.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- umount2 */ +/* int umount2 (const char *file, int flag); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(umount2,function) + +#include "SYS.h" + + SYSCALL_RVAL1(umount2) + RETC + SET_SIZE(umount2) diff --git a/usr/src/lib/libc/common/sys/unlink.s b/usr/src/lib/libc/common/sys/unlink.s new file mode 100644 index 0000000000..0292d8a728 --- /dev/null +++ b/usr/src/lib/libc/common/sys/unlink.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- unlink */ +/* int unlink (const char *path); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(unlink,function) + +#include "SYS.h" + + SYSCALL_RVAL1(unlink) + RETC + SET_SIZE(unlink) diff --git a/usr/src/lib/libc/common/sys/utime.s b/usr/src/lib/libc/common/sys/utime.s new file mode 100644 index 0000000000..3d46bced00 --- /dev/null +++ b/usr/src/lib/libc/common/sys/utime.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- utime */ +/* int utime (const char *path, const struct utimbuf *times); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(utime,function) + +#include "SYS.h" + + SYSCALL_RVAL1(utime) + RETC + SET_SIZE(utime) diff --git a/usr/src/lib/libc/common/sys/utimes.s b/usr/src/lib/libc/common/sys/utimes.s new file mode 100644 index 0000000000..dc0cb1fbd6 --- /dev/null +++ b/usr/src/lib/libc/common/sys/utimes.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- utimes */ +/* int utimes (const char *path, const struct timeval *times); */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(utimes,function) + +#include "SYS.h" + + SYSCALL_RVAL1(utimes) + RETC + SET_SIZE(utimes) diff --git a/usr/src/lib/libc/common/sys/utssys.s b/usr/src/lib/libc/common/sys/utssys.s new file mode 100644 index 0000000000..e953257c31 --- /dev/null +++ b/usr/src/lib/libc/common/sys/utssys.s @@ -0,0 +1,46 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- utssys */ +/* error = utssys(cbuf, mv, type, outbufp) */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(utssys,function) + +#include "SYS.h" + + SYSCALL_RVAL1(utssys) + RET + SET_SIZE(utssys) diff --git a/usr/src/lib/libc/common/sys/vhangup.s b/usr/src/lib/libc/common/sys/vhangup.s new file mode 100644 index 0000000000..b8cf195581 --- /dev/null +++ b/usr/src/lib/libc/common/sys/vhangup.s @@ -0,0 +1,47 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- vhangup */ +/* int vhangup() */ + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(vhangup,function) + +#include "SYS.h" + + SYSCALL_RVAL1(vhangup) + RETC + SET_SIZE(vhangup) + diff --git a/usr/src/lib/libc/common/sys/waitid.s b/usr/src/lib/libc/common/sys/waitid.s new file mode 100644 index 0000000000..14f728d58e --- /dev/null +++ b/usr/src/lib/libc/common/sys/waitid.s @@ -0,0 +1,45 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- waitid */ +/* int waitid(idtype_t idtype, id_t id, siginfo_t *infop, + int options) */ + +#include "SYS.h" + + SYSREENTRY(waitid) + SYSTRAP_RVAL1(waitsys) + SYSRESTART(.restart_waitid) + RETC + SET_SIZE(waitid) diff --git a/usr/src/lib/libc/common/sys/write.s b/usr/src/lib/libc/common/sys/write.s new file mode 100644 index 0000000000..1e19de56ec --- /dev/null +++ b/usr/src/lib/libc/common/sys/write.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- write */ +/* int write (int fildes, const void *buf, unsigned nbyte); */ + +#include "SYS.h" + + SYSCALL_RESTART_RVAL1(write) + RET + SET_SIZE(write) diff --git a/usr/src/lib/libc/common/sys/writev.s b/usr/src/lib/libc/common/sys/writev.s new file mode 100644 index 0000000000..0d13868a48 --- /dev/null +++ b/usr/src/lib/libc/common/sys/writev.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* Copyright (c) 1988 AT&T */ +/* All Rights Reserved */ + + +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +/* C library -- writev */ +/* int writev(fd, iovp, iovcnt) */ + +#include "SYS.h" + + SYSCALL_RESTART_RVAL1(writev) + RET + SET_SIZE(writev) diff --git a/usr/src/lib/libc/common/sys/yield.s b/usr/src/lib/libc/common/sys/yield.s new file mode 100644 index 0000000000..5386349c0f --- /dev/null +++ b/usr/src/lib/libc/common/sys/yield.s @@ -0,0 +1,42 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License, Version 1.0 only + * (the "License"). You may not use this file except in compliance + * with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ +/* + * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Use is subject to license terms. + */ + +#pragma ident "%Z%%M% %I% %E% SMI" + + .file "%M%" + +#include <sys/asm_linkage.h> + + ANSI_PRAGMA_WEAK(yield,function) + +#include "SYS.h" + +/* + * void yield(void); + */ + SYSCALL_NOERROR_RVAL1(yield) + RETC + SET_SIZE(yield) |