Commit Graph

1943 Commits

Author SHA1 Message Date
joerg
0a2b758384 Mark _resumecontext as dead. ANSIfy all declarations for it. 2011-09-19 21:24:57 +00:00
christos
369862dcef Never invoke utmp_update() recursively if we are root. Instead close the
read-only file so it can be opened later. It can happen when a setuid
program utmp_update, seteuid(ruid) -> getutxent() -> seteuid(0) -> pututxent()
2011-09-17 01:52:29 +00:00
matt
5724a9e8cf Refactor to fix some signedness problems. 2011-08-31 22:36:36 +00:00
joerg
d24dcc0dc7 Uses non-literal format strings 2011-08-25 18:20:22 +00:00
jmcneill
f7257e7810 maxmimum -> maximum 2011-08-23 17:28:34 +00:00
wiz
5cbea9c38a Fix variable name in SYNOPSIS to match DESCRIPTION.
From Abhinav Upadhyay <er.abhinav.upadhyay@gmail.com>.
2011-08-20 21:35:32 +00:00
jruoho
ea330d8d1a Xref limits(3). 2011-08-09 18:11:37 +00:00
wiz
942842ef79 Drop trailing whitespace. 2011-08-06 11:10:01 +00:00
jruoho
2cd297546b Xref the non-standard finite(3). 2011-08-06 11:02:41 +00:00
manu
32c00d6291 Make cp -p and mv preverve extended attributes, and complain if they cannot.
Also introduce library functions for copying extended attributes from one
file to another:
- extattr_copy_file, extattr_copy_fd, extattr_copy_link, with FreeBSD style,
  where a namespace is to be supplied
- cpxattr, fcpxattr, lcpxattr, with Linux style, where all namespaces
  accessible to the caller are copied, and the others are silently ignored.
2011-08-03 04:11:15 +00:00
njoly
f3d20aa109 Adjust xref varargs(3) -> stdarg(3) 2011-07-25 19:42:50 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
matt
cee1c10ee1 Add ieee754 versions of the compiler runtime functions
__fixuns{sf,df,tf}{si,di}.
Add an ieee754 version of the compiler runtime function __floatuntfdi
2011-07-09 02:30:27 +00:00
joerg
93fc0a3ef4 Drop special cases for i386 and m68k. It is not a validate assumption
that the address of an argument is at the same stack slot the caller
placed in it. It is perfectely valid to copy it into the local frame
first.
2011-06-30 19:46:07 +00:00
wiz
846092f009 Various minor improvements. 2011-06-27 08:21:07 +00:00
christos
e2bebf7172 * Arrange for interfaces that create new file descriptors to be able to
set close-on-exec on creation (http://udrepper.livejournal.com/20407.html).

    - Add F_DUPFD_CLOEXEC to fcntl(2).
    - Add MSG_CMSG_CLOEXEC to recvmsg(2) for unix file descriptor passing.
    - Add dup3(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
    - Add pipe2(2) syscall with a flags argument for O_CLOEXEC, O_NONBLOCK.
    - Add flags SOCK_CLOEXEC, SOCK_NONBLOCK to the socket type parameter
      for socket(2) and socketpair(2).
    - Add new paccept(2) syscall that takes an additional sigset_t to alter
      the sigmask temporarily and a flags argument to set SOCK_CLOEXEC,
      SOCK_NONBLOCK.
    - Add new mode character 'e' to fopen(3) and popen(3) to open pipes
      and file descriptors for close on exec.
    - Add new kqueue1(2) syscall with a new flags argument to open the
      kqueue file descriptor with O_CLOEXEC, O_NONBLOCK.

* Fix the system calls that take socklen_t arguments to actually do so.

* Don't include userland header files (signal.h) from system header files
  (rump_syscallargs.h).

* Bump libc version for the new syscalls.
2011-06-26 16:42:39 +00:00
sjg
82f4eed556 _gr_copy() can get called with fromgrp->gr_mem == NULL. 2011-06-09 05:11:17 +00:00
dholland
d392ff6e7a Clarify paragraph about calling setprogname, requested by Tobias Ulmer on
freenode. Bump date.
2011-05-21 19:06:44 +00:00
joerg
c98c805c05 Trailing white space 2011-05-17 07:10:39 +00:00
enami
bde048cc49 Use Pq or Po macro for better output rather than putting raw open paren
at the end of line.
2011-05-17 03:35:38 +00:00
christos
ec3000cfb2 PR/44959: Henning Petersen: glob forgets to closedir on out of space condition. 2011-05-14 22:44:06 +00:00
jruoho
fa096afe20 Xref raise_default_signal(3). 2011-05-09 09:06:21 +00:00
jruoho
db3b8477d4 Clarify STANDARDS (i.e. cf. ualarm(3) is no longer in POSIX). 2011-05-02 17:34:05 +00:00
christos
89d0622f3e Start eliminating "super-user" from the documentation. 2011-05-01 02:54:22 +00:00
christos
0a101028d4 nice should always return EPERM, not EACCES 2011-05-01 02:49:54 +00:00
wiz
3ecc6ccf87 Mark up NULL. 2011-04-29 09:43:28 +00:00
wiz
83e8266979 Sort sections and errors. 2011-04-28 16:34:01 +00:00
wiz
dbd13d8219 Spelling. 2011-04-28 11:22:44 +00:00
wiz
3f4e964f9f Sort errors. 2011-04-25 22:38:34 +00:00
jruoho
28629a5be1 Use RETURN VALUES rather than DIAGNOSTIC for... return values. 2011-04-12 04:55:05 +00:00
jruoho
32e685d288 Markup improvements. 2011-04-11 05:59:11 +00:00
jruoho
88d19f0f7c .Li -> .Em. 2011-03-30 16:41:00 +00:00
jruoho
d1a07d838a + .Pp. 2011-03-30 16:37:09 +00:00
jruoho
423f8d7704 Improve -width. 2011-03-30 16:29:26 +00:00
wiz
7091eebfa9 Whitespace and punctuation. 2011-03-27 22:55:07 +00:00
christos
2587e6e437 add fpgetprec/fpsetprec 2011-03-26 19:51:41 +00:00
martin
30b9b129ac Test the proper array index. Discovered by sparc64 automatic test runs. 2011-03-18 09:07:20 +00:00
wiz
b8e9a97310 Fix SYNOPSIS. Error found by martin. 2011-03-17 14:06:29 +00:00
erh
dba1735a6e Remove one last reference to commaize_number.3 2011-03-16 01:30:24 +00:00
christos
ab077958c3 goodbye short-live commaize_number(3), if you liked it:
#define commaize_number(s, l, n) snprintf(s, l, "%'llu", (unsigned long long)n)
2011-03-16 00:50:28 +00:00
wiz
f675b9e58c Shorten Nd by putting the comment there in a paragraph in the body.
Use more markup. Sort SEE ALSO. Fix typo. Capitalize NetBSD like
we all love it.
2011-03-15 08:33:35 +00:00
erh
9a5590a540 PR#7540, add a commaize_number function, which inserts comma into a string
of digits to make it more readable.  This is soon to be used in /bin/ls.
2011-03-15 03:47:04 +00:00
wiz
b84d433045 Add serial comma, quote minus, fix NetBSD version in HISTORY. 2011-03-13 09:12:35 +00:00
wiz
afb4355ad9 Add serial comma, quote minus, add HISTORY for strnunvis and strnunvisx. 2011-03-13 09:11:54 +00:00
mrg
8254d24b84 cast "~0" to (size_t) when passing to a size_t taking function.
fixes lint build errors.
2011-03-13 07:40:44 +00:00
christos
2d8f83e77b Fix various vis/unvis issues:
- no need for all the weak symbols
- define a new _VIS_END flag for UNVIS_END so that there are no collisions
  between and vis and unvis flags.
- add bound versions of the vis and unvis functions that take the length of
  the destination buffer. Unlike the OpenBSD ones they return -1 or NULL if
  the buffer is not large enough, instead of silently truncating.
2011-03-12 19:52:45 +00:00
christos
2dec048cbe avoid c99 2011-03-12 05:23:41 +00:00
christos
5dc359e2dd Prepare for strnvis functionality by providing a length to the encoding
functions.
2011-03-12 03:24:08 +00:00
christos
ebc56329ec Add <stdint.h> for uint8_t from Jess Thrysoee 2011-02-27 01:53:22 +00:00
joerg
4bf46019d9 Redo the SSP wrappers to be transparent on the resulting object files.
This works by having the inline wrapper calling a second function which
uses renaming to output the correct function name.
2011-02-21 00:40:07 +00:00