| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Submitted by: amdmi3
PR: bin/164317
|
|
|
|
|
|
|
|
|
| |
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
Also add $FreeBSD$ to a few files to keep svn happy.
Discussed with: imp, rwatson
|
|
|
|
|
| |
They were already converted to use libulog, so it's easy to convert them
to utmpx.
|
|
|
|
|
|
|
|
| |
Because our implementation guarantees the strings inside struct utmpx to
be null terminated, we don't need to copy everything out, which makes
the code nicer to read.
Also set WARNS to 6 and add $FreeBSD$ to keep SVN happy.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
current tty as returned from ttyname(3) so it can try to avoid writing to
the current tty if possible. Previously, it did this by trimming off any
leading directory (effectively performing a basename(3) on the path
returned from ttyname(3)). However, this chopped off too much of the path
for ttys who have directories in their name such as pts(4). Instead, just
strip off the leading /dev/ from the path returned by ttyname(3). This
fixes write(1) when using pts(4).
MFC after: 1 week
Reported by: rwatson
|
|
|
|
| |
Reviewed by: mux (mentor)
|
|
|
|
|
|
|
|
|
| |
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.
Reviewed by: md5
|
| |
|
| |
|
|
|
|
| |
2) Add missing include of stdlib.h for exit(), spotted by gcc3.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Shut compiler warning about signal argument.
PR: 4466
|
| |
|
|
|
|
| |
Pointed out by: bde
|
|
|
|
|
|
| |
Use _PATH_DEV instead of hard coded "/dev/"
Obtained from: OpenBSD, Jason Downs <downsj@OpenBSD.ORG>
|
|
|
|
| |
Handle '\377' properly
|
|
|
|
| |
Fix uncontrol function for 8bit chars.
|
| |
|
|
|