ad
a21c37097e
Bump libpthread & libpthread_dbg minor versions so that an old SA copy
...
gets kept in the file system. Requested by pavel.
2007-02-09 23:00:16 +00:00
christos
233898bdaa
Only try free-ing a version of res if it is not supposed to be pre-inited
...
like before. Fixes issues with programs passing random uninitialized data
as res_state.
2007-02-09 22:29:40 +00:00
ad
401499f30e
Sync with kernel changes introduced by merging the newlock2 branch.
2007-02-09 22:08:48 +00:00
junyoung
9641e3f094
ANSIfy.
2007-02-08 05:44:18 +00:00
pooka
f7a084b3b0
Nm the manual puffs instead of libpuffs
2007-02-08 05:24:36 +00:00
junyoung
19690e9aea
Nuke __P.
2007-02-08 05:07:23 +00:00
oster
5422c82afe
Add "local" versions of getnetgrent() et al. and now call those for the NIS
...
versions. Fix conditional compilation issues with YP and NSS_FILES.
2007-02-07 19:12:44 +00:00
elad
eb3ad821f0
PR/35506: Chuck Silvers: ps doesn't work on crash dumps, libkvm doesn't
...
know about kauth
Implemented _kvm_convertcred() to handle copying kauth_cred_t to userspace
and converting it to the appropriate 'struct eproc' members ('pcred' and
'ucred' respectively).
Okay mlelstv@.
2007-02-06 21:21:51 +00:00
ad
d333bb5f2f
Build without sys/sa.h present.
2007-02-06 15:24:37 +00:00
oster
0271ab9db4
nsdispatch()-ify getnetgrent() and friends.
...
Approved by: christos
2007-02-06 15:17:54 +00:00
pooka
6c42c843ee
make it possible for the root path to be "/" and the next path to
...
be "/foo" instead of "//foo"
2007-02-06 01:46:41 +00:00
elad
5e2e282f9c
Add support for per-user /tmp.
...
Enabled via per_user_tmp in /etc/rc.conf (default off).
See security(8) and rc.conf(5) for more details.
Lots of input from thorpej@ & christos@, thanks!
2007-02-04 08:19:26 +00:00
uwe
3bc8e00664
Fix previous, add forgotten pointer dereference in the call to dtoa().
2007-02-04 03:20:22 +00:00
christos
971e3bb846
use dtoa() instead of returning empty when we don't have extended precision
...
information.
2007-02-04 03:05:01 +00:00
christos
cb9daf8f10
cleanup:
...
- remove __P
- remove unneeded casts
- add _DIAGASSERT
- add more diagnostics for integer overflow
- fix size_t/int confusion
- make debugging and statistics code compile
2007-02-03 23:46:09 +00:00
christos
72e430635f
chech the correct fmt in the assertion.
2007-02-03 22:26:55 +00:00
christos
c8e7c68742
int/size_t changes
2007-02-03 18:09:20 +00:00
christos
818764fc7c
some int -> size_t
...
deal with sparc64 that has 112 bits of mantissa.
2007-02-03 16:44:02 +00:00
christos
3ab861054c
make this compile with DIAGNOSTIC
2007-02-03 16:22:48 +00:00
christos
0e61db23eb
Compile with DIAGNOSTIC
2007-02-03 16:17:15 +00:00
christos
b513fb7c0a
make this compile with DIAGNOSTIC
2007-02-03 16:12:47 +00:00
christos
d228a772b3
enable wide doubles.
2007-02-03 00:28:56 +00:00
christos
f38f949967
use vfwprintf.c
2007-02-03 00:28:43 +00:00
christos
093145397b
- merge change from freebsd
...
- add support for building as vfprintf.c
- XXX: we strdup to simplify the freeing logic. This should be fixed for
efficiency in the vfprintf case.
2007-02-03 00:28:33 +00:00
christos
5d7be27437
the buffer len is called slen.
2007-02-03 00:27:52 +00:00
christos
cca9be70a3
protect buffer size from overflow.
2007-02-03 00:23:01 +00:00
christos
12287894d6
ext_int bit is no more.
2007-02-02 23:18:57 +00:00
christos
0449ecc079
since the int bit is merged, do the explicit math.
2007-02-02 23:14:09 +00:00
christos
113cee3dbe
add the new files to the build. Note I am not bumping libc now, because
...
these are not used yet.
2007-02-02 23:06:34 +00:00
christos
9ad6657285
add new prototypes.
2007-02-02 23:05:56 +00:00
christos
1634560e9d
make this compile.
2007-02-02 23:05:41 +00:00
christos
482b8dd60c
add long double and hex double support from freebsd.
2007-02-02 23:03:35 +00:00
christos
aa781c37c2
Instead of abusing stdio to get a signal-safe version of sprintf, provide one.
2007-02-02 23:00:28 +00:00
christos
858097f9a1
use __func__ instead of __FUNCTION__ which is a gcc extension.
2007-01-31 23:55:20 +00:00
chs
f4850e655c
fill in p_stat for crashdumps like the kernel does for the sysctl.
2007-01-28 21:31:13 +00:00
wiz
e6a160bd78
Fix spellos.
2007-01-28 07:58:05 +00:00
christos
41b0e71e94
Don't check for ext being NULL to destroy the res_state. Instead check
...
the option bits like we did before.
2007-01-28 07:54:01 +00:00
christos
5959955102
we don't need <irs.h>
2007-01-28 02:14:05 +00:00
christos
619824ce6d
try again.
2007-01-28 02:13:29 +00:00
christos
e519b45a11
missed one more file.
2007-01-28 02:11:44 +00:00
christos
6fbd14f0ac
We don't have __evOptMonoTime.
2007-01-28 01:43:52 +00:00
christos
91eccc4aa8
Fix minor compilation issues.
2007-01-27 23:02:12 +00:00
christos
95177770c6
add resolv_mt.h
2007-01-27 22:43:57 +00:00
christos
efba316dcc
Appropriate versions are not supplied by bind anymore.
2007-01-27 22:27:35 +00:00
christos
d73eb73dc8
merge in resolver portion of bind-9.4.0-rc2
2007-01-27 22:26:43 +00:00
christos
8e42b6c984
import resolver portion of bind-9.4.0-rc2
2007-01-27 21:45:34 +00:00
agc
9715dfff81
If we can't set the attributes when making the directory, use rmdir to
...
remove the directory, not unlink.
2007-01-27 11:49:44 +00:00
cbiere
f753f71dbe
* Don't use the term "anonymous"; this is confusing.
...
* Mention "reserved", that's what it's stands for after all.
* Mention getsockname() to determine the assigned port in any case.
2007-01-27 07:58:47 +00:00
pooka
f4e2aba8ce
document puffs_fs_suspend()
2007-01-26 23:55:27 +00:00
pooka
d83ed90176
add interfaces for suspending the file system
2007-01-26 23:00:33 +00:00
cbiere
1aaa06c687
Avoid a warning about an unused variable if compiling with -DNDEBUG.
...
Reported by Andreas Wiese in PR lib/35489.
2007-01-26 19:34:30 +00:00
cbiere
8544bfafc4
Fix for issue reported in PR lib/35401 as well as related overflow bugs.
2007-01-26 00:37:30 +00:00
cbiere
8521e1176a
* Consider all negative return values as error, not just -1.
...
* Corrected cast because (size_t) (INT_MAX + 1) is bogus.
2007-01-26 00:27:54 +00:00
jdc
3ad888c757
Pull down the following from the wcurses branch:
...
ctrace.c: revision 1.16.2.2
initscr.c: revision 1.27.18.2
Orginal commit message:
Do the debug initialisation only in ctrace.c. Otherwise, it might not
get done, for example, if we start curses with setterm() and not initscr().
2007-01-22 21:14:53 +00:00
christos
bbc680871a
Add another volatile, mentioned in current-users from a cross-build on amd64.
2007-01-22 15:06:31 +00:00
jdc
1f221324cf
Add debug "areas" that allow selective debugging by setting the
...
"CURSES_TRACE_MASK" environment variable. Postive vales include
debug areas, negative values exclude them.
2007-01-21 13:25:36 +00:00
blymn
fa0b432b40
Wide curses merge
2007-01-21 11:38:58 +00:00
blymn
17c16404e9
This file originates from the ncurses distribution, thanks to the ncurses people for letting us use it
2007-01-21 11:38:58 +00:00
blymn
5dfe4c8b18
Wide curses merge
2007-01-21 11:38:58 +00:00
ad
7630e3876c
pthread_create(): clear newthread->pt_sleeponq before calling _lwp_create().
2007-01-20 20:02:36 +00:00
christos
1eb6e5fbb2
add casts to pacify lint.
2007-01-20 18:58:11 +00:00
christos
25a0745d2e
remove unused variable/code.
2007-01-20 18:57:41 +00:00
christos
d1ddfe10b1
fix warning about indirect call without *
2007-01-20 18:56:30 +00:00
christos
b4634d8561
sprinkle volatile.
2007-01-20 18:00:15 +00:00
wiz
6d53f7319f
New sentence, new line.
2007-01-20 16:49:36 +00:00
pooka
1118cadca7
document puffs_docc
2007-01-20 15:11:02 +00:00
pooka
5581d777a3
xref puffs_req
2007-01-20 15:10:38 +00:00
pooka
2fbe1b2261
document request handling routines
2007-01-20 15:09:34 +00:00
pooka
288823a738
Be consistent with the rest of the framework about the argument
...
order of puffs_docc and puffs_dopreq
2007-01-20 14:37:06 +00:00
pooka
84e83df1bb
be consistent in naming request handlers
2007-01-20 13:52:14 +00:00
pooka
937097aa47
document puffs_getstate() and puffs_setstacksize()
2007-01-20 13:34:35 +00:00
wiz
b81f412f64
Sort ERRORS section.
2007-01-20 13:26:59 +00:00
wiz
0a4737c5de
Drop trailing whitespace.
2007-01-20 13:24:44 +00:00
wiz
2b5809387d
Sort SEE ALSO.
2007-01-20 13:23:59 +00:00
wiz
9e27ce3c1f
Sort sections.
2007-01-20 13:11:36 +00:00
christos
1636e22df7
set warns to 4
2007-01-20 04:56:25 +00:00
christos
3ca3d0b1e7
add a missing volatile.
2007-01-20 04:56:07 +00:00
ad
24d35c8592
Manual pages for new LWP system calls. Not enabled in the Makefile.
2007-01-20 01:41:00 +00:00
pooka
809ae5f803
Bring the documentation slightly more into sync with the current
...
reality. It's still really a far cry from proper documentation,
though.
2007-01-19 21:10:55 +00:00
drochner
11f2202b96
-fix use of arguments and remove an outdated section
...
-Xr mkfifo(2)
(btw, SUSv3 says that the only portable use of mknod() is to create
a FIFO. This is not supported by NetBSD.)
2007-01-18 14:07:01 +00:00
cbiere
75289275f1
isascii() and toascii() are defined for all integers unlike the other
...
functions. Explicitely mention "undefined behavior".
2007-01-18 11:33:13 +00:00
rillig
4d81a78185
Added a reference to ctype.3. What's the value of having that page at
...
all if it isn't referenced by others?
Suggested by Slava Semushin via private mail.
2007-01-18 08:35:07 +00:00
rillig
8b4906df56
Added a warning about a wrong usage, which is nevertheless often found
...
in real code, and an example code that does it correctly.
2007-01-18 08:33:34 +00:00
hubertf
55ac93d329
Remove more duplicate #includes, and a few spurious whitespaces at EOL
...
From Slava Semushin <slava.semushin@gmail.com>
2007-01-17 23:24:22 +00:00
seanb
e17c2f7f45
- Function no longer matched prototype after
...
move to ansi prototype in last commit; restore.
- Not noticed as weak aliases are used so the
code is not compiled in.
2007-01-17 16:39:20 +00:00
pooka
c068d370f2
revoke revoke
2007-01-16 22:37:17 +00:00
cbiere
13b350466e
Fixed string truncation bug in flags_to_string(): SAPPEND() uses
...
sizeof(string) but string is a pointer to a malloc()ed buffer.
2007-01-16 17:34:02 +00:00
ad
8e51dbdc7e
For 1:1 threads: __strong_alias(__libc_thr_yield,_sys_sched_yield)
2007-01-16 07:09:17 +00:00
ad
154a7ed75c
Add: _lwp_kill, _lwp_detach, _lwp_park, _lwp_unpark, _lwp_unpark_all,
...
sched_yield.
2007-01-16 07:07:45 +00:00
ad
b8daad9836
Fix a race between pthread_exit() and pthread_join().
2007-01-16 05:22:55 +00:00
ad
efb1fc06e2
Fix a race between pthread_create() and pthread_exit() in the 1:1 case.
2007-01-16 04:19:02 +00:00
ad
39aa27f5ce
Pass in the 'hint' argument when parking/unparking LWPs.
2007-01-16 01:35:16 +00:00
cbiere
f13e324ee5
Bail out on the first sysctl() error as suggested by Pierre Pronchery in
...
PR lib/35403. christos agreed it's cleaner.
2007-01-15 22:26:35 +00:00
pooka
05861b929d
Checkpoint some more work in progress: for the benefit those file
...
system backends which operate purely based on paths, push out more
path management into the library and make path management more
abstract: enable a file system to define a bunch of path management
callbacks, which are used by the framework. Management of normal
/this/is/a/path type paths is provided by the library.
2007-01-15 00:39:02 +00:00
cbiere
9946ea710f
Avoid lint warning.
2007-01-14 23:41:24 +00:00
cbiere
3984c614f6
Look only at the first `n' characters to avoid traversing a potentially
...
huge string for nothing.
2007-01-14 18:48:28 +00:00
christos
754eed8af3
PR/35411: Matthew Wala: inconsistency in editline(3): rename "num" to the
...
appropriate parameter names.
2007-01-12 16:31:13 +00:00
pooka
5014a4c9c2
For directory renames we need to rename all the child nodes for
...
the given directory if the file system wants paths (PUFFS_FLAG_BUILDPATH).
Do this by walking the nodelist and adjusting the path prefix of
each matching node.
2007-01-11 18:18:36 +00:00
pooka
a3d07fb3e9
implement fsync
2007-01-11 17:48:21 +00:00
pooka
b599bb507d
* do the l-variations of syscalls, since some nodes are symlinks
...
* truncate only regular files to set size
* do the chmod()-dance for cache flush to now write-protected files
until I can think of a nicer way to solve this
2007-01-11 14:59:35 +00:00
pooka
e639bec8c2
Add preliminary code for a nullfs layer, which can be used to mount
...
a directory hierarchy to another point, just like with the kernel
nullfs. This is not really a layering scheme yet, but it should
evolve into one. Currently it can just be used to do 1:1 mapping.
2007-01-11 01:01:55 +00:00
pooka
14b3edf81b
* don't chdir in possible daemon() call for the benefit of file systems
...
which specify a relative path as the root
* if (buildpath), build link source full pathname for the duration of
the operation
2007-01-10 23:02:50 +00:00
pooka
2811d45fdd
Be less shy about the default stack size, it's a only virtual memory space.
...
TODO: put a guard page at the end
2007-01-10 20:11:04 +00:00
pooka
71ddd8df08
rename name cache invalidation interface to be in sync with the
...
kernel operation names, i.e. contain "namecache" instead of just "name"
2007-01-09 18:19:01 +00:00
pooka
03a190dc22
lib interface for invalidation routines
2007-01-09 18:15:08 +00:00
elad
7e90974e98
Consistent license.
2007-01-09 14:04:44 +00:00
wiz
7bbb7f45b1
Bump date for previous.
2007-01-09 06:41:57 +00:00
rillig
c79f6cc521
chmod fails with EPERM when you try to set the S_ISGID bit on a file
...
whose group isn't one of your groups.
2007-01-09 04:03:57 +00:00
drochner
9c848e15d6
bring sched_yield() back which got lost recently
2007-01-08 20:54:42 +00:00
bouyer
6401b32154
libpam also depends on libkafs now, so .WAIT before building it.
2007-01-06 20:54:37 +00:00
pooka
7cc096d8ec
* get rid of the mount callback; it's no great surprise to the
...
server that it needs to mount the file system backend if it wants
to call mount
* provide some options for getmntopts(), assume that callers will parse
command line (or fstab) args
* reorganize the puffs_cc interface just a bit, preparing for a bigger
revamp later
2007-01-06 18:22:09 +00:00
wiz
b2fb822f2d
Re-add removed block:
...
Christian Biere suggests it was a typo, and was intended to describe
ENFILE; let it do that.
2007-01-04 00:02:43 +00:00
wiz
49a81ec436
Remove duplicate EMFILE description.
2007-01-03 23:02:53 +00:00
cbiere
8106cb099a
Fixed wrong and illogical statement:
...
fcntl() F_DUPFD does NOT set FD_CLOEXEC for the new file descriptor.
2007-01-03 11:50:47 +00:00
ws
0ff81292cd
Don't leak file descriptors.
2007-01-03 11:46:22 +00:00
pooka
f70a3c8c19
* inform kernel of our version
...
* homegrown lib ABI check (to avoid bumping major a ludicrillion times
before reaching stability)
2007-01-02 15:53:05 +00:00
martin
cc10b3e0c8
MD_DO_NOT_NEED_FALLTHRU - from Nick Hudson.
2007-01-02 14:32:34 +00:00
yamt
daa6d99693
kvm_getproc2: retry on ENOMEM.
...
it happens when the number of processes are changed in the mean time.
2006-12-31 16:20:18 +00:00
uebayasi
d8b460bb92
Whitespace.
2006-12-31 03:17:52 +00:00
yamt
5bb88600b0
remove nqnfs. pointed by Tom Spindler.
2006-12-29 22:56:55 +00:00
pooka
184a7d787c
checkpoint some experimental work-in-progress, namely:
...
Add support for having multiple outstanding operations. This is done
by exposing enough interfaces so that it is convenient to have the
main event loop in the implementation itself and by providing a
continuation framework for convinient blocking and rescheduling.
works fine, but will undergo further cleanup & development
2006-12-29 15:28:11 +00:00
martin
1c4ebce529
Provide a full frame stack space in the clone'd child.
2006-12-28 17:46:03 +00:00
martin
55a9a999dd
Use CCFSZ instead of 96 for standard save operations.
2006-12-28 10:02:43 +00:00
martin
f666b179b1
After discussing this further with uwe, rearange stack usage slightly and
...
replace a comment with words suggested by him.
2006-12-27 13:40:56 +00:00
martin
520e5c8f6a
When setting up the __clone()'s userland stack, make sure to allocate
...
an initial frame. Fixes PR 33075.
2006-12-25 21:44:37 +00:00
ad
ae979b2162
Add some items for 1:1 threads.
2006-12-25 11:36:36 +00:00
ad
ded2602507
Fix bugs with and improve upon previous.
2006-12-24 18:39:45 +00:00
christos
f1700f07c0
But turn on PTHREAD_SA, since turning it off does not work yet.
2006-12-24 03:54:43 +00:00
christos
34bc1fc940
just get this to compile again, so that people can build.
2006-12-24 03:47:53 +00:00
wiz
f77162e1ea
Fix typo.
2006-12-23 09:55:47 +00:00
wiz
1073e35f2d
Use more macros. Fix section in Xr.
2006-12-23 09:54:11 +00:00
ad
fe9718ac7c
Add another comment.
2006-12-23 09:48:18 +00:00
wiz
168147d486
Sort sections.
2006-12-23 09:04:23 +00:00
wiz
9e92895829
Sort errors; use Dv; s/=A0/ /
2006-12-23 08:09:31 +00:00
wiz
ee39be7187
Add missing article.
2006-12-23 07:42:30 +00:00
wiz
73188ad828
Quote - when used as minus; uppercase Dt argument; remove dot at end
...
of SEE ALSO; new sentence, new line.
2006-12-23 07:29:10 +00:00
wiz
57551caad9
Remove trailing whitespace.
2006-12-23 07:26:09 +00:00
ad
10058f19c8
Add a comment.
2006-12-23 05:18:56 +00:00
ad
1ac6a89b79
Conditionalised support for 1:1 threads. Needs associated kernel changes
...
and more work to be useful.
2006-12-23 05:14:46 +00:00
pooka
78ed4b8815
markup fixes
2006-12-22 11:56:45 +00:00
christos
af4b090320
From Anon Ymous:
...
- add __unused
- remove __GNUC__ hack
2006-12-20 16:47:13 +00:00
uwe
fd6ecc2112
Split "if (cond) stmt;" to be on separate lines.
2006-12-19 02:02:03 +00:00
christos
504a87e860
don't use 256 and 255, define and use a constant.
2006-12-18 22:27:18 +00:00
kleink
20a6bdbc6b
Update for tgetstr() null areas.
2006-12-18 13:27:25 +00:00
kleink
4d11183215
No need for static allocation of ptr, and make use of sizeof.
2006-12-18 13:13:20 +00:00
christos
a140872833
handle *area being NULL from kjk
2006-12-18 12:59:22 +00:00
christos
790ad13871
make tgetstr() work with a NULL area.
2006-12-18 06:15:56 +00:00
christos
cdcb070b9c
remove bogus (void)&var; From Anon Ymous
2006-12-18 00:40:14 +00:00
wiz
5021afa87b
Sort error descriptions.
2006-12-18 00:09:59 +00:00
wiz
77171fb3a0
Fix xref section. Whitespace cleanups..
2006-12-18 00:03:43 +00:00