pooka
9bbaf71ba2
Refcount ukfs_part. Otherwise it's not possible to call ukfs_mount()
...
several times with only one ukfs_part_probe().
2009-12-13 20:52:36 +00:00
mrg
6af15ae20b
if BSD_MK_COMPAT_FILE is defined, .include it.
2009-12-13 09:01:45 +00:00
mrg
6b59d31236
move the include for <bsd.own.mk> down a little.
2009-12-13 08:52:38 +00:00
mrg
f7f0bc40ae
rename LD32DIR to MLIBDIR.
2009-12-13 08:25:20 +00:00
mrg
cba14cb13e
look for ${CSU_MACHINE_ARCH}_elf directory first.
2009-12-13 08:03:44 +00:00
pooka
3048f9c8c7
fix error branch
2009-12-12 00:46:04 +00:00
pooka
35b591f8ec
uncommit accidental changes
2009-12-11 21:21:52 +00:00
pooka
262f83ce50
Use range locking (fnctl(F_SETLK)) instead of file locking (flock()).
...
This allows to mount multiple (non-overlapping) partitions from the
same disk image.
2009-12-11 21:20:52 +00:00
pooka
72e7011c7a
Init ukfs__part_{na,none} statically instead of at runtime to avoid
...
init-order lossage from p2k/rump_smbfs, as noted by Tron.
2009-12-11 16:47:33 +00:00
joerg
f65504295d
Fix markup.
2009-12-09 18:06:08 +00:00
roy
c9c21f1ecc
Test against SSIZE_MAX as pointed out by enami tsugutomo.
2009-12-07 21:31:43 +00:00
uebayasi
37469dacdd
Provide the phony "tags" target as previous. Make it depend on the real
...
target. In case someone assumes the target as an interface.
2009-12-06 12:56:59 +00:00
uebayasi
0b52043222
Fix typo in previous.
2009-12-06 11:16:26 +00:00
uebayasi
09afef2063
Rename ${SRCS.{alpha,arm,...}.gen} to ${LSRCS.{alpha,arm,...}.gen} because
...
they ended up in ${LSRCS}, not ${SRCS}. ${SRCS.*} namespace will be used
for more useful things. No functional changes intended.
2009-12-06 07:12:17 +00:00
uebayasi
619e0bd90e
Set ${SRCS.softfloat}.
2009-12-06 07:05:50 +00:00
uebayasi
c1fa6bf05b
Make the local "tags" target an absolute path, ${.OBJDIR}/tags, otherwise
...
it conflicts with the "tags" target defined in bsd.own.mk, which is .PHONY,
which causes you to re-build "tags" everytime you re-run make.
2009-12-06 06:30:52 +00:00
uebayasi
f0d2ed931c
Assign quad / softfloat specific ${SRCS} to ${SRCS.quad} / ${SRCS.softfloat}
...
then append them to ${SRCS}. Those will be used to generate quad / softfloat
symbol lists.
2009-12-06 05:34:42 +00:00
pooka
7431f4f63d
Add an error handler which syslogs but does not abort() and make it
...
the default. Most servers just shovel bits from their backend to
the kernel without checking the contents and dumping core in case
the backend gives garbage is a bit harsh.
2009-12-05 20:54:10 +00:00
pooka
689551bfdb
Remove suspension support from here too.
2009-12-05 12:13:08 +00:00
pooka
a1c4673949
Adapt ukfs users to the new ukfs_part interface.
2009-12-03 14:27:16 +00:00
pooka
0c29df1074
Improve the ukfs magicpath interface a bit:
...
* rename PART to DISKLABEL
* allow to take an OFFSET range to make it possible to access an image
where there is no disklabel present
* make future extensions easier and less intrusive for the callers
2009-12-03 14:23:49 +00:00
pooka
5f6578a865
tyop de fix
2009-12-02 12:50:27 +00:00
pooka
304d27696e
Document that strtouq can return UQUAD_MAX.
2009-12-02 12:45:35 +00:00
roy
5eba354808
Pass lint.
2009-12-02 11:14:47 +00:00
enami
8f4cd2bee8
Retain old variables when failed to allocate memory.
2009-12-02 09:34:51 +00:00
roy
7cfa046806
Reinstate __getdelim which does no locking.
...
Callers are now required to FLOCKFILE so they can operate on fp as well.
2009-12-02 09:03:13 +00:00
uebayasi
5f297383d5
struct _locale_time_t _global_locale is a datum. Declare it as extern.
2009-12-02 08:53:03 +00:00
roy
142091db36
Protect getline.
2009-12-02 08:46:33 +00:00
wiz
9e3ffe49a3
Make HTML-ready, use standard section headers, fix Xr.
2009-12-01 08:15:50 +00:00
explorer
7ba2798f6e
Assign copyright to TNF
2009-12-01 01:33:25 +00:00
roy
3490b83a1f
Protect getdelim when used internally.
2009-12-01 00:52:13 +00:00
roy
755657be4b
Remove __getdelim and just use getdelim.
...
fgetstr now works with strings up to SSIZE_MAX as a result, but may
reallocate buffers needlessly just like it used to when the buffer size
exceeds INT_MAX.
fgetstr converts errno EOVERFLOW to EINVAL on getdelim error.
2009-12-01 00:03:53 +00:00
roy
ec4d484515
Note that callers should use feof(3) or ferror(3) to distinguish between
...
EOF or an error.
2009-11-30 23:23:29 +00:00
roy
4cf0472d7d
Note that EOF returns -1 when no characters are read.
...
Add code example.
2009-11-30 22:51:46 +00:00
christos
ad4d8ed92e
Add no/op routines for m68000 for the sticky, mask, and round settings.
2009-11-28 23:46:38 +00:00
tnozaki
3f8ca7c44a
guard single-dot from modification by the application
...
(SUSv3 spec don't forbid this brutal operation).
this idea taken from OpenBSD's version of basename(3) and dirname(3).
2009-11-24 13:34:20 +00:00
plunky
369de522d5
fix VIS_HTTPSTYLE to not convert "safe" ($-_.+) and "extra" (!*'(),)
...
characters as mentioned in rfc1738 and rfc1808 and, I think intended
all along in this code but the logic was inverted.
Don't use strchr as it also matches the NUL character which we want
to escape, just compare against the chars directly as done in the
FreeBSD code.
2009-11-23 10:08:47 +00:00
mbalmer
124961627e
s/the the/the/
2009-11-22 18:40:26 +00:00
pooka
5a9a1f8306
Update. Especially, describe ukfs_mount_disk(), ukfs_release() flags
...
and return value, and remove obsolete info in BUGS.
2009-11-22 18:14:49 +00:00
mbalmer
4c993ba354
one more the
2009-11-22 18:07:39 +00:00
mbalmer
ca310c45c1
remove one the to much.
2009-11-22 18:05:50 +00:00
mbalmer
25c6d8b7c2
the doo doo doo, the daa daa daa...
2009-11-22 18:04:37 +00:00
wiz
ca692c48bd
Fix typo and uppercase UID.
2009-11-21 22:32:52 +00:00
pooka
a9552d686b
Update for recent interface additions.
2009-11-21 12:28:51 +00:00
pooka
cf93a6e109
nuke leading whitespace
2009-11-21 12:16:19 +00:00
pooka
18382772a4
document P2K_WIZARDUID
2009-11-21 11:40:52 +00:00
pooka
251fbb35dc
Report actual group array size instead of 0 (which always gives back 0 grousp).
2009-11-20 14:24:58 +00:00
pooka
2a93cba43c
In getgroups(), copy only up to the number of supplementary groups
...
that actually exist.
2009-11-20 14:23:54 +00:00
pooka
96ae77ca39
Add "wizardmode", which allows to specify the uid which is used to
...
access the file system instead of using the caller uid. This is
useful for example when modifying the root fs image for an OS
installation without wanting to dance around as root on the host.
idspispopd
2009-11-20 14:11:38 +00:00
drochner
fa423103c6
if changing the password, don't clear PAM_AUTHTOK at the beginning -- this
...
sabotages external password strength checkers
2009-11-18 17:06:23 +00:00