| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
They have no effect when coming in pairs, or before .Bl/.Bd
|
| |
|
|
|
|
|
|
| |
translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
|
|
|
|
|
|
|
|
| |
user in question (usually but not necessarily because we were called
with LOGIN_SETUSER). This plugs a hole where users could raise their
resource limits and expand their CPU mask.
MFC after: 3 weeks
|
|
|
|
| |
sprintf(3).
|
|
|
|
| |
Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
|
|
|
|
|
|
|
|
|
| |
a very bad one, since the shift does not actually overflow. This is
a better example (assuming uint64_t = unsigned long long):
~0LLU >> 9 = 0x7fffffffffffffLLU
~0LLU >> 9 << 10 = 0xfffffffffffffc00LLU
~0LLU >> 9 << 10 >> 10 = 0x3fffffffffffffLLU
|
|
|
|
|
|
|
| |
overflowing shift to be larger than the original value, e.g.
(uint64_t)1 << 53 = 0x20000000000000
((uint64_t)1 << 53) << 10 = 0x8000000000000000
|
|
|
|
|
|
|
| |
switch. Since expand_number() does not accept negative numbers, switch
from int64_t to uint64_t; this makes it easier to check for overflow.
MFC after: 3 weeks
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
Although groff_mdoc(7) gives another impression, this is the ordering
most widely used and also required by mdocml/mandoc.
Reviewed by: ru
Approved by: philip, ed (mentors)
|
| |
| |
| |
| |
| |
| | |
their software.
Obtained from: NetBSD
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
I changed login_tty() to only work when the application is not a session
leader yet. This works fine for applications in the base system, but it
turns out various applications call this function after daemonizing,
which means they already use their own session.
If setsid() fails, just call tcsetsid() on the current session.
tcsetsid() will already perform proper security checks.
Reported by: Oliver Lehmann
MFC after: 1 week
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
These functions only apply to utmp(5). They cannot be kept intact when
moving towards utmpx. The login(3) function would break, because its
argument is an utmp structure. The logout(3) and logwtmp(3) functions
cannot be used, since they provide a functionality which partially
overlaps.
Increment SHLIB_MAJOR to 9 to indicate the removal.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and
lower it when needed.
I'm setting WARNS?=0 for secure/. It seems secure/ includes the
Makefile.inc provided by lib/. I'm not going to touch that directory.
Most of the code there is contributed anyway.
|
| |
| |
| |
| | |
MFC after: 5 days
|
| |
| |
| |
| |
| |
| |
| | |
There are several reasons why it didn't work:
- It was missing <sys/cdefs.h> for __BEGIN_DECLS.
- It uses various primitive types that were not declared.
|
| |
| |
| |
| |
| |
| | |
Replace it to avoid conflict.
MFC after: 3 weeks
|
| |
| |
| |
| | |
old 32-bit and the new 64-bit formats.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| | |
in an associated quotafile. Needed by repquota.
Bug fix in quota_read.
|
| | |
|
| | |
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| |
| | |
preparation for 8.0-RELEASE. Add the previous version of those
libraries to ObsoleteFiles.inc and bump __FreeBSD_Version.
Reviewed by: kib
Approved by: re (rwatson)
|
| |
| |
| |
| | |
MFC after: 3 days
|
| |
| |
| |
| |
| |
| |
| | |
(humanize_number.3 intentionally hold back until I make sure why we didn't
merged dehumanize_number(3)).
Obtained from: NetBSD
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
- update for getrlimit(2) manpage;
- support for setting RLIMIT_SWAP in login class;
- addition to the limits(1) and sh and csh limit-setting builtins;
- tuning(7) documentation on the sysctls controlling overcommit.
In collaboration with: pho
Reviewed by: alc
Approved by: re (kensmith)
|
| |
| |
| |
| |
| |
| | |
language from stat(2)) rather than in the synopsis.
Requested by: bde
|
| |
| |
| |
| |
| |
| |
| | |
definitions.
- Note that these functions return NULL on failure.
MFC after: 3 days
|
| |
| |
| |
| |
| |
| | |
The problem with fcntl(2) locks is that they are not inherited by child
processes. This breaks pidfile(3), where the common idiom is to open
and lock the PID file before daemonizing.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The entire world seems to use the non-standard TIOCSCTTY ioctl to make a
TTY a controlling terminal of a session. Even though tcsetsid(3) is also
non-standard, I think it's a lot better to use in our own source code,
mainly because it's similar to tcsetpgrp(), tcgetpgrp() and tcgetsid().
I stole the idea from QNX. They do it the other way around; their
TIOCSCTTY is just a wrapper around tcsetsid(). tcsetsid() then calls
into an IPC framework.
|
|\ \
| |/ |
|
| |
| |
| |
| |
| |
| |
| | |
a dependence on ucred.h including audit.h including param.h, which we
would like to eliminate.
MFC after: 3 weeks
|
| |
| |
| |
| |
| |
| |
| |
| | |
don't try to iterate through garbage or NULL memory. Additionally, return
NULL instead of 0 on error.
Reviewed by: peter
Approved by: peter
|
| |
| |
| |
| | |
While here, hook up the hexdump(3) man page which wasn't being installed.
|
| |
| |
| |
| |
| |
| |
| |
| | |
quotactl(2) interface and inactive quotas by accessing the quota
files directly.
Update the edquota program to use this new interface as proof of
concept.
|
| | |
|
| | |
|
| | |
|
| | |
|
|/ |
|
|
|
|
| |
maintaining alignment, but I'm not sure how to tell gcc this.
|
|
|
|
| |
sysctls.
|