summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make OpenSSH work with utmpx.ed2010-01-134-27/+56
| | | | | | | | | | | | | | | - Partially revert r184122 (sshd.c). Our ut_host is now big enough to fit proper hostnames. - Change config.h to match reality. - defines.h requires UTMPX_FILE to be set by <utmpx.h> before it allows the utmpx code to work. This makes no sense to me. I've already mentioned this upstream. - Add our own platform-specific handling of lastlog. The version I will send to the OpenSSH folks will use proper autoconf generated definitions instead of `#if 1'.
* Let telnetd build without utmp and logwtmp(3).ed2010-01-132-19/+1
| | | | | | | Just like rlogind, there is no need to change the ownership of the terminal during shutdown anymore. Also don't call logwtmp, because the login(1)/PAM is responsible for doing this. Also use SHUT_RDWR instead of 2.
* Let pam_lastlog use utmpx instead of libulog's utmpx interface.ed2010-01-131-5/+6
| | | | | It will still use ulog_login(3) and ulog_logout(3), which will remain present.
* Port all apps in libexec/ from libulog to utmpx.ed2010-01-134-10/+4
|
* Port ftpd to utmpx.ed2010-01-132-52/+38
| | | | | | | | Unfortunately I have to partially wreck its functionality, though. ftpd used to keep a file descriptor to the wtmp, which allowed it to work from within a chroot. The current utmpx implementation doesn't offer a way to do this. Maybe we can address this in the future, if it turns out to be a real issue.
* Port comsat to utmpx.ed2010-01-131-64/+21
| | | | | | | | It seems comsat stats the utmpx database each 15 seconds to see whether it has been changed. I am changing this behaviour to look at the utmpx database upon processing. I don't want to allow direct interference with the database files. I also wonder whether this optimization has any measurable performance benefit nowadays.
* Remove `dead code' from rlogind.ed2010-01-131-12/+1
| | | | | | | - It shouldn't call logwtmp(). Applications like login(1) already make sure both login and logout entries are written to the storage. - There's no need to restore permissions on the pseudo-terminal, since it should be garbage collected by the kernel.
* Port all applications in usr.sbin/ from libulog to utmpx.ed2010-01-136-13/+7
|
* Port lastlogin(8) to utmpx.ed2010-01-132-17/+14
| | | | | | While there, fix a bug I introduced previously. We must reopen the database for each username passed on the command line. We must rewind the database and search from the beginning.
* Port timed away from logwtmp(3). Let it use utmpx.ed2010-01-132-9/+17
|
* Port ac(8) to utmpx.ed2010-01-131-102/+69
| | | | | | | Similar to last(1), it must compare ut_id's instead of TTYs to determine whether a session has been terminated. It must also use ut_type to determine the type of the login record instead figuring it out by itself.
* Perform all trivial ports to utmpx for usr.bin/.ed2010-01-1310-25/+8
| | | | | They were already converted to use libulog, so it's easy to convert them to utmpx.
* Port w(1) to utmpx.ed2010-01-132-7/+8
| | | | | | | | | Let it print "-" when the TTY string is empty. In this case, it must also make sure it doesn't match processes who also have no controlling TTY. Otherwise it will print random kernel processes when trying to pick the best matching process. Eventually it should look at the value of ut_pid as well.
* Allow getent(1) to display utmpx entries as well.ed2010-01-132-0/+91
| | | | | | | Because getutxent also matches the typical get*ent format of library routines, I thought it would be a good idea to teach it how to read utmpx databases. getent(1) just gives a raw dump, which is very useful when debugging problems related to parsing/logging.
* Port last(1) to use utmpx.ed2010-01-131-102/+83
| | | | | | | | | | | | | Basically there are three major things I changed about last(1): - It should use ut_type instead of determining by hand what type of record was given. - It should now keep track of ut_id's instead of TTYs. This means the ttylist has been renamed to the idlist, storing all the ut_id's it has processed until the next reboot. - I've removed the signal handler. Because our wtmp is rotated so often, it makes little sense. Even on a simple piece of hardware it should be capable of grinding through megabytes of logs in a second.
* Let libopie use utmpx instead of utmp.ed2010-01-132-6/+5
|
* Port the remaining apps in sbin/ to utmpx; only reboot(8).ed2010-01-132-4/+1
|
* Migrate init(8) towards utmpx.ed2010-01-132-5/+8
| | | | | | | | According to a comment, we cannot safely remove utmpx entries here anymore. This is because the libc routines may block on file locking. In an ideal world login(1) should just remove the entries, which is why I'm disabling this code for now. If it turns out we get lots of stale entries here, we should figure out a way to deal with that.
* Port everything in bin/ from utmp to utmpx.ed2010-01-133-12/+3
| | | | | date: use libc utmpx routines instead of the ones provided by libulog. pax: don't depend on <utmp.h>
* Port ppp(8) to utmpx.ed2010-01-134-55/+32
| | | | | | | | A nice thing about utmpx is that it makes it very easy to log sessions that don't use TTYs. This is because the file is not indexed by TTY slots anymore. Silence from: brian
* Migrate finger(1) towards utmpx.ed2010-01-136-17/+9
| | | | | | It was already ported to use libulog, which makes it simpler now. Be sure to catch the error returned by setutxdb(). Otherwise it may perform a lookup on the utx.active database.
* Let csh(1) use utmpx instead of utmp.ed2010-01-132-5/+6
| | | | | | | | | csh allows you to monitor the utmp(x) file to monitor certain user logins. Unfortunately it needs to directly stat() this file. I don't want to break this module , but eventually it shouldn't do that. The idea of the getutxent(3) API is to hide file access. Approved by: mp
* Implement <utmpx.h>.ed2010-01-1310-15/+1280
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The utmpx interface is the standardized interface of the user accounting database. The standard only defines a subset of the functions that were present in System V-like systems. I'd like to highlight some of the traits my implementation has: - The standard allows the on-disk format to be different than the in-memory representation (struct utmpx). Most operating systems don't do this, but we do. This allows us to keep our ABI more stable, while giving us the opportunity to modify the on-disk format. It also allows us to use a common file format across different architectures (i.e. byte ordering). - Our implementation of pututxline() also updates wtmp and lastlog (now called utx.log and utx.lastlogin). This means the databases are more likely to be in sync. - Care must be taken that our implementation discard any fields that are not applicable. For example, our DEAD_PROCESS records do not hold a TTY name. Just a time stamp, a record identifier and a process identifier. It also guarantees that strings (ut_host, ut_line and ut_user) are null terminated. ut_id is obviously not null terminated, because it's not a string. - The API and its behaviour should be conformant to POSIX, but there may be things that slightly deviate from the standard. This implementation uses separate file descriptors when writing to the log files. It also doesn't use getutxid() to search for a field to overwrite. It uses an allocation strategy similar to getutxid(), but prevents DEAD_PROCESS records from accumulating. Make sure libulog doesn't overwrite the manpages shipped with our C library. Also keep the symbol list in Symbol.map sorted. I'll bump __FreeBSD_version later this evening. I first want to convert everything to <utmpx.h> and get rid of <utmp.h>.
* - Fix some style bugs in tmpfs_mount(). [1]jh2010-01-132-11/+7
| | | | | | - Remove a stale comment about tmpfs_mem_info() 'total' argument. Reported by: bde [1]
* Return SEM_FAILED instead of NULL, though there are same, but thedavidxu2010-01-131-2/+3
| | | | | SEM_FAILED is more suitable name. In function, sem_close(), always set errno on error.
* Add a driver by Fredrik Lindberg for Option HSDPA USB devices. These differthompsa2010-01-1312-2/+3572
| | | | | | | | from standard 3G wireless units by supplying a raw IP/IPv6 endpoint rather than using PPP over serial. uhsoctl(1) is used to initiate and close the WAN connection. Obtained from: Fredrik Lindberg <fli@shapeshifter.se>
* Update mesh code to to D4.0.rpaulo2010-01-122-5/+8
|
* Miscellaneous mdoc, spelling and inconsistency fixes.brueffer2010-01-1212-45/+54
| | | | | | PR: 142573, 142576 (mostly) Submitted by: brucec MFC after: 1 week
* Set the svn:eol-style = native and svn:mime-type = text/plainimp2010-01-120-0/+0
| | | | | | properties on all files in this tree. Submitted by: rpaulo@
* Place proper svn:keywords tag on all these files. They were createdimp2010-01-128-8/+8
| | | | | | | somehow without them on projects/mips, and that mistake was propigated over to head. Submitted by: rpaulo@
* Add a regular comment explaining what this file is.rpaulo2010-01-121-0/+2
|
* Fix svn properties and remove a P4 keyword.rpaulo2010-01-121-1/+1
|
* Make OSS_GETVERSION ioctl supported also for DSP devices,mav2010-01-121-0/+4
| | | | | | same as 4Front and Linux do. MFC after: 1 month
* Make default recording source choosing more intelligent.mav2010-01-121-3/+9
| | | | | Change default recording level from 0 to 75. It should increase chances for things to work just out of the box.
* Declare the kern.ngroups sysctl to be read-only, but tunable at boot forbrooks2010-01-121-1/+1
| | | | | | | better error reporting. Submitted by: Matthew Fleming <matthew dot fleming at isilon dot com> MFC After: 1 month
* Various fixes.brueffer2010-01-122-20/+21
|
* Spell "Hz" correctly wherever it is user-visible.gavin2010-01-1212-21/+21
| | | | | | | PR: bin/142566 Submitted by: N.J. Mann njm njm.me.uk Approved by: ed (mentor) MFC after: 2 weeks
* Update, reflecting added multichannel playback support.mav2010-01-121-4/+8
|
* Remove useless .TE groff macro.brueffer2010-01-121-1/+0
| | | | | Submitted by: Joerg Sonnenberger MFC after: 3 days
* Bug fix: add a missing initializer.jkoshy2010-01-121-0/+1
| | | | | Submitted by: Luca Pizzamiglio <luca.pizzamiglio at gmail dot com> PR: i386/142742
* Align buffer size to LCM of 128bytes, required by hardware, and alignment ofmav2010-01-121-4/+28
| | | | | | current format. This fixes problems with non-power-of-2 number of channels. Enable 5.1 formats support, as they are working fine now.
* Make OSS_GETVERSION ioctl really work. It has 'M' group, not 'P',mav2010-01-122-42/+32
| | | | | | | | | | as different nearby ones, and was grabbed by MIXER_xxx() handler. While there, replace '(cmd & MIXER_xxx(0)) == MIXER_xxx(0)' expressions with more correct '(cmd & ~0xff) == MIXER_READ(0)'. Use of bit operations to compare numeric fields doesn't looks sane. MFC after: 1 month
* Replace the static NGROUPS=NGROUPS_MAX+1=1024 with a dynamicbrooks2010-01-1211-17/+33
| | | | | | | | kern.ngroups+1. kern.ngroups can range from NGROUPS_MAX=1023 to INT_MAX-1. Given that the Windows group limit is 1024, this range should be sufficient for most applications. MFC after: 1 month
* Update manuals of sem_open and sem_init.davidxu2010-01-122-5/+5
| | | | Submitted by: ru
* Cast 64-bit quantity to intptr_t rather than int so as to work properlymckusick2010-01-111-2/+2
| | | | | | with 64-bit architectures (such as amd64). Reported by: Xin LI and Josh Paetzel
* Set svn:executable to *.delphij2010-01-111-0/+0
| | | | MFC after: 1 month
* Report ZFS filesystem version instead of the zpool version when we say it.delphij2010-01-111-1/+1
| | | | | | | Reported by: Yuri Pankov (on -fs@) Submitted by: delphij Approved by: pjd MFC after: 1 week
* Add multichannel (4.0 and 7.1) playback support. 5.1 mode support blockedmav2010-01-112-43/+82
| | | | | | | | | now due to unidentified synchonization problem. For 7.1 soundcards 5.1 support handled correctly via software upmix done by sound(4). Stereo stream is no more duplicated to all ports. If you loose sound, check you are using right connectors. Front speakers connector is usually green, center/LFE - orange, rear - black, side - gray.
* Cast 64-bit quantity to intptr_t rather than int so as to work properlymckusick2010-01-111-2/+2
| | | | | | with 64-bit architectures (such as amd64). Reported by: bz
* Change DDB show prison:bz2010-01-111-5/+6
| | | | | | | | | - name some columns more closely to the user space variables, as we do for host.* or allow.* (in the listing) already. - print pr_childmax (children.max). - prefix hex values with 0x. MFC after: 3 weeks
OpenPOWER on IntegriCloud