Commit Graph

105 Commits

Author SHA1 Message Date
Michael Kerrisk 9f9a9b76c8 syscall.2: Reformat tables to be narrower
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-12-30 11:07:25 +01:00
Mike Frysinger 8585e83715 syscall.2: Add more architectures and improve error documentation
Move the error register documentation into the main table rather
than listing them in sentences after the fact.

Add sparc error return details.

Add details for alpha/arc/m68k/microblaze/nios2/powerpc/superh/
tile/xtensa.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-12-30 10:44:43 +01:00
Michael Kerrisk 1e64c86bbf intro.1, ldd.1, clone.2, getgroups.2, getpid.2, getsockopt.2, ioctl_list.2, msgop.2, open.2, seccomp.2, setgid.2, setresuid.2, setreuid.2, setuid.2, sigaction.2, sigpending.2, sigprocmask.2, sigreturn.2, sigsuspend.2, sigwaitinfo.2, socket.2, syscall.2, syscalls.2, umount.2, clock.3, dlopen.3, fmemopen.3, fpathconf.3, fputwc.3, fputws.3, fseek.3, fseeko.3, gcvt.3, getline.3, getwchar.3, hypot.3, if_nameindex.3, initgroups.3, popen.3, resolver.3, strcoll.3, strdup.3, tzset.3, ulimit.3, wcstombs.3, wctob.3, xdr.3, console_codes.4, random.4, filesystems.5, host.conf.5, hosts.5, proc.5, resolv.conf.5, securetty.5, credentials.7, feature_test_macros.7, hier.7, ipv6.7, packet.7, pthreads.7, raw.7, signal.7, tcp.7, user_namespaces.7, ld.so.8, ldconfig.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-03-29 22:30:09 +02:00
Michael Kerrisk 661824b409 syscall.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-03-29 22:30:09 +02:00
Michael Kerrisk 1e941e8ce8 syscall.2: Minor edtis to Jann Horn's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-03-29 18:09:56 +02:00
Jann Horn 9ccd62fc42 syscall.2: Add x32 ABI
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-03-29 18:09:56 +02:00
Stéphane Aulery d5cacf0711 syscall.2: ffix
Fix a warning of groff: line 192: warning [p 2, 4.7i]: cannot adjust line

Signed-off-by: Stéphane Aulery <saulery@free.fr>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-03-22 20:20:58 +01:00
Michael Kerrisk 8392a3b33f _exit.2, dup.2, execve.2, execveat.2, fallocate.2, fcntl.2, get_robust_list.2, getrlimit.2, mbind.2, memfd_create.2, mmap.2, open.2, ptrace.2, readv.2, select.2, sigaction.2, syscall.2, syscalls.2, truncate.2, utimensat.2, write.2, errno.3, exec.3, fclose.3, fexecve.3, fmemopen.3, fopencookie.3, getgrent_r.3, getline.3, getmntent.3, getpw.3, getpwent_r.3, getspnam.3, malloc_info.3, posix_fallocate.3, putgrent.3, shm_open.3, locale.5, proc.5: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-22 23:29:25 +01:00
Michael Kerrisk 70fdf8d0ae syscall.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-18 19:56:04 +01:00
Michael Kerrisk 398e08eb96 syscall.2: ffix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-18 12:56:03 +01:00
Michael Kerrisk c046724a10 syscall.2: Reformat "bool error" information
Take the "bool error" info into a separate paragraph,
so that the table does not exceed 80 columns.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-18 12:56:03 +01:00
Kees Cook 1a145eee77 syscall.2: add arm64 and mips
Added mips to tables. Extra column added for boolean error register, since
both ia64 and mips use this convention. Added explicit non-register argument
passing note for mips/o32.

Added arm64 to tables.

Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2015-01-18 12:35:16 +01:00
Michael Kerrisk 0649afd45a localedef.1, adjtimex.2, clock_nanosleep.2, epoll_ctl.2, ioctl.2, madvise.2, open.2, posix_fadvise.2, prctl.2, restart_syscall.2, sched_setaffinity.2, select.2, semop.2, setsid.2, sgetmask.2, sigaction.2, sigreturn.2, splice.2, syscall.2, syscalls.2, tee.2, tkill.2, abort.3, cmsg.3, exp10.3, ftw.3, getopt.3, ilogb.3, memcmp.3, mq_open.3, pow.3, pthread_setschedparam.3, sigvec.3, sysconf.3, termios.3, tgamma.3, wordexp.3, locale.5, proc.5, resolv.conf.5, cp1251.7, credentials.7, fanotify.7, inotify.7, locale.7, man-pages.7, signal.7, unix.7, ld.so.8: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-12-31 07:01:38 +01:00
Michael Kerrisk 4e0b8e82c7 syscall.2: SEE ALSO: add errno(3)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-11-04 08:19:25 +01:00
Michael Kerrisk 726663fd9d bind.2, connect.2, create_module.2, delete_module.2, execve.2, get_robust_list.2, getpriority.2, getrusage.2, init_module.2, link.2, listen.2, mbind.2, open.2, poll.2, query_module.2, readlink.2, recv.2, remap_file_pages.2, sched_setaffinity.2, semop.2, send.2, stat.2, stime.2, syscall.2, pthread_attr_setstackaddr.3, pthread_attr_setstacksize.3, remquo.3, rtime.3, sched_getcpu.3, stpcpy.3, stpncpy.3, strcasecmp.3, system.3, fd.4, proc.5, ip.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:31:12 +02:00
Rasmus Villemoes 24313b880d syscall.2: Fix prototype for syscall(2)
The first argument and the return value of syscall() has type long,
not int.

Signed-off-by: Rasmus Villemoes <rv@rasmusvillemoes.dk>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-05-08 11:26:55 +02:00
Michael Kerrisk b8dbf73de8 bdflush.2, fsync.2, mmap.2, open.2, perf_event_open.2, sync.2, syscall.2, fmemopen.3, getaddrinfo.3, getline.3, mq_notify.3, offsetof.3, aio.7, symlink.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-04-06 08:47:35 +02:00
Michael Kerrisk 19a225b02f syscall.2: Rework text to prevent groff warnings about wide tables
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-03-19 17:03:44 +01:00
Michael Kerrisk babc6dd47b syscall.2, syscalls.2, ftw.3, getauxval.3, mcheck.3, puts.3, scanf.3, strftime.3, libc.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-11 06:44:42 +13:00
Mike Frysinger 951ae9c063 syscall.2, syscalls.2, getauxval.3: Add references to new vdso(7) page
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:16 +13:00
Mike Frysinger 5e16419235 syscall.2: Fix ia64 registers
The original list of registers was created by confusing strace
source code--this is for parsing legacy 32-bit code (which is
dead and no one cares). Update the list to reflect native ia64
syscall interface.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2014-01-02 11:49:15 +13:00
Michael Kerrisk 48b6f08669 ioctl_list.2, kill.2, nfsservctl.2, sched_setaffinity.2, sched_setparam.2, sched_setscheduler.2, syscall.2, fma.3, fmax.3, fmin.3, ip.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-09-17 08:27:30 +02:00
Johan Erlandsson aa60c0d2b2 syscall.2: Correct registers for arm/EABI
Registers was off by one.

Reference:
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=3105/4

See also:
http://peterdn.com/post/e28098Hello-World!e28099-in-ARM-assembly.aspx
https://wiki.debian.org/ArmEabiPort
http://en.wikipedia.org/wiki/Calling_convention#ARM

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 10:13:22 +02:00
Johan Erlandsson 415f7e6317 syscall.2: Add missing argument in example
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-08-09 09:33:51 +02:00
Michael Kerrisk f9293d9857 io_setup.2, perf_event_open.2, readdir.2, syscall.2, a64l.3, abs.3, asprintf.3, bindresvport.3, catgets.3, ceil.3, cimag.3, conj.3, crypt.3, drand48.3, encrypt.3, ether_aton.3, fcloseall.3, ferror.3, fmtmsg.3, getdate.3, getgrent.3, getgrnam.3, getpass.3, getpwent.3, getpwnam.3, getttyent.3, getusershell.3, localeconv.3, mblen.3, mbrlen.3, mbrtowc.3, modf.3, pthread_attr_setschedparam.3, pthread_attr_setschedpolicy.3, pthread_setname_np.3, ptsname.3, qecvt.3, re_comp.3, readdir.3, rexec.3, round.3, scalbln.3, stdio_ext.3, strerror.3, tmpnam.3, trunc.3, ttyname.3, ttyslot.3, inotify.7, man-pages.7, socket.7, tcp.7, udp.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-06-21 13:35:03 +02:00
Mike Frysinger 202f5bfb9a syscall.2: Document s390/s390x calling convention
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-05-19 20:04:01 +02:00
Michael Kerrisk 39b6689e36 syscall.2: tfix
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-16 05:03:09 +02:00
Michael Kerrisk 08c9b3b9c8 syscall.2: Move "Architecture calling conventions" subsection
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-08 12:32:44 +02:00
Mike Frysinger 9390ee75bb syscall.2: Add PA-RISC details under calling conventions
Reviewed-by: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-08 12:32:44 +02:00
Michael Kerrisk 602c75a875 syscall.2: Improve "Architecture calling conventions" subsection
Split into tables so that the information does not render wider
than 80 columns. Add some explanation of tables and table columns.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-08 12:32:44 +02:00
Mike Frysinger d1c98faff7 syscall.2: Document the exact calling convention for architecture system calls
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-08 12:32:44 +02:00
Michael Kerrisk ca972ff960 syscall.2: wfix
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-02 09:11:02 +02:00
Michael Kerrisk bed6b26e9f syscall.2: Corrections and improvements to Changhee Han's patch
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-01 14:53:46 +02:00
Michael Kerrisk 9e5c5e5f00 syscall.2: Refine discussion of ARM and other ABIs
Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-01 14:53:46 +02:00
Michael Kerrisk 9525301640 syscall.2: Minor fix-ups to Changhee Han's patch
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-01 14:53:46 +02:00
Changhee Han 638fd4bfda syscall.2: Add notes that caution users when passing arguments to syscall()
For example, passing 'long long' on ARM-32 requires special
treatment.

Signed-off-by: Changhee Han <ch0.han@lge.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-04-01 14:53:46 +02:00
Michael Kerrisk a9cd9cb7d7 accept.2, bind.2, connect.2, getpeername.2, getpriority.2, getsockname.2, getsockopt.2, ioctl.2, killpg.2, listen.2, lseek.2, readlink.2, recv.2, send.2, setpgid.2, setreuid.2, shutdown.2, socket.2, socketpair.2, syscall.2, truncate.2, alloca.3, btree.3, daemon.3, dbopen.3, err.3, exec.3, fclose.3, ferror.3, fflush.3, fopen.3, fread.3, fseek.3, fts.3, hash.3, mpool.3, popen.3, queue.3, rcmd.3, recno.3, rexec.3, scanf.3, setbuf.3, stdarg.3, stdio.3, strtod.3, hostname.7, mdoc.7, mdoc.samples.7: srcfix: LICENSE: s/BSD_4_CLAUSE_FULL/BSD_4_CLAUSE_UCB/
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-12 10:31:09 +01:00
Michael Kerrisk 8c9302dcfc accept.2, bind.2, connect.2, getpeername.2, getpriority.2, getsockname.2, getsockopt.2, ioctl.2, killpg.2, listen.2, lseek.2, readlink.2, recv.2, send.2, setpgid.2, setreuid.2, shutdown.2, socket.2, socketpair.2, syscall.2, truncate.2, alloca.3, btree.3, daemon.3, dbopen.3, err.3, exec.3, fclose.3, ferror.3, fflush.3, fopen.3, fread.3, fseek.3, fts.3, getloadavg.3, hash.3, mpool.3, openpty.3, popen.3, queue.3, rcmd.3, recno.3, rexec.3, scanf.3, setbuf.3, stdarg.3, stdio.3, strtod.3, hostname.7, mdoc.7, mdoc.samples.7, operator.7, symlink.7: Add LICENSE_START(BSD_[34]_CLAUSE_FULL)
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2013-03-10 10:57:09 +01:00
Michael Kerrisk bf42aad4a7 mprotect.2, syscall.2, realpath.3, iso_8859-1.7: tstamp
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-08-14 00:37:33 +02:00
Michael Kerrisk 498a96a239 syscall.2: Add some more details to the description of syscall(2)
And add another example of using syscall() to the program example.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>

syscall.2: fix

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2012-07-19 12:51:28 +02:00
Michael Kerrisk b80f966bb0 getresuid.2, mremap.2, poll.2, remap_file_pages.2, setresuid.2, splice.2, sync_file_range.2, syscall.2, tee.2, vmsplice.2, INFINITY.3, aio_init.3, asprintf.3, assert_perror.3, basename.3, bsd_signal.3, canonicalize_file_name.3, clog10.3, crypt.3, dl_iterate_phdr.3, dlopen.3, encrypt.3, exp10.3, fcloseall.3, fenv.3, fopencookie.3, ftw.3, getaddrinfo_a.3, getloadavg.3, getutent.3, grantpt.3, hsearch.3, lseek64.3, memmem.3, mempcpy.3, pow10.3, program_invocation_name.3, ptsname.3, putgrent.3, sched_getcpu.3, sincos.3, strchr.3, strfry.3, strnlen.3, strptime.3, strstr.3, strverscmp.3, swab.3, sysv_signal.3, tsearch.3, unlockpt.3, wcwidth.3: Add reference to feature_test_macros(7)
Some pages simply list feature test macro requirements in
the form:

    #define #GNU_SOURCE
    #include <someheader.h>

For these pages, add a "See feature_test_macros(7)" comment
on the "#define" line.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
2010-10-31 05:31:47 +01:00
Michael Kerrisk f0c34053bc Put SEE ALSO section into alphabetical order. 2008-07-14 15:52:21 +00:00
Michael Kerrisk 863b571e68 ffix 2007-12-25 16:11:05 +00:00
Michael Kerrisk 0c2b92ba41 Add missing commans in SEE ALSO section. 2007-12-17 11:24:18 +00:00
Michael Kerrisk bad3caa42b Added _syscall(2) and intro(2) to SEE ALSO section. 2007-10-23 14:33:34 +00:00
Michael Kerrisk fa66abf8e5 Slight fix to example program. 2007-07-08 17:00:49 +00:00
Michael Kerrisk cc4615cc78 Added/updated glibc feature test macro requirements 2007-07-08 12:11:40 +00:00
Michael Kerrisk c58418c912 Added SEE ALSO reference to syscalls.2. 2007-06-25 12:57:55 +00:00
Michael Kerrisk eb1af89677 Corrected minor spelling/wording mistakes (i.e., changes
independent of fixes for American spelling).
2007-06-08 10:58:53 +00:00
Michael Kerrisk c046a64128 Conver to -man format; some rewrites; added an EXAMPLE. 2007-05-26 14:10:51 +00:00
Michael Kerrisk 0b5dc6f115 s/RETURN VALUES/RETURN VALUE/ 2007-05-16 05:00:31 +00:00
Michael Kerrisk dbd411a49c Remove bogus BUGS text. 2006-04-30 21:18:56 +00:00
Michael Kerrisk b14d4aa5b8 Classical BSD versions are now always named x.yBSD (formerly
there was a mix of x.yBSD and BSD x.y).
2005-07-18 15:05:56 +00:00
Michael Kerrisk 8729177b44 global edit s/ -1/ \\-1/g 2005-06-15 14:10:23 +00:00
Michael Kerrisk fea681dafb Import of man-pages 1.70 2004-11-03 13:51:07 +00:00