1. 18 11月, 2011 1 次提交
  2. 20 12月, 2010 1 次提交
  3. 26 6月, 2010 1 次提交
    • C
      Add wait4() back to the set of <asm-generic/unistd.h> syscalls. · b51cae21
      Chris Metcalf 提交于
      The initial pass at the generic ABI assumed that wait4() could be
      easily expressed using waitid().  Although it's true that wait4()
      can be built on waitid(), it's awkward enough that it makes more
      sense to continue to include wait4 in the generic syscall ABI.
      
      Since there is already a deprecated wait4 in the ABI, this change
      converts that wait4 into old_wait, and puts wait4 in the next
      available slot for new supported syscalls, after the platform-specific
      syscalls at number 260.
      Signed-off-by: NChris Metcalf <cmetcalf@tilera.com>
      Acked-by: NArnd Bergmann <arnd@arndb.de>
      b51cae21
  4. 12 6月, 2009 1 次提交
    • A
      asm-generic: add a generic unistd.h · e64a1617
      Arnd Bergmann 提交于
      A new architecture should only define a minimal set of system
      calls while still providing the full functionality. This version
      of unistd.h has gone through intensive review to make sure that
      by default it only enables syscalls that do not already have
      a more featureful replacement.
      
      It is modeled after the x86-64 version of unistd.h, which unifies
      the syscall number definition and the actual system call table
      in a single file, in order to keep them synchronized much more
      easily.
      
      This first version still keeps legacy system call definitions
      around, guarded by various #ifdefs, and with numbers larger
      than 1024. The idea behind this is to make it easier for
      new architectures to transition from a full list to the reduced
      set. In particular, the new microblaze architecture that should
      migrate to using the generic ABI headers can at least use an
      existing uClibc source tree without major rewrites during the
      conversion.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      e64a1617
  5. 30 10月, 2008 1 次提交
  6. 23 10月, 2008 1 次提交
  7. 11 10月, 2007 1 次提交
  8. 29 6月, 2007 1 次提交
    • D
      Introduce fixed sys_sync_file_range2() syscall, implement on PowerPC and ARM · edd5cd4a
      David Woodhouse 提交于
      Not all the world is an i386.  Many architectures need 64-bit arguments to be
      aligned in suitable pairs of registers, and the original
      sys_sync_file_range(int, loff_t, loff_t, int) was therefore wasting an
      argument register for padding after the first integer.  Since we don't
      normally have more than 6 arguments for system calls, that left no room for
      the final argument on some architectures.
      
      Fix this by introducing sys_sync_file_range2(int, int, loff_t, loff_t) which
      all fits nicely.  In fact, ARM already had that, but called it
      sys_arm_sync_file_range.  Move it to fs/sync.c and rename it, then implement
      the needed compatibility routine.  And stop the missing syscall check from
      bitching about the absence of sys_sync_file_range() if we've implemented
      sys_sync_file_range2() instead.
      
      Tested on PPC32 and with 32-bit and 64-bit userspace on PPC64.
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: Paul Mackerras <paulus@samba.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      edd5cd4a
  9. 03 5月, 2007 1 次提交
    • S
      kbuild: complain about missing system calls · c53aeca0
      Sam Ravnborg 提交于
      Most system calls seems to get added to i386 first. This patch
      automatically generates a warning for any new system call which is
      implemented on i386 but not the architecture currently being compiled.
      On PowerPC at the moment, for example, it results in these warnings:
      init/missing_syscalls.h:935:3: warning: #warning syscall sync_file_range not implemented
      init/missing_syscalls.h:947:3: warning: #warning syscall getcpu not implemented
      init/missing_syscalls.h:950:3: warning: #warning syscall epoll_pwait not implemented
      
      The file scripts/checksyscalls.sh list a number of legacy system calls
      that are ignored because they only makes sense on i386 systems.
      
      Other contributors to this patch are Russell King <rmk+lkml@arm.linux.org.uk>
      and Stéphane Jourdois <kwisatz@rubis.org>
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      Signed-off-by: NSam Ravnborg <sam@ravnborg.org>
      c53aeca0