kientzle
36429d6a27
Clarify an example so Linux folks won't keep getting confused by this point.
2009-12-28 03:31:29 +00:00
kientzle
751833b2d3
Compatibility with old systems with non-POSIX getpwuid_r/getgrgid_r.
2009-12-28 03:30:31 +00:00
kientzle
749f336c04
Fix some unused variables and dead assignments.
2009-12-28 03:28:21 +00:00
kientzle
2533f9e873
Remove an unused variable and an unreachable statement.
2009-12-28 03:25:33 +00:00
kientzle
8ae7c78a5f
Fix line endings.
2009-12-28 03:24:56 +00:00
kientzle
49d75536f6
Discourage external use of this header.
2009-12-28 03:20:54 +00:00
kientzle
77b3bad2c6
Remove unused variable.
2009-12-28 03:14:30 +00:00
kientzle
6bd6257279
O_BINARY for Windows.
2009-12-28 03:13:49 +00:00
kientzle
21be9a3355
Handle Zip CRC validation for uncompressed Zip archives even on
...
platforms that lack zlib.
2009-12-28 03:11:36 +00:00
kientzle
c3c58ccb3c
Include limits.h; remove unused variable.
2009-12-28 03:06:27 +00:00
kientzle
9a47973065
Use ino64 interface.
2009-12-28 03:05:31 +00:00
kientzle
4fa2e480dc
Use new ino64 interface.
2009-12-28 03:03:00 +00:00
kientzle
b1d1d36a22
New archive_file_count() utility.
2009-12-28 02:58:14 +00:00
kientzle
cd7df27c58
Portability fixes.
2009-12-28 02:45:56 +00:00
kientzle
5b4a30a490
Various portability fixes, plus:
...
* New "ino64" field.
* New UTF8 interfaces for hardlink/symlink updates
2009-12-28 02:41:27 +00:00
kientzle
a591c39057
Remove an unused variable and an unnecessary increment.
2009-12-28 02:33:22 +00:00
kientzle
d9802a8c44
Eliminate an unused assignment.
2009-12-28 02:29:21 +00:00
kientzle
0ce60e8858
Portability: Set the file descriptor to binary mode on Win32
2009-12-28 02:28:44 +00:00
kientzle
110ffdeb53
Discourage outside use of this internal header.
2009-12-28 02:26:06 +00:00
kientzle
8b011c5d8a
Remove dead assignment.
2009-12-28 02:22:41 +00:00
kientzle
49f605d812
Portability:
...
* some non-FreeBSD platforms do actually define __FBSDID() in sys/cdefs.h
* Borland C <sigh>
2009-12-28 02:22:04 +00:00
kientzle
5796104304
Portability: terminate abnormally via abort() instead of segfault,
...
watch the return value from write(), and avoid signed arithmetic on
unsigned values.
2009-12-28 02:20:23 +00:00
kientzle
0e3650b26a
Allow more formats to be active at a time; discourage outside use.
2009-12-28 02:18:55 +00:00
kientzle
d2acaa3902
Enforce this as an internal-only header.
2009-12-28 02:18:26 +00:00
kientzle
ac6b305380
Discourage people from using this header outside of libarchive.
2009-12-28 02:17:53 +00:00
kientzle
c28b62ef5f
Compatibility: I found some more compilers that don't like 'inline' keyword.
...
Protection: Discourage people from using this header outside libarchive.
2009-12-28 02:17:15 +00:00
kientzle
55a923f0e8
Sync with googlecode some changes that have no impact on FreeBSD.
2009-12-28 02:14:09 +00:00
kientzle
c947d50aa1
Compatibility fix for some older systems with non-POSIX getgrnam_r/getpwnam_r
...
and a minor style fix for the hash function.
2009-12-28 02:09:57 +00:00
kientzle
9de6e5e034
Catch certain gzip failures at close time.
2009-12-28 02:05:28 +00:00
kientzle
2c11cde23a
Remove a dead assignment.
2009-12-28 02:04:42 +00:00
kientzle
9901fb459e
Remove some unused variables and dead assignments.
2009-12-28 02:03:54 +00:00
kientzle
2a6c4953df
Update the hard-coded configuration for libarchive.
2009-12-28 02:01:42 +00:00
kientzle
4b77c8c24b
Update format manpages for libarchive.
2009-12-28 01:50:23 +00:00
ed
1fbd42b09d
Parse DEAD_PROCESS entries properly.
...
The TTY line name should always be set for DEAD_PROCESS entries right
now. When we parse a clean utmp entry, we don't want to interpret it as
a DEAD_PROCESS entry if the TTY has never been used yet.
2009-12-27 22:26:29 +00:00
ed
2062dc2dbf
Several refinements to libulog's API.
...
- Only set the fields in the ulog_utmpx structure that are valid for the
command in question. This means that strings like "shutdown" or "~"
are not visible to the user anymore.
- Rename UTXF_* to UTXI_*, indicating the indexation, instead of using
the `antique' filename. If we ever get rid of utmp, it makes little
sense calling it by its old name.
2009-12-26 22:36:05 +00:00
ed
b2c0c6915e
Don't corrupt logout entries in utmp files.
...
An older version of the code used a structure on the stack, instead of a
pointer to the structure. It looks like I didn't adjust the parameters
of the write(2) call, causing the first four/eight bytes of the entry to
be corrupted, instead of writing the entire entry to disk.
2009-12-25 20:04:36 +00:00
markus
de21e8d4af
Use a local copy of entry_d for finding matches. Otherwise, if entry_d pointed
...
to an entry of 'acl', all ACL entries starting with entry_d would be deleted.
Reviewed by: trasz
Approved by: emax (mentor)
MFC after: 3 days
2009-12-25 18:05:06 +00:00
rpaulo
f7db53a9d1
Intel XScale hwpmc(4) support.
...
This brings hwpmc(4) support for 2nd and 3rd generation XScale cores.
Right now it's enabled by default to make sure we test this a bit.
When the time comes it can be disabled by default.
Tested on Gateworks boards.
A man page is coming.
Obtained from: //depot/user/rpaulo/xscalepmc/...
2009-12-23 23:16:54 +00:00
jhb
0ea3a0b2ea
Fix a bug in gzipfs that prevented lseek() from working and add lseek()
...
support to bzip2fs. This fixes problems with loading compressed amd64
kernel modules containing debug symbols.
Submitted by: David Naylor naylor.b.david (gmail)
MFC after: 1 week
2009-12-23 21:11:03 +00:00
edwin
eddea47c4f
MFV of tzdata2009t, r200831
...
zic:
- Fix URL / reference to Calendrical Calculations: Third Edition
libc/stdtime:
- Fix typo in tzfile.5 (no changes in our part)
MFC after: 1 week
2009-12-22 11:17:10 +00:00
delphij
e3103880d8
Use vsprintf instead of rolling our own.
...
PR: bin/140496
Submitted by: Jeremy Huddleston <jeremyhu apple.com>
MFC after: 1 month
2009-12-21 19:59:38 +00:00
delphij
45f47d9a5f
Use vsscanf instead of rolling our own.
...
PR: bin/140530
Submitted by: Jeremy Huddleston <jeremyhu apple.com>
MFC after: 1 month
2009-12-21 19:56:03 +00:00
delphij
71977347f2
K&R -> ANSI prototype.
...
MFC after: 1 month
2009-12-21 19:55:05 +00:00
jhb
257e93c9a0
Use _once() to initialize the pthread key for thread-local storage to hold
...
the results of localtime() instead of using a pthread mutex directly.
MFC after: 1 week
2009-12-21 19:43:23 +00:00
jamie
cf8736c474
Add a null pointer check so "name" can be used as a key parameter in
...
jailparam_get.
PR: bin/141692
Submitted by: delphij
MFC after: 3 days
2009-12-17 05:06:56 +00:00
matteo
fbf6bc755d
2009-12-16 04:19:23 +00:00
jilles
2a4bb5bd52
cpuset(2): fix a typo and a markup error in the man page
...
MFC after: 1 week
2009-12-15 21:02:29 +00:00
marcel
5c1d0ca7f5
Work-around a race condition on ia64 while unlocking a contested lock.
...
The race condition is believed to be in UMTX_OP_MUTEX_WAKE. On ia64,
we simply go to the kernel to unlock.
The big question is why this is only a race condition on ia64...
MFC after: 3 days
2009-12-14 01:26:01 +00:00
delphij
4a7171bdc0
Explicitly say that this is an internal library which is intended to be
...
used within FreeBSD base system only, and discourage user applications
from using it. User applications should use the expat version from the
ports/package collection.
Reviewed by: simon (earlier version)
MFC after: 2 weeks
2009-12-13 03:29:05 +00:00
scf
26de328278
Fix libusb_open_device_with_vid_pid() to return a NULL if no device is
...
found instead of the last device in its search list.
Reviewed by: thompsa
MFC after: 5 days
2009-12-12 00:24:30 +00:00