Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | - Fix strange for loop. | pjd | 2007-09-05 | 1 | -6/+16 | |
| | | | | | | | | | Reported by: phk - While here, check the unit before calculating the actually number. This way we can return EINVAL for invalid unit instead of ERANGE. Approved by: re (kensmith) | |||||
* | Point expand_number(3) at humanize_number(3) and nive versa. | pjd | 2007-09-05 | 2 | -0/+4 | |
| | | | | | Suggested by: trhodes Approved by: re (kensmith) | |||||
* | Implement expand_number(3), which is the opposite of humanize_number(3), ie. | pjd | 2007-09-01 | 4 | -3/+177 | |
| | | | | | | | | | | a number in human-readable form is converted to int64_t, for example: 123b -> 123 10k -> 10240 16G -> 17179869184 First version submitted by: Eric Anderson <anderson@freebsd.org> Approved by: re (bmah) | |||||
* | Back out previous commit until I figure out why my regression test fails. | des | 2007-08-03 | 3 | -23/+17 | |
| | | | | Approved by: re (kensmith) | |||||
* | Use fcntl(2)-style locks instead of less-portable flock(2)-style locks. | des | 2007-08-03 | 3 | -17/+23 | |
| | | | | Approved by: re (kensmith) | |||||
* | Document the quirks of ~/.login_conf and LOGIN_MECLASS. | yar | 2007-06-14 | 1 | -57/+80 | |
| | ||||||
* | Improve mdoc(7) markup. | yar | 2007-06-14 | 1 | -76/+190 | |
| | ||||||
* | Update some comments, mostly regarding LOGIN_MECLASS and ~/.login_conf. | yar | 2007-06-14 | 1 | -8/+18 | |
| | ||||||
* | Nit: avoid shadowing truncate(2) with a local variable. | des | 2007-05-23 | 1 | -3/+3 | |
| | ||||||
* | Fix stupid braino in previous commit. | des | 2007-05-23 | 1 | -1/+1 | |
| | ||||||
* | If (flags & O_TRUNC), don't truncate the file until we've successfully | des | 2007-05-23 | 1 | -1/+11 | |
| | | | | | | locked it. MFC after: 3 weeks | |||||
* | Bump library versions in preparation for 7.0. | deischen | 2007-05-21 | 1 | -1/+1 | |
| | | | | Ok'd by: kan | |||||
* | strlcpy() may be faster than snprintf(), but it is less portable, and this | des | 2007-05-11 | 1 | -8/+8 | |
| | | | | | | | is not performance critical code anyway. Also, avoid using strlen() to obtain information which we already have. MFC after: 3 weeks | |||||
* | Fix typo. | des | 2007-05-10 | 1 | -1/+1 | |
| | | | | Submitted by: Bård Skaflestad <bardsk@math.ntnu.no> | |||||
* | Well gag me with a spoon... I'm so used to working at high WARNS levels | des | 2007-05-10 | 2 | -1/+5 | |
| | | | | that I make stupid fundamental mistakes like this when I don't. | |||||
* | Remove superfluous unexpanded RCS tag. | des | 2007-05-10 | 1 | -2/+0 | |
| | ||||||
* | Use flopen(3). | des | 2007-05-10 | 1 | -2/+2 | |
| | | | | MFC after: 3 weeks | |||||
* | DTRT when O_NONBLOCK is specified. | des | 2007-05-10 | 2 | -4/+29 | |
| | | | | MFC after: 3 weeks | |||||
* | I'm tired of seeing this done incorrectly and non-portably, so add a | des | 2007-05-10 | 4 | -6/+177 | |
| | | | | | | flopen(3) function which reliably opens and locks a file. MFC after: 3 weeks | |||||
* | Fix one kind of style(9) bug and a typo in a comment. | yar | 2007-05-01 | 1 | -5/+5 | |
| | | | | Tested with: md5(1) | |||||
* | Remove California Regent's clause 3, per letter | imp | 2007-01-09 | 7 | -28/+0 | |
| | ||||||
* | Fix a typo: "the give login class" to "the given login class." | trhodes | 2006-11-05 | 1 | -1/+1 | |
| | | | | | PR: 75577 Submitted by: Nobuyuki Koganemaru | |||||
* | Fix markup in previous revision. | ru | 2006-10-10 | 1 | -2/+5 | |
| | ||||||
* | Add information on how to escape a literal colon in a value or name. | trhodes | 2006-10-09 | 1 | -1/+5 | |
| | | | | PR: 101262 | |||||
* | Revise markup in recently added manpages. | ru | 2006-09-30 | 1 | -10/+4 | |
| | ||||||
* | Markup fixes. | ru | 2006-09-17 | 1 | -1/+3 | |
| | ||||||
* | Minor comment fix. | thomas | 2006-09-08 | 1 | -1/+1 | |
| | ||||||
* | (pw_copy): Handle the case of a malformed line in master.passwd | thomas | 2006-09-04 | 1 | -2/+11 | |
| | | | | | | | | (copy it silently, do not dereference NULL pointer). PR: bin/102848 Reviewed by: security-officer (cperciva) MFC after: 1 week | |||||
* | Recognize the existence of `auth' and `auth-type' | yar | 2006-08-23 | 1 | -1/+6 | |
| | | | | | | | | | | capabilities but tell they do nothing in the base system. This is a late responce to http://docs.freebsd.org/cgi/mid.cgi?ED759F1DC5ADD74592DD063B1EDEDAF803ACD2B5 . Obtained from: OpenBSD (wording; with minor corrections) | |||||
* | style.Makefile(5) is good for our eyes. | yar | 2006-07-27 | 1 | -4/+8 | |
| | ||||||
* | Note the convention that humanize_number follows. | imp | 2006-07-15 | 1 | -8/+11 | |
| | | | | Add 'engineering' numbers to table. | |||||
* | o Add missed comma, xref kld(4). | maxim | 2006-07-12 | 1 | -2/+3 | |
| | ||||||
* | Remove some unused variables | brian | 2006-06-23 | 1 | -2/+0 | |
| | ||||||
* | o Typo: ownship -> ownership. | maxim | 2006-06-17 | 1 | -1/+1 | |
| | | | | Obtained from: DragonFlyBSD | |||||
* | Specify default path for SHLIBDIR before bsd.own.mk does. | akiyama | 2006-06-11 | 1 | -1/+3 | |
| | | | | This fix shared library installed correct place. | |||||
* | Don't build IPv6 support if we have choosen not to have it. | delphij | 2006-06-09 | 1 | -0/+4 | |
| | ||||||
* | - Add include for libutil.h and string.h for prototype. | delphij | 2006-05-25 | 1 | -1/+3 | |
| | | | | | - Cast the rvalue to be compared with the result of strlen() to size_t. | |||||
* | Bump library majro version for gethostbyaddr(3). | ume | 2006-05-21 | 1 | -1/+1 | |
| | ||||||
* | Document how the backoff delay is calculated. | brueffer | 2006-04-19 | 1 | -1/+4 | |
| | | | | | Submitted by: markus MFC after: 3 days | |||||
* | use pwrite to always write at the begining of the file.. If multiple calls | jmg | 2006-04-11 | 1 | -1/+1 | |
| | | | | | | | | to pidfile_write happen, the pidfile will have nul characters prepended due to the cached file descriptor offset... Reviewed by: scottl MFC after: 3 days | |||||
* | Use `intmax_t' instead of plain `int' for pid_t casts. | keramida | 2006-03-04 | 1 | -3/+3 | |
| | | | | | | Useful tips from: ru, bde Approved by: pjd MFC after: 3 days | |||||
* | Add utility functions for checking if a given kernel module is loaded, | des | 2006-02-18 | 4 | -2/+180 | |
| | | | | and loading it. | |||||
* | - Add a note that passing NULL to pidfile_write(), pidfile_remove() and | pjd | 2006-01-28 | 1 | -3/+13 | |
| | | | | | | | pidfile_close() functions is safe. This possibility is used in example code. - Cast pid_t to int. Requested by: yar | |||||
* | Teach openpty() how to deal with pts. | cognet | 2006-01-26 | 1 | -0/+45 | |
| | ||||||
* | Restore use of strncpy(), as there is later unconditional termination | rwatson | 2006-01-16 | 1 | -1/+1 | |
| | | | | | | of the string, and reliance on the returned pointer. Found by: bde (tm) | |||||
* | Replace strncpy() with strlcpy() when parsing login time limit strings | rwatson | 2006-01-16 | 1 | -1/+1 | |
| | | | | | | | | | | | from /etc/login.conf, or an unterminated string buffer could result. Probably, login_times.c should reject excessively long time strings as unparseable, rather than truncating, which might render an invalid string valid. Found with: Coverity Prevent (tm) Reviewed by: csjp MFC after: 3 days | |||||
* | Fix typo in comment. | rwatson | 2006-01-16 | 1 | -1/+1 | |
| | | | | MFC after: 3 days | |||||
* | Document the LOGIN_SETMAC setusercontext(3) flag. While we are here, drop | csjp | 2005-12-30 | 1 | -0/+5 | |
| | | | | in an external reference to mac_set_proc(3). | |||||
* | Restore the previous state after a FILL operation in properties_read() | jhb | 2005-11-28 | 1 | -8/+15 | |
| | | | | | | | | | | | rather than forcing the state to LOOK. If we are in the middle of parsing a line when we have to do a FILL we would have lost any token we were in the middle of parsing and would have treated the next character as being at the start of a new line instead. PR: kern/89181 Submitted by: Antony Mawer gnats at mawer dot org MFC after: 1 week | |||||
* | Fix prototype. | ru | 2005-11-24 | 1 | -1/+1 | |
| |