| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
| |
in the POSIX namespace, and hiding eaccess() and setproctitle().
Also move mknodat() from unistd.h to sys/stat.h where it belongs.
The *at() syscalls are only in CURRENT, so this shouldn't cause
problems.
Notes:
svn path=/head/; revision=189817
|
| |
|
|
|
|
|
|
|
| |
*at, and fexecve to the POSIX.1-2008 namespace.
- Remove getwd, ualarm, usleep, and vfork from the XSI namespace.
- Remove mkdtemp from the POSIX.1-2008 namespace (should be in stdlib.h).
Notes:
svn path=/head/; revision=189351
|
| |
|
|
|
|
|
|
|
| |
to <unistd.h> in the BSD section.
Suggested by: kib
Notes:
svn path=/head/; revision=183390
|
| |
|
|
| |
Notes:
svn path=/head/; revision=180360
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Adding exevpe() has caused some ports to break. Even though execvpe() is
a useful routine, it does not conform to any standards.
This patch is a little bit different from the patch sent to the mailing
list. I forgot to remove execvpe from the Symbol.map (which does not
seem to miscompile libc, though).
Reviewed by: davidxu
Approved by: philip
Notes:
svn path=/head/; revision=179947
|
| |
|
|
|
|
|
|
|
|
|
|
| |
can be used as replacements for exec/fork in a lot of cases. This
change also added execvpe() which allows environment variable
PATH to be used for searching executable file, it is used for
implementing posix_spawnp().
PR: standards/122051
Notes:
svn path=/head/; revision=179838
|
| |
|
|
| |
Notes:
svn path=/head/; revision=178064
|
| |
|
|
|
|
|
| |
Reported by: ru
Notes:
svn path=/head/; revision=177830
|
| |
|
|
|
|
|
|
|
|
| |
Based on the submission by rdivacky,
sponsored by Google Summer of Code 2007
Reviewed by: rwatson, rdivacky
Tested by: pho
Notes:
svn path=/head/; revision=177791
|
| |
|
|
| |
Notes:
svn path=/head/; revision=176607
|
| |
|
|
|
|
|
|
|
| |
to match POSIX.
Prodded by: Alexey Lyashkov
Notes:
svn path=/head/; revision=176215
|
| |
|
|
| |
Notes:
svn path=/head/; revision=175431
|
| |
|
|
|
|
|
|
|
| |
feature is present by checking the kern.features sysctl MIB.
MFC after: 1 week
Notes:
svn path=/head/; revision=175220
|
| |
|
|
| |
Notes:
svn path=/head/; revision=165230
|
| |
|
|
|
|
|
|
| |
libthr for a long time, set both _POSIX_BARRIERS and _POSIX_SPIN_LOCKS
to 200112L.
Notes:
svn path=/head/; revision=153005
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
different from what has been offered in libc_r (the one spotted in the
original PR which is found in libthr has already been removed by David's
commit, which is rev. 1.44 of lib/libthr/thread/thr_private.h):
- Use POSIX standard prototype for ttyname_r, which is,
int ttyname_r(int, char *, size_t);
Instead of:
char *ttyname_r(int, char *, size_t);
This is to conform IEEE Std 1003.1, 2004 Edition [1].
- Since we need to use standard errno for return code, include
errno.h in ttyname.c
- Update ttyname(3) implementation according to reflect the API
change.
- Document new ttyname_r(3) behavior
- Since we already make use of a thread local storage for
ttyname(3), remove the BUGS section.
- Remove conflicting ttyname_r related declarations found in libc_r.
Hopefully this change should not have changed the API/ABI, as the ttyname_r
symbol was never introduced before the last unistd.h change which happens a
couple of days before.
[1] http://www.opengroup.org/onlinepubs/009695399/functions/ttyname.html
Requested by: Tom McLaughlin <tmclaugh sdf lonestar org>
Through PR: threads/76938
Patched by: Craig Rodrigues <rodrigc crodrigues org> (with minor changes)
Prompted by: mezz@
Notes:
svn path=/head/; revision=146186
|
| |
|
|
| |
Notes:
svn path=/head/; revision=146099
|
| |
|
|
|
|
|
|
|
| |
- Use blksize_t and blkcnt_t in struct stat.
- Hide non-standard fields in stat.h when !__BSD_VISIBLE.
- Add restrict qualifiers in stat.h.
Notes:
svn path=/head/; revision=143952
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
http://www.opengroup.org/onlinepubs/009695399/functions/swab.html
the prototype for swab() should be in <unistd.h> and not in <string.h>.
Move it, and update to match SUS. Leave the prototype in string.h for
now, for backwards compat.
PR: 74751
Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
Discussed with: das
Notes:
svn path=/head/; revision=138659
|
| |
|
|
| |
Notes:
svn path=/head/; revision=138508
|
| |
|
|
|
|
|
| |
use it too.
Notes:
svn path=/head/; revision=126142
|
| |
|
|
|
|
|
| |
all unistd.h functions, use _GETOPT_DECLARE define for that.
Notes:
svn path=/head/; revision=126141
|
| |
|
|
|
|
|
| |
not in <unistd.h>
Notes:
svn path=/head/; revision=126136
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
an int constant to a long constant. This change improves consistency
in the following two ways:
1. The first 8 arguments are always passed in registers on ia64, which
by virtue of the generated code implicitly widens ints to longs and
allows the use of an 32-bit integral type for 64-bit arguments.
Subsequent arguments are passed onto the memory stack, which does
not exhibit the same behaviour and consequently do not allow this.
In practice this means that variadic functions taking pointers
and given NULL (without cast) work as long as the NULL is passed
in one of the first 8 arguments. A SIGSEGV is more likely the
result if such would be done for stack-based arguments. This is
due to the fact that the upper 4 bytes remain undefined.
2. All 64-bit platforms that FreeBSD supports, with the obvious
exception of ia64, allow 32-bit integral types (specifically NULL)
when 64-bit pointers are expected in variadic functions by way of
how the compiler generates code. As such, code that works correctly
(whether rightfully so or not) on any platform other than ia64, may
fail on ia64.
To more easily allow tweaking of the definition of NULL, this commit
removes the 12 definitions in the various headers and puts it in a
new header that can be included whenever NULL is to be made visible.
This commit fixes GNOME, emacs, xemacs and a whole bunch of ports
that I don't particularly care about at this time...
Notes:
svn path=/head/; revision=123257
|
| |
|
|
| |
Notes:
svn path=/head/; revision=119141
|
| |
|
|
|
|
|
| |
previous commit.
Notes:
svn path=/head/; revision=117105
|
| |
|
|
|
|
|
|
|
|
|
| |
Change execvp to be a wrapper around execvP. This is necessary for some
of the /rescue pieces. It may also be more generally applicable as well.
Submitted by: Tim Kientzle <kientzle@acm.org>
Approved by: Silence on arch@
Notes:
svn path=/head/; revision=117030
|
| |
|
|
|
|
|
|
| |
o Use useconds_t where appropriate.
o Fix a bug in typedef for uid_t (5.0-R candidate).
Notes:
svn path=/head/; revision=108381
|
| |
|
|
|
|
|
|
|
|
| |
This should be considered highly experimental for the moment.
Submitted by: David Schultz <dschultz@uclink.Berkeley.EDU>
MFC after: 3 weeks
Notes:
svn path=/head/; revision=107913
|
| |
|
|
| |
Notes:
svn path=/head/; revision=106812
|
| |
|
|
|
|
|
|
|
|
|
| |
whether a named utility should behave in FreeBSD 4.x-compatible mode
or in a standard mode (default standard). The configuration is done
malloc(3)-style, with either an environment variable or a symlink.
Update expr(1) to use this new interface.
Notes:
svn path=/head/; revision=106065
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Implement new sysconf keys. Change the implenentation of
_SC_ASYNCHRONOUS_IO in preparation for the next set of changes.
Move some limits which had been in <sys/syslimits.h> to <limits.h> where
they belong. They had only ever been in syslimits.h to provide for the
kernel implementation of the CTL_USER MIB branch, which went away with
newsysctl years ago. (There is a #error in <sys/syslimits.h> which I
will downgrade in the next commit.)
Notes:
svn path=/head/; revision=106055
|
| |
|
|
|
|
|
| |
that it can be used in-kernel for a sysctl.
Notes:
svn path=/head/; revision=105045
|
| |
|
|
|
|
|
| |
headaches for common but deprecated uses of standard utilities.
Notes:
svn path=/head/; revision=103929
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
o Include <sys/select.h> from <sys/types.h> in the __BSD_VISIBLE case,
so applications and base software can be slowly updated.
o Prototype select() in <sys/select.h>. It was previously only
prototyped in <unistd.h>.
o Add some XXX's to <sys/types.h>.
Reviewed by: -standards
Notes:
svn path=/head/; revision=103867
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(or would be) implemented (or not) exclusively in user-land. A threads
expert should check over the values I have set to make sure that they
correctly reflect reality.
Move all sysconf() keys here from <sys/unistd.h> as they are not implemented
in the kernel. Add new keys from 1003.1-2001 final text. (Some additional
keys are expected in TC1.)
Add some protection against redundant declarations between <stdlib.h>
and <unistd.h> for some functions which XSI requires in the former and
BSD traditionally declares in the latter. Restrict qualifiers and other
changes from 1003.1-2001 have not been made to the functions prototyped here.
(3 of 5)
Notes:
svn path=/head/; revision=103729
|
| |
|
|
| |
Notes:
svn path=/head/; revision=103012
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
called <machine/_types.h>.
o <machine/ansi.h> will continue to live so it can define MD clock
macros, which are only MD because of gratuitous differences between
architectures.
o Change all headers to make use of this. This mainly involves
changing:
#ifdef _BSD_FOO_T_
typedef _BSD_FOO_T_ foo_t;
#undef _BSD_FOO_T_
#endif
to:
#ifndef _FOO_T_DECLARED
typedef __foo_t foo_t;
#define _FOO_T_DECLARED
#endif
Concept by: bde
Reviewed by: jake, obrien
Notes:
svn path=/head/; revision=102227
|
| |
|
|
| |
Notes:
svn path=/head/; revision=100149
|
| |
|
|
|
|
|
| |
in confstr() processing.
Notes:
svn path=/head/; revision=100147
|
| |
|
|
| |
Notes:
svn path=/head/; revision=100145
|
| |
|
|
|
|
|
|
|
|
| |
- symlink() is from 1003.1-2001 and XPG4.2
- fchown() is from 1003.1-2001
- fsync() is from ISO/IEC 9945-1:1995
- confstr() is from 1003.2-1992
Notes:
svn path=/head/; revision=100140
|
| |
|
|
|
|
|
|
| |
Some issues still remain, and will require research in old POSIX standards
if we care to get them right.
Notes:
svn path=/head/; revision=98269
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MI, not required to be a fixed size, and used in multiple headers.
This will grow in time, as more things move here from <sys/types.h>
and <machine/ansi.h>.
o Add missing type definitions (uint16_t and uint32_t) to
<arpa/inet.h> and <netinet/in.h>.
o Reduce pollution in <sys/types.h> by using `#if _FOO_T_DECLARED'
widgets to avoid including <sys/stdint.h>.
o Add some missing type definitions to <unistd.h> and note the ones
that still need to be added.
o Make use of <sys/_types.h> primitives in <grp.h> and <sys/types.h>.
Reviewed by: bde
Notes:
svn path=/head/; revision=93514
|
| |
|
|
|
|
|
|
|
| |
# This appears to not break X11, but I'm having problems compiling the
# glide part of the server with or without this patch, so I can't tell
# for sure.
Notes:
svn path=/head/; revision=93032
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
and sbrk's prototype from char *sbrk(int) to void *sbrk(intptr_t).
This makes us more consistant with NetBSD and standards which include
these functions. Bruce pointed out that ptrdiff_t would probably
have been better than intptr_t, but this doesn't match other
implimentations.
Also remove local declarations of sbrk and unnecessary casting.
PR: 32296
Tested by: Harti Brandt <brandt@fokus.gmd.de>
MFC after: 1 month
Notes:
svn path=/head/; revision=89732
|
| |
|
|
|
|
|
|
|
| |
with uid_t usage and (user)->pw_uid.
PR: 3242
Notes:
svn path=/head/; revision=89663
|
| |
|
|
|
|
|
| |
MFC after: 3 days
Notes:
svn path=/head/; revision=88399
|
| |
|
|
| |
Notes:
svn path=/head/; revision=86317
|
| |
|
|
|
|
|
|
|
|
| |
- Clean up the manpage.
- style(9) rcmdsh.c.
Committed from: BSDCon/EU 2k+1 terminal room
Notes:
svn path=/head/; revision=86214
|