summary refs log tree commit diff
path: root/sysdeps/unix/sysv/sysv4
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-09-11 18:19:57 +0000
committerUlrich Drepper <drepper@redhat.com>1998-09-11 18:19:57 +0000
commit350eb336e3213847ebe73f4fd6c13dc02ef14ea7 (patch)
tree6f7962957fd4dcb43eceec2c22f5bbdf578f5163 /sysdeps/unix/sysv/sysv4
parent81e0cb2da50c12ebafed2e17c1df0cc26c8bad3e (diff)
downloadglibc-350eb336e3213847ebe73f4fd6c13dc02ef14ea7.tar.gz
glibc-350eb336e3213847ebe73f4fd6c13dc02ef14ea7.tar.xz
glibc-350eb336e3213847ebe73f4fd6c13dc02ef14ea7.zip
Update.
	* configure.in: Use test -f instead of test -e.
	Patch by John Tobey <jtobey@banta-im.com>.

	* sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h: New file.
	* sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h: New file.
	* sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h: New file.
	* sysdeps/unix/sysv/linux/sigstack.c: Fix typo.
	* sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c: Fix typo.
	* sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h: New file.
	* sysdeps/unix/sysv/sysv4/solaris2/sys/param.h: New file.
	Patches by John Tobey <jtobey@banta-im.com>.
Diffstat (limited to 'sysdeps/unix/sysv/sysv4')
-rw-r--r--sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h55
-rw-r--r--sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c2
-rw-r--r--sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h36
-rw-r--r--sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h42
-rw-r--r--sysdeps/unix/sysv/sysv4/solaris2/sys/param.h59
-rw-r--r--sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h245
6 files changed, 438 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h b/sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h
new file mode 100644
index 0000000000..6c6ccae6a5
--- /dev/null
+++ b/sysdeps/unix/sysv/sysv4/solaris2/bits/sigstack.h
@@ -0,0 +1,55 @@
+/* sigstack, sigaltstack definitions.
+   Copyright (C) 1998 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef _SIGNAL_H
+# error "Never include this file directly.  Use <signal.h> instead"
+#endif
+
+
+/* Structure describing a signal stack (obsolete).  */
+struct sigstack
+  {
+    __ptr_t ss_sp;		/* Signal stack pointer.  */
+    int ss_onstack;		/* Nonzero if executing on this stack.  */
+  };
+
+
+/* Possible values for `ss_flags.'.  */
+enum
+{
+  SS_ONSTACK = 1,
+#define SS_ONSTACK	SS_ONSTACK
+  SS_DISABLE
+#define SS_DISABLE	SS_DISABLE
+};
+
+/* Minimum stack size for a signal handler.  */
+#define MINSIGSTKSZ	2048
+
+/* System default stack size.  */
+#define SIGSTKSZ	8192
+
+
+/* Alternate, preferred interface.  */
+typedef struct sigaltstack
+  {
+    __ptr_t ss_sp;
+    size_t ss_size;
+    int ss_flags;
+  } stack_t;
diff --git a/sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c b/sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c
index 026e61102e..f246640023 100644
--- a/sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c
+++ b/sysdeps/unix/sysv/sysv4/solaris2/sigwaitinfo.c
@@ -1,2 +1,2 @@
 /* We can reuse the Linux implementation.  */
-#include <sysdeps/unix/sysv/linux/sigwaitinfo.h>
+#include <sysdeps/unix/sysv/linux/sigwaitinfo.c>
diff --git a/sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h b/sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h
new file mode 100644
index 0000000000..411d23e5bd
--- /dev/null
+++ b/sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/trap.h
@@ -0,0 +1,36 @@
+/* Copyright (C) 1998 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef _SYS_TRAP_H
+#define _SYS_TRAP_H	1
+
+/* Solaris2 software traps.  */
+
+#define ST_OSYSCALL             0x00
+#define ST_BREAKPOINT           0x01
+#define ST_DIV0                 0x02
+#define ST_FLUSH_WINDOWS        0x03
+#define ST_CLEAN_WINDOWS        0x04
+#define ST_RANGE_CHECK          0x05
+#define ST_FIX_ALIGN            0x06
+#define ST_INT_OVERFLOW         0x07
+#define ST_SYSCALL              0x08
+
+/* Traps 0x10 through 0x1f are allotted to the user.  */
+
+#endif	/* sys/trap.h */
diff --git a/sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h b/sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h
new file mode 100644
index 0000000000..4a32f816c9
--- /dev/null
+++ b/sysdeps/unix/sysv/sysv4/solaris2/sparc/sys/ucontext.h
@@ -0,0 +1,42 @@
+/* Copyright (C) 1998 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef _SYS_UCONTEXT_H
+#define _SYS_UCONTEXT_H	1
+
+#include <features.h>
+#include <signal.h>
+#include <sys/types.h>
+
+typedef struct
+{
+  long int mc_filler[78];
+} mcontext_t;
+
+struct ucontext
+{
+  unsigned long int uc_flags;
+  struct ucontext *uc_link;
+  sigset_t uc_sigmask;
+  stack_t uc_stack;
+  mcontext_t uc_mcontext;
+  long int uc_filler[23];
+};
+typedef struct ucontext ucontext_t;
+
+#endif	/* sys/ucontext.h */
diff --git a/sysdeps/unix/sysv/sysv4/solaris2/sys/param.h b/sysdeps/unix/sysv/sysv4/solaris2/sys/param.h
new file mode 100644
index 0000000000..3afb17a03c
--- /dev/null
+++ b/sysdeps/unix/sysv/sysv4/solaris2/sys/param.h
@@ -0,0 +1,59 @@
+/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef _SYS_PARAM_H
+#define _SYS_PARAM_H	1
+
+#include <limits.h>
+
+/* BSD names for some <limits.h> values.  */
+
+#define	NBBY		CHAR_BIT
+#ifndef	NGROUPS
+# define NGROUPS		NGROUPS_MAX
+#endif
+#define	MAXSYMLINKS	5
+#define	CANBSIZ		MAX_CANON
+#define	NCARGS		ARG_MAX
+#define MAXPATHLEN      PATH_MAX
+#define NOFILE          OPEN_MAX
+
+
+#include <sys/types.h>
+
+/* Bit map related macros.  */
+#define	setbit(a,i)	((a)[(i)/NBBY] |= 1<<((i)%NBBY))
+#define	clrbit(a,i)	((a)[(i)/NBBY] &= ~(1<<((i)%NBBY)))
+#define	isset(a,i)	((a)[(i)/NBBY] & (1<<((i)%NBBY)))
+#define	isclr(a,i)	(((a)[(i)/NBBY] & (1<<((i)%NBBY))) == 0)
+
+/* Macros for counting and rounding.  */
+#ifndef howmany
+# define howmany(x, y)	(((x)+((y)-1))/(y))
+#endif
+#define	roundup(x, y)	((((x)+((y)-1))/(y))*(y))
+#define powerof2(x)	((((x)-1)&(x))==0)
+
+/* Macros for min/max.  */
+#define	MIN(a,b) (((a)<(b))?(a):(b))
+#define	MAX(a,b) (((a)>(b))?(a):(b))
+
+/* Unit of `st_blocks'.  */
+#define DEV_BSIZE       512
+
+#endif	/* sys/param.h */
diff --git a/sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h b/sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h
new file mode 100644
index 0000000000..2c071a76ea
--- /dev/null
+++ b/sysdeps/unix/sysv/sysv4/solaris2/sys/syscall.h
@@ -0,0 +1,245 @@
+/* Copyright (C) 1998 Free Software Foundation, Inc.
+   This file is part of the GNU C Library.
+
+   The GNU C Library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The GNU C Library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the GNU C Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+   Boston, MA 02111-1307, USA.  */
+
+#ifndef	_SYSCALL_H
+#define	_SYSCALL_H	1
+
+/* Solaris 2 syscall numbers */
+
+#define	SYS_syscall		0
+#define	SYS_exit		1
+#define	SYS_fork		2
+#define	SYS_read		3
+#define	SYS_write		4
+#define	SYS_open		5
+#define	SYS_close		6
+#define	SYS_wait		7
+#define	SYS_creat		8
+#define	SYS_link		9
+#define	SYS_unlink		10
+#define	SYS_exec		11
+#define	SYS_chdir		12
+#define	SYS_time		13
+#define	SYS_mknod		14
+#define	SYS_chmod		15
+#define	SYS_chown		16
+#define	SYS_brk			17
+#define	SYS_stat		18
+#define	SYS_lseek		19
+#define	SYS_getpid		20
+#define	SYS_mount		21
+#define	SYS_umount		22
+#define	SYS_setuid		23
+#define	SYS_getuid		24
+#define	SYS_stime		25
+#define	SYS_ptrace		26
+#define	SYS_alarm		27
+#define	SYS_fstat		28
+#define	SYS_pause		29
+#define	SYS_utime		30
+#define	SYS_stty		31
+#define	SYS_gtty		32
+#define	SYS_access		33
+#define	SYS_nice		34
+#define	SYS_statfs		35
+#define	SYS_sync		36
+#define	SYS_kill		37
+#define	SYS_fstatfs		38
+#define	SYS_pgrpsys		39
+#define	SYS_xenix		40
+#define	SYS_dup			41
+#define	SYS_pipe		42
+#define	SYS_times		43
+#define	SYS_profil		44
+#define	SYS_plock		45
+#define	SYS_setgid		46
+#define	SYS_getgid		47
+#define	SYS_signal		48
+#define	SYS_msgsys		49
+#define	SYS_syssun		50
+#define	SYS_sysi86		50
+#define	SYS_sysppc		50
+#define	SYS_acct		51
+#define	SYS_shmsys		52
+#define	SYS_semsys		53
+#define	SYS_ioctl		54
+#define	SYS_uadmin		55
+#define	SYS_utssys		57
+#define	SYS_fdsync		58
+#define	SYS_execve		59
+#define	SYS_umask		60
+#define	SYS_chroot		61
+#define	SYS_fcntl		62
+#define	SYS_ulimit		63
+#define	SYS_rmdir		79
+#define	SYS_mkdir		80
+#define	SYS_getdents		81
+#define	SYS_sysfs		84
+#define	SYS_getmsg		85
+#define	SYS_putmsg		86
+#define	SYS_poll		87
+#define	SYS_lstat		88
+#define	SYS_symlink		89
+#define	SYS_readlink		90
+#define	SYS_setgroups		91
+#define	SYS_getgroups		92
+#define	SYS_fchmod		93
+#define	SYS_fchown		94
+#define	SYS_sigprocmask		95
+#define	SYS_sigsuspend		96
+#define	SYS_sigaltstack		97
+#define	SYS_sigaction		98
+#define	SYS_sigpending		99
+#define	SYS_context		100
+#define	SYS_evsys		101
+#define	SYS_evtrapret		102
+#define	SYS_statvfs		103
+#define	SYS_fstatvfs		104
+#define	SYS_nfssys		106
+#define	SYS_waitsys		107
+#define	SYS_sigsendsys		108
+#define	SYS_hrtsys		109
+#define	SYS_acancel		110
+#define	SYS_async		111
+#define	SYS_priocntlsys		112
+#define	SYS_pathconf		113
+#define	SYS_mincore		114
+#define	SYS_mmap		115
+#define	SYS_mprotect		116
+#define	SYS_munmap		117
+#define	SYS_fpathconf		118
+#define	SYS_vfork		119
+#define	SYS_fchdir		120
+#define	SYS_readv		121
+#define	SYS_writev		122
+#define	SYS_xstat		123
+#define	SYS_lxstat		124
+#define	SYS_fxstat		125
+#define	SYS_xmknod		126
+#define	SYS_clocal		127
+#define	SYS_setrlimit		128
+#define	SYS_getrlimit		129
+#define	SYS_lchown		130
+#define	SYS_memcntl		131
+#define	SYS_getpmsg		132
+#define	SYS_putpmsg		133
+#define	SYS_rename		134
+#define	SYS_uname		135
+#define	SYS_setegid		136
+#define	SYS_sysconfig		137
+#define	SYS_adjtime		138
+#define	SYS_systeminfo		139
+#define	SYS_seteuid		141
+#define	SYS_vtrace		142
+#define	SYS_fork1		143
+#define	SYS_sigtimedwait	144
+#define	SYS_lwp_info		145
+#define	SYS_yield		146
+#define	SYS_lwp_sema_wait	147
+#define	SYS_lwp_sema_post	148
+#define	SYS_lwp_sema_trywait	149
+#define	SYS_modctl		152
+#define	SYS_fchroot		153
+#define	SYS_utimes		154
+#define	SYS_vhangup		155
+#define	SYS_gettimeofday	156
+#define	SYS_getitimer		157
+#define	SYS_setitimer		158
+#define	SYS_lwp_create		159
+#define	SYS_lwp_exit		160
+#define	SYS_lwp_suspend		161
+#define	SYS_lwp_continue	162
+#define	SYS_lwp_kill		163
+#define	SYS_lwp_self		164
+#define	SYS_lwp_setprivate	165
+#define	SYS_lwp_getprivate	166
+#define	SYS_lwp_wait		167
+#define	SYS_lwp_mutex_unlock	168
+#define	SYS_lwp_mutex_lock	169
+#define	SYS_lwp_cond_wait	170
+#define	SYS_lwp_cond_signal	171
+#define	SYS_lwp_cond_broadcast	172
+#define	SYS_pread		173
+#define	SYS_pwrite		174
+#define	SYS_llseek		175
+#define	SYS_inst_sync		176
+#define	SYS_kaio		178
+#define	SYS_tsolsys		184
+#define	SYS_acl			185
+#define	SYS_auditsys		186
+#define	SYS_processor_bind	187
+#define	SYS_processor_info	188
+#define	SYS_p_online		189
+#define	SYS_sigqueue		190
+#define	SYS_clock_gettime	191
+#define	SYS_clock_settime	192
+#define	SYS_clock_getres	193
+#define	SYS_timer_create	194
+#define	SYS_timer_delete	195
+#define	SYS_timer_settime	196
+#define	SYS_timer_gettime	197
+#define	SYS_timer_getoverrun	198
+#define	SYS_nanosleep		199
+#define	SYS_facl		200
+#define	SYS_door		201
+#define	SYS_setreuid		202
+#define	SYS_setregid		203
+#define	SYS_install_utrap	204
+#define	SYS_signotify		205
+#define	SYS_schedctl		206
+#define	SYS_pset		207
+#define	SYS_resolvepath		209
+#define	SYS_signotifywait	210
+#define	SYS_lwp_sigredirect	211
+#define	SYS_lwp_alarm		212
+#define	SYS_getdents64		213
+#define	SYS_mmap64		214
+#define	SYS_stat64		215
+#define	SYS_lstat64		216
+#define	SYS_fstat64		217
+#define	SYS_statvfs64		218
+#define	SYS_fstatvfs64		219
+#define	SYS_setrlimit64		220
+#define	SYS_getrlimit64		221
+#define	SYS_pread64		222
+#define	SYS_pwrite64		223
+#define	SYS_creat64		224
+#define	SYS_open64		225
+#define	SYS_rpcsys		226
+#define	SYS_so_socket		230
+#define	SYS_so_socketpair	231
+#define	SYS_bind		232
+#define	SYS_listen		233
+#define	SYS_accept		234
+#define	SYS_connect		235
+#define	SYS_shutdown		236
+#define	SYS_recv		237
+#define	SYS_recvfrom		238
+#define	SYS_recvmsg		239
+#define	SYS_send		240
+#define	SYS_sendmsg		241
+#define	SYS_sendto		242
+#define	SYS_getpeername		243
+#define	SYS_getsockname		244
+#define	SYS_getsockopt		245
+#define	SYS_setsockopt		246
+#define	SYS_sockconfig		247
+#define	SYS_ntp_gettime		248
+#define	SYS_ntp_adjtime		249
+
+#endif	/* sys/syscall.h */