summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Don't use fseeko() to obtain the file offset.ed2010-01-141-1/+1
| | | | | I was a bit confused with lseek(), which returns the new offset. We should ftello() to obtain it using stdio.
* Add two changes that should have gone into commit r202274.ed2010-01-142-2/+1
| | | | | | | | | | Phase out ttyslot(3). The ttyslot() function was originally part for SUSv1, marked LEGACY in SUSv2 and removed later on. This function only makes sense when using utmp(5), because it was used to determine the offset of the record for the controlling TTY. It makes little sense to keep it here, because the new utmpx file format doesn't index based on TTY slots.
* Phase out ttyslot(3).ed2010-01-146-24/+8
| | | | | | | | The ttyslot() function was originally part for SUSv1, marked LEGACY in SUSv2 and removed later on. This function only makes sense when using utmp(5), because it was used to determine the offset of the record for the controlling TTY. It makes little sense to keep it here, because the new utmpx file format doesn't index based on TTY slots.
* Add ioctl requests to /dev/io on ia64 for reading and writingmarcel2010-01-142-0/+158
| | | | | | EFI variables. The primary reason for this is that it allows sysinstall(8) to add a boot menu item for the newly installed FreeBSD image.
* Fix previous commitr:. efi_var_set() was copied from efi_var_get(),marcel2010-01-142-4/+4
| | | | but wasn't actually changed.
* Add wrappers for the RT Variable Services. While here, translate themarcel2010-01-142-3/+74
| | | | | | | EFI status into a standard errno value and change efi_set_time() to return a standard error. MFC after: 1 week
* Grammar nits.thompsa2010-01-142-9/+9
| | | | Submitted by: Ben Kaduk
* Add BCM5754 PHY id that is found on Dell Studio XPS 16.yongari2010-01-142-0/+2
| | | | | Tested by: scf MFC after: 1 week
* o Add PCI ID for BCM 5756.delphij2010-01-132-1/+4
| | | | | | | | | | o Don't enable BGE_FLAG_BER_BUG on both 5722 and 5756, and based on their PCI IDs rather than their chip IDs. Reported by: several PC-BSD users via kmoore Reviewed by: yongari, imp, jhb, davidch Sponsored by: iXsystems, Inc. MFC after: 2 weeks
* Hide from default sndstat some information not used on daily basis,mav2010-01-132-11/+16
| | | | to make it readable by average user with average screen size.
* Remove the 1000 pseudo terminal limit from pts(4).ed2010-01-132-34/+0
| | | | | Even with the old utmp format, we could in fact go to pts/9999, because ut_line wasn't guaranteed to be null terminated there.
* Update to Fredrik's latest uhso driver. This changes port detection, addsthompsa2010-01-133-97/+169
| | | | | | comments and other code nits. Submitted by: Fredrik Lindberg <fli@shapeshifter.se>
* Add a missing $FreeBSD$ string.ed2010-01-131-0/+1
| | | | | | | I was requested to add this string to any file that was modified by my commit, which I forgot to do so. Requested by: des
* Complete the migration towards utmpx.ed2010-01-132-1/+18
| | | | | | - Add a notice to UPDATING, explaining users may need to recompile applications that use the old database. - Bump __FreeBSD_version.
* Let rc and periodic infrastructure and newsyslog use the utmpx files.ed2010-01-134-11/+11
|
* Remove <utmp.h> and its corresponding manual page.ed2010-01-134-342/+5
|
* Remove login(3), logout(3) and logwtmp(3) from libutil.ed2010-01-139-459/+8
| | | | | | | | | | 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.
* Remove utmpx stub from libulog.ed2010-01-1315-1030/+53
| | | | | | | | | I'm not increasing the shlib major version for this, because not a single application outside the base system should have used these functions in such a short timespan. Rewrite ulog_login(3) and ulog_logout(3) to build on top of the utmpx implementation in libc.
* Forgot a part that was missing in the previous commit.ed2010-01-131-1/+0
| | | | | There is no need to call trimdomain() anymore now that ut_host is big enough to fit decent hostnames.
* 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
|
OpenPOWER on IntegriCloud