summaryrefslogtreecommitdiff
path: root/system.c
Commit message (Collapse)AuthorAge
* Enhance reboot decodingDmitry V. Levin2014-02-05
| | | | | | | | | * linux/reboot.h: New file. * system.c (bootflags1, bootflags2, bootflags3, sys_reboot): Move... * reboot.c: ... here. (bootflags2, bootflags3): Update constants. * Makefile.am (strace_SOURCES): Add reboot.c. (EXTRA_DIST): Add linux/reboot.h.
* Use XLAT_END macroDmitry V. Levin2014-02-05
| | | | | Automatically update all xlat structures using the following sed regexp: s/^[[:space:]]*{[[:space:]]*0[[:space:]]*,[[:space:]]*NULL[[:space:]]*,\?[[:space:]]*}[[:space:]]*,\?[[:space:]]*/\tXLAT_END/
* Convert personality_options to XLAT formDmitry V. Levin2014-02-05
| | | | | | | * linux/personality.h: New file. * Makefile.am (EXTRA_DIST): Add it. * system.c: Include <linux/personality.h>. (personality_options): Update PER_* constants, convert to XLAT form.
* Use XLAT macroDmitry V. Levin2014-02-05
| | | | | | Automatically convert all xlat structures to XLAT form using the following sed regexp: s/^[[:space:]]*{[[:space:]]*\([^",}[:space:]]\+\)[[:space:]]*,[[:space:]]*"\1",\?[[:space:]]*}[[:space:]]*/\tXLAT(\1)/
* Blackfin: tweak sram_alloc syscall decodeMike Frysinger2013-04-30
| | | | | | | * system.c (sys_sram_alloc): The 2nd argument of sram_alloc syscall is a bit field, not a specific value, so decode it as such. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Add support for the OpenRISC 1000 platformChristian Svensson2013-02-14
| | | | | | | | | | | | | | | | | | | | | * configure.ac: Added or1k architecture.. * defs.h: Added or1k to use register reading system. * linux/or1k/ioctlent.h.in: Use i386 ioctls. * linux/or1k/syscallent.h: New file. * process.c: Added or1k register defs to struct_user_offsets[]. * syscall.c: Added or1k_io iovec for or1k GETREGSET,   regset structure for or1k.   (printcall): Added handling for or1k.   (get_regs): Likewise.   (get_scno): Likewise.   (get_syscall_args): Likewise.   (get_syscall_result): Likewise. (get_error): Likewise. * util.c (change_syscall): Added dummy handling for or1k. * system.c (sys_or1k_atomic): New function (or1k specific syscall). Signed-off-by: Christian Svensson <blue@cmd.nu> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix decoding of sysctl() when oldval fields are NULLMike Frysinger2013-02-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | If you call glibc's syscall wrapper like so: static int name[] = { CTL_NET, NET_IPV4, NET_IPV4_LOCAL_PORT_RANGE }; int buffer[2] = { 32768, 61000 }; size_t size = sizeof(buffer); sysctl(name, 3, 0, 0, buffer, size); (note that oldval/oldlenp are NULL). The current strace code complains like so: _sysctl({{CTL_NET, NET_IPV4, NET_IPV4_LOCAL_PORT_RANGE, 38}, 3, process_vm_readv: Bad address (nil), 0, 0x7fffe23c3960, 8}) = -1 EACCES (Permission denied) Since passing NULL for the old values is valid, handle that explicitly. This also simplifies the code a bit by splitting up the handling of the new and old args so that we only handle the new args once. Now the output looks like: _sysctl({{CTL_NET, NET_IPV4, NET_IPV4_LOCAL_PORT_RANGE, 38}, 3, NULL, 0, 0x7fff8c0c91b0, 8) = -1 EACCES (Permission denied) * system.c (sys_sysctl): Check if info.oldval is NULL first. Move the processing of oldlen/info.newval/info.newlen out so they always get executed. Fix the format strings so we use %lu for unsigned long rather than a mix of %ld and %lu. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* mount: decode MS_NOSECBernhard Reutner-Fischer2013-02-05
| | | | | | | * system.c (MS_NOSEC): Define. (mount_flags): Add MS_NOSEC. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* Fix a few goofs in sys_sysctl()Denys Vlasenko2012-05-16
| | | | | | | | | * system.c (sys_sysctl): Cast pointer to long, not size_t, when we intend to use it as an address. Set oldlen to 0 prior to reading into it - we want to have deterministic result if read fails. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Stop using non-standard %Zu and %Zd formats for size_t printingDenys Vlasenko2012-05-16
| | | | | | | | | | The documented formats are %zu and %zd, but since our (normally disabled) "fast" printf code doesn't support those too, I convert them to %lu and %ld. * bjm.c (sys_query_module): Convert %Zd usages to %lu. * system.c (sys_sysctl): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Tidy up includes and copyright notices, fix indentationDenys Vlasenko2012-03-16
| | | | | | | | | | | | | | | The files not mentioned in changelog below had only copyright notices fixes and indentation fixes. * defs.h: Include <stdint.h> and <inttypes.h>. * file.c: Do not include <inttypes.h>. Move struct kernel_dirent declaration below top include block. * block.c: Do not include <stdint.h> and <inttypes.h>. * quota.c: Likewise. * desc.c: Likewise. * signal.c: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Enhance capget and capset syscalls decodingDmitry V. Levin2012-03-15
| | | | | | * system.c (cap_version): New xlat structure. (print_cap_header, print_cap_data): New functions. (sys_capget, sys_capset): Use them.
* Remove extra include directives. No code changes.Denys Vlasenko2012-03-15
| | | | | | | | | | | | | | | | * defs.h: Include <signal.h> unconditionally. Other files were doing it unconditionally, so no harm done. * bjm.c: Remove system includes which are already included by defs.h. * pathtrace.c: Likewise. * process.c: Likewise. * signal.c: Likewise. * strace.c: Likewise. * stream.c: Likewise. * syscall.c: Likewise. * system.c: Likewise. * util.c: Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Fix compiler warnings about breaking strict-aliasing rulesDmitry V. Levin2012-03-15
| | | | | | | | * system.c (sys_capget, sys_capset): Use proxy unions to cast long* pointers to cap_user_header_t and cap_user_data_t pointers without breaking strict-aliasing rules. Reported-by: Mike Frysinger <vapier@gentoo.org>
* Implement syslog syscall decoderDmitry V. Levin2012-03-13
| | | | | | | * linux/dummy.h (sys_syslog): Remove. * linux/syscall.h (sys_syslog): New prototype. * system.c (syslog_action_type): New xlat structure. (sys_syslog): New function.
* Compress blank linesDmitry V. Levin2012-02-25
| | | | | | Suppress repeated empty lines left after automated code removal. This change was made by filtering every source code file through "cat -s".
* Automated removal of non-Linux codeDenys Vlasenko2012-02-25
| | | | | | | | | | This change is generated by running every source through the following command: unifdef -DLINUX -Dlinux -USUNOS4 -USVR4 -UUNIXWARE -UFREEBSD -USUNOS4_KERNEL_ARCH_KLUDGE -UHAVE_MP_PROCFS -UHAVE_POLLABLE_PROCFS -UHAVE_PR_SYSCALL -UUSE_PROCFS file.c Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* umovestr result may have no NUL, use "%.*s" instead of "%s" to print itDenys Vlasenko2012-01-20
| | | | | | | | * system.c (sys_mount): Be careful when printing umovestr result, it may have no terminating NUL. (sys_sysmips): Likewise. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* Use tprints with literal strings, it may be faster than tprintfDenys Vlasenko2011-09-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | * bjm.c: Replace tprintf("str") with tprints("str"). * block.c: Likewise. * desc.c: Likewise. * file.c: Likewise. * io.c: Likewise. * ipc.c: Likewise. * mem.c: Likewise. * net.c: Likewise. * proc.c: Likewise. * process.c: Likewise. * quota.c: Likewise. * resource.c: Likewise. * scsi.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * strace.c: Likewise. * stream.c: Likewise. * syscall.c: Likewise. * system.c: Likewise. * term.c: Likewise. * time.c: Likewise. * util.c: Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* * system.c (sys_capget, sys_capset): Fix pointer arithmeticsDmitry V. Levin2011-06-23
|
* Do not allocate tiny cap_user_header/data structures, place them on stack.Denys Vlasenko2011-06-23
| | | | | | | | | | | | | | | | This allows us to avoid having code to malloc them, and code to check for malloc failure. Resulting code decrease: text data bss dec hex filename 10175 0 16 10191 27cf system.o.old 9797 0 0 9797 2645 system.o * system.c (sys_capget): Put cap_user_header_t and cap_user_data_t on stack, rather than allocating them in heap. These structures are very small (a few integer fields), stack is a better place for them. (sys_capset): Likewise. Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Whitespace cleanups. no code changes.Denys Vlasenko2011-06-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bjm.c: Fix tabulation (such as extra spaces before tabs), convert punctuation where it deviates from prevalent form elsewhere in strace code, convert sizeof and offsetof where it deviates from from prevalent form, remove space between function/macro/array names and (parameters) or [index], add space between "if" and (condition), correct non-standard or wrong indentaion. * defs.h: Likewise * desc.c: Likewise * file.c: Likewise * ipc.c: Likewise * linux/arm/syscallent.h: Likewise * linux/avr32/syscallent.h: Likewise * linux/hppa/syscallent.h: Likewise * linux/i386/syscallent.h: Likewise * linux/ioctlsort.c: Likewise * linux/m68k/syscallent.h: Likewise * linux/microblaze/syscallent.h: Likewise * linux/powerpc/syscallent.h: Likewise * linux/s390/syscallent.h: Likewise * linux/s390x/syscallent.h: Likewise * linux/sh/syscallent.h: Likewise * linux/sh64/syscallent.h: Likewise * linux/tile/syscallent.h: Likewise * linux/x86_64/syscallent.h: Likewise * mem.c: Likewise * net.c: Likewise * pathtrace.c: Likewise * process.c: Likewise * signal.c: Likewise * sock.c: Likewise * strace.c: Likewise * stream.c: Likewise * sunos4/syscall.h: Likewise * sunos4/syscallent.h: Likewise * svr4/syscall.h: Likewise * svr4/syscallent.h: Likewise * syscall.c: Likewise * system.c: Likewise * test/childthread.c: Likewise * test/leaderkill.c: Likewise * test/skodic.c: Likewise * time.c: Likewise * util.c: Likewise Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* "Modernize" all old-style function parameter declarationsDenys Vlasenko2011-05-30
| | | | | | | | | | | | | | | | | | | | * bjm.c: Convert all remaining old-style C function definitions to a "modern" form. This does not change any actual code. * io.c: Likewise * ioctl.c: Likewise * net.c: Likewise * proc.c: Likewise * process.c: Likewise * signal.c: Likewise * sock.c: Likewise * strace.c: Likewise * stream.c: Likewise * syscall.c: Likewise * system.c: Likewise * time.c: Likewise * util.c: Likewise Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
* Update mount flags to latest linuxMike Frysinger2011-02-22
| | | | | | | | | * system.c (MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME, MS_BORN): Define. (mount_flags): Add MS_RELATIME, MS_KERNMOUNT, MS_I_VERSION, MS_STRICTATIME, MS_BORN. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sh: Add support for tracing sys_cacheflush system callCarmelo AMOROSO2010-12-03
| | | | | | | | | | * linux/sh/syscallent.h: Update sys_cacheflush entry. * linux/syscall.h [SH] (sys_cacheflush): New function declaration. * system.c [SH] (cacheflush_flags): New xlat structure. [SH] (sys_cacheflush): New function. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Reviewed-by: Angelo Castello <angelo.castello@st.com>
* Blackfin: decode new syscallsMike Frysinger2010-09-15
| | | | | | | | * linux/bfin/syscallent.h: Add fanotify/prlimit/cacheflush syscalls. * linux/syscall.h: Add sys_cacheflush() decl. * system.c: Decode Blackfin's cacheflush syscall. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Clean up header checksDmitry V. Levin2009-06-01
| | | | | | | | | | * configure.ac: Reformat AC_CHECK_HEADERS to keep it sorted and easily updated, and reduce merging errors in the future. * system.c: Convert all non-standard #ifdef checks for specific headers to regular #ifdef HAVE_*_H checks. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Dmitry V. Levin <ldv@altlinux.org>
* * system.c (sram_alloc_flag): Add L2_SRAM constant.Denys Vlasenko2009-03-23
| | | | | | | | by Mike Frysinger (vapier AT gentoo.org). (sys_sram_alloc): Fix improperly used %zu: tcp->u_arg is not a size_t, it is a long. * net.c (printcmsghdr): Fix improperly used %zu: struct cmsghdr::cmsg_len is not a size_t.
* 2008-11-09 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2008-11-11
| | | | * system.c (capabilities): Add more capability values.
* 2008-10-23 Mike Frysinger <vapier@gentoo.org>Dmitry V. Levin2008-11-10
| | | | | | | | | | | | | | | | | | | | | | | Port strace to the Blackfin architecture. * configure.ac: Add bfin to supported architectures. * process.c: Skip u_fpvalid/u_fpstate for Blackfin architecture. (change_syscall): Support Blackfin architecture. * syscall.c: Declare r0 for Blackfin architecture. (get_scno): Decode Blackfin syscall number. (syscall_fixup): Extract Blackfin return value. (get_error): Decode Blackfin return value. (force_result): Poke Blackfin return value. (syscall_enter): Extract Blackfin syscall arguments. * defs.h: Define TCB_WAITEXECVE for Blackfin architecture. * linux/syscall.h (sys_sram_alloc): Declare for Blackfin architecture. * system.c (sys_sram_alloc): Decode Blackfin sram_alloc() syscall. * util.c (getpc): Handle PC on Blackfin architecture. (printcall): Likewise. * linux/bfin/ioctlent.h, linux/bfin/syscallent.h: New Blackfin headers. * Makefile.am (EXTRA_DIST): Add linux/bfin/ioctlent.h and linux/bfin/syscallent.h.
* 2007-01-16 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2007-01-16
| | | | | | | | | | | | Update mount parser to match kernel behaviour. * system.c [LINUX] (MS_VERBOSE): Rename to MS_SILENT. [LINUX] (MS_UNBINDABLE, MS_PRIVATE, MS_SLAVE, MS_SHARED): New macros. [LINUX] (mount_flags): Add them. [LINUX] (MS_MGC_MSK): New macro. [LINUX] (sys_mount): Update parser to match kernel behaviour: discard MS_MGC_VAL magic, do not decode type and/or data strings when specified flags do not imply valid strings.
* 2007-01-11 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2007-01-13
| | | | | | | Update umount parser. * system.c [LINUX] (MNT_FORCE, MNT_DETACH, MNT_EXPIRE): New macros. [LINUX] (umount_flags): New xlat structure with MNT_* entries. [LINUX] (sys_umount2): Use umount_flags.
* 2007-01-11 Roland McGrath <roland@redhat.com>Roland McGrath2007-01-11
| | | | * system.c [LINUX] (CTL_CPU): Define in case header is missing it.
* 2006-11-27 Dmitry V. Levin <ldv@altlinux.org>Dmitry V. Levin2006-12-04
| | | | | | * system.c [LINUX]: Define CTL_PROC, since Linux 2.6.18+ headers removed CTL_PROC enum. Patch from Jakub Jelinek. [LINUX] (sysctl_root): Add CTL_BUS, CTL_ABI and CTL_CPU.
* 2005-08-08 Dmitry V. Levin <ldv@altlinux.org>Roland McGrath2006-01-12
| | | | | | | | * system.c [LINUX] (MS_MGC_VAL): New macro. [LINUX] (mount_flags): Add it. [LINUX] (sys_mount): If neither MS_BIND nor MS_MOVE bits are set in the flags argument, try to fetch data string. Fixes RH#165377.
* 2006-01-12 Roland McGrath <roland@redhat.com>Roland McGrath2006-01-12
| | | | | | | * system.c (sys_sysctl): Don't read off end of NAME when max_strlen exceeds INFO.nlen. From Timo Lindfors <timo.lindfors@iki.fi>. Fixes Debian#339117.
* 2005-05-31 Dmitry V. Levin <ldv@altlinux.org>Roland McGrath2005-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Deal with memory management issues. * defs.h (tprint_iov): Update prototype. * desc.c (sys_epoll_wait) [HAVE_SYS_EPOLL_H]: Do not allocate epoll_event array of arbitrary size on the stack, to avoid stack overflow. * file.c (print_xattr_val): Check for integer overflow during malloc size calculation, to avoid heap corruption. * io.c (tprint_iov) [HAVE_SYS_UIO_H]: Check for integer overflow during malloc size calculation, to avoid heap corruption. Change iovec array handling to avoid heap memory allocation. * mem.c (get_nodes) [LINUX]: Check for integer overflow during size calculation and do not allocate array of arbitrary size on the stack, to avoid stack overflow. * net.c (printcmsghdr) [HAVE_SENDMSG]: Do not allocate array of arbitrary size on the stack, to avoid stack overflow. Do not trust cmsg.cmsg_len to avoid read beyond the end of allocated object. (printmsghdr) [HAVE_SENDMSG]: Update tprint_iov() usage. * process.c (sys_setgroups): Check for integer overflow during malloc size calculation, to avoid heap corruption. Change gid_t array handling to avoid heap memory allocation. (sys_getgroups): Likewise. (sys_setgroups32) [LINUX]: Likewise. (sys_getgroups32) [LINUX]: Likewise. * stream.c (sys_poll) [HAVE_SYS_POLL_H]: Check for integer overflow during malloc size calculation, to avoid heap corruption. Change pollfd array handling to avoid heap memory allocation. * system.c (sys_sysctl) [LINUX]: Check for integer overflow during malloc size calculation, to avoid heap corruption. * util.c (dumpiov) [HAVE_SYS_UIO_H]: Check for integer overflow during malloc size calculation, to avoid heap corruption. Fixes RH#159196.
* 2005-05-31 Dmitry V. Levin <ldv@altlinux.org>Roland McGrath2005-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * util.c (printxval): Change third argument from "char *" to "const char *". (printflags): Add third argument, "const char *", with similar meaning to the third argument of printxval(). * defs.h (printxval): Change third argument from "char *" to "const char *". (printflags): Add third argument. * bjm.c (sys_query_module) [LINUX]: Pass third argument to printflags(). * desc.c (sys_fcntl): Likewise. (sys_flock) [LOCK_SH]: Likewise. (print_epoll_event) [HAVE_SYS_EPOLL_H]: Likewise. * file.c (sys_open): Likewise. (solaris_open) [LINUXSPARC]: Likewise. (sys_access): Likewise. (sys_chflags, sys_fchflags) [FREEBSD]: Likewise. (realprintstat) [HAVE_LONG_LONG_OFF_T && HAVE_STRUCT_STAT_ST_FLAGS]: Likewise. (printstat64) [HAVE_STAT64 && HAVE_STRUCT_STAT_ST_FLAGS]: Likewise. (sys_setxattr, sys_fsetxattr): Likewise. * ipc.c (sys_msgget, sys_msgsnd, sys_msgrcv, sys_semget, sys_shmget, sys_shmat) [LINUX || SUNOS4 || FREEBSD]: Likewise. (sys_mq_open) [LINUX]: Likewise. (printmqattr) [HAVE_MQUEUE_H]: Likewise. * mem.c (print_mmap) [!HAVE_LONG_LONG_OFF_T]: Likewise. (sys_mmap64) [_LFS64_LARGEFILE || HAVE_LONG_LONG_OFF_T]: Likewise. (sys_mprotect): Likewise. (sys_mremap, sys_madvise, sys_mlockall) [LINUX]: Likewise. (sys_msync) [MS_ASYNC]: Likewise. (sys_mctl) [MC_SYNC]: Likewise. (sys_remap_file_pages, sys_mbind, sys_get_mempolicy) [LINUX]: Likewise. * net.c (printmsghdr) [HAVE_STRUCT_MSGHDR_MSG_CONTROL]: Likewise. (sys_send, sys_sendto): Likewise. (sys_sendmsg) [HAVE_SENDMSG]: Likewise. (sys_recv, sys_recvfrom): Likewise. (sys_recvmsg) [HAVE_SENDMSG]: Likewise. (printicmpfilter) [ICMP_FILTER]: Likewise. * proc.c (proc_ioctl) [SVR4 && !HAVE_MP_PROCFS || FREEBSD]: Likewise. * process.c (sys_clone) [LINUX]: Likewise. (printwaitn): Likewise. (sys_waitid) [SVR4 || LINUX]: Likewise. * signal.c (sys_sigvec) [SUNOS4 || FREEBSD]: Likewise. (sys_sigaction): Likewise. (printcontext) [SVR4]: Likewise. (print_stack_t) [LINUX) || FREEBSD]: Likewise. (sys_rt_sigaction) [LINUX]: Likewise. * sock.c (sock_ioctl) [LINUX]: Likewise. * stream.c (sys_putmsg, sys_getmsg): Likewise. (sys_putpmsg) [SYS_putpmsg]: Likewise. (sys_getpmsg) [SYS_getpmsg]: Likewise. (sys_poll): Likewise. (print_transport_message) [TI_BIND]: Likewise. (stream_ioctl): Likewise. * system.c (sys_mount, sys_reboot): Likewise. (sys_cacheflush) [LINUX && M68K]: Likewise. (sys_capget, sys_capset) [SYS_capget]: Likewise. * term.c (term_ioctl) [TIOCMGET]: Likewise. * time.c (sys_clock_nanosleep, sys_timer_settime) [LINUX]: Likewise. Fixes RH#159310.
* 2005-05-31 Dmitry V. Levin <ldv@altlinux.org>Roland McGrath2005-06-01
| | | | | | | | | | | | | | | | | | * bjm.c (sys_query_module) [LINUX]: Unitize "out of memory" errors reporting style. * strace.c (rebuild_pollv) [USE_PROCFS]: Likewise. * system.c (sys_capget, sys_capset) [SYS_capget]: Likewise. * util.c (printstr): Likewise. (dumpiov) [HAVE_SYS_UIO_H]: Likewise. (fixvfork) [SUNOS4]: Likewise. * desc.c (decode_select): Continue to decode syscall arguments in case of OOM condition. * file.c (sys_getdents): Likewise. (sys_getdents64) [_LFS64_LARGEFILE]: Likewise. (sys_getdirentries) [FREEBSD]: Likewise. * mem.c (sys_mincore): Changed type of variables which deal with malloc size from int to unsigned long. Fixes RH#159308.
* 2005-05-26 Roland McGrath <roland@redhat.com>Roland McGrath2005-05-26
| | | | | * system.c (sys_sysctl): Check for errors accessing user pointers. Use malloc instead of alloca in case size is insane.
* 2005-02-01 Roland McGrath <roland@redhat.com>Roland McGrath2005-02-02
| | | | | | | | | | * system.c [LINUX] (MS_MANDLOCK, MS_NOATIME, MS_NODIRATIME, MS_BIND, MS_MOVE, MS_REC, MS_VERBOSE, MS_POSIXACL, MS_ACTIVE, MS_NOUSER): New macros. [LINUX] (mount_flags): Add them. [LINUX] (sys_mount): If any of (MS_BIND|MS_MOVE|MS_REMOUNT) bits are set in the flags argument, don't try to fetch the filesystem string. Fixes RH#141932.
* 2004-09-03 Roland McGrath <roland@redhat.com>Roland McGrath2004-09-04
| | | | | | | | | | | | | | | | | | | | | | * util.c (xlookup, printxval, addflags, printflags): Use const for struct xlat * argument. * defs.h (xlookup, printxval, addflags, printflags): Update decls. * bjm.c: Add const to all struct xlat defns. * desc.c: Likewise. * file.c: Likewise. * ipc.c: Likewise. * mem.c: Likewise. * net.c: Likewise. * proc.c: Likewise. * process.c: Likewise. * resource.c: Likewise. * signal.c: Likewise. * sock.c: Likewise. * stream.c: Likewise. * system.c: Likewise. * term.c: Likewise. * time.c: Likewise. * util.c: Likewise.
* 2004-08-30 Roland McGrath <roland@redhat.com>Roland McGrath2004-08-31
| | | | | | * system.c (personality_options): Hard-code values here. Don't #include <linux/personality.h> at all. Fixes RH#130965.
* 2004-03-01 Roland McGrath <roland@redhat.com>Roland McGrath2004-03-01
| | | | | * system.c (sysctl_vm): Conditionalize VM_* macro uses, add some more. From Tim Yamin <plasmaroo@gentoo.org>.
* Revert jhughes commits.Roland McGrath2004-02-20
|
* port SSI clustering mods to OpenSSI on LinuxJohn Hughes2004-01-29
|
* Merged patch fixing MIPS build.Michal Ludvig2002-11-06
|
* handle return values for ssisys on NSCJohn Hughes2001-10-18
|
* Decode some ssisys args on NSCJohn Hughes2001-10-16
|
* Handle fork1/forkall on uw, handle rfork1,rforkall,rexecve and ssisys on uw ↵John Hughes2001-04-18
| | | | non-stop-clusters