History log of /openbsd/lib/libc/gen/popen.c (Results 1 – 22 of 22)
Revision Date Author Comments
# df69c215 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# 9b9d2a55 31-Aug-2015 guenther <guenther@openbsd.org>

Add framework for resolving (pun intended) libc namespace issues, using
wrapper .h files and asm labels to let internal calls resolve directly and
not be overridable or use the PLT. Then, apply that

Add framework for resolving (pun intended) libc namespace issues, using
wrapper .h files and asm labels to let internal calls resolve directly and
not be overridable or use the PLT. Then, apply that framework to most of
the functions in stdio.h, string.h, err.h, and wchar.h. Delete the
should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.

tests clean on i386, amd64, sparc64, powerpc, and mips64

naming feedback from kettenis@ and millert@
ok kettenis@

show more ...


# aea60bee 16-Jan-2015 deraadt <deraadt@openbsd.org>

Move to the <limits.h> universe.
review by millert, binary checking process with doug, concept with guenther


# ed42a740 31-Aug-2014 guenther <guenther@openbsd.org>

Add additional userland interfaces for setting close-on-exec on fds
when creating them: mkostemp(), mkostemps(), the 'e' mode letter for
fopen(), freopen(), fdopen(), and popen(). The close-on-exec

Add additional userland interfaces for setting close-on-exec on fds
when creating them: mkostemp(), mkostemps(), the 'e' mode letter for
fopen(), freopen(), fdopen(), and popen(). The close-on-exec flag will
be cleared by the action created by posix_spawn_file_actions_adddup2().

Also, add support for the C11 'x' mode letter for fopen() and freopen(),
setting O_EXCL when possibly creating files.

Note: this requires kernel support for pipe2() and dup3()!

ok millert@

show more ...


# 90491441 26-Nov-2007 kurt <kurt@openbsd.org>

make popen/pclose thread safe. closes library/5634. from and okay andreas@


# c2c925de 08-Aug-2005 espie <espie@openbsd.org>

zap remaining rcsid.

Kill old files that are no longer compiled.

okay theo


# 80647cb2 25-Mar-2005 otto <otto@openbsd.org>

deregister (and deauto!). ok millert@ marco@


# e272fe10 06-Aug-2004 pedro <pedro@openbsd.org>

in pclose(), only fclose() a stream if it has been opened by popen(), so
that applications doing: 'ok = (pclose(f) != -1) || (fclose(f) == 0)'
can work safely and avoid a double-close of a stream. ok

in pclose(), only fclose() a stream if it has been opened by popen(), so
that applications doing: 'ok = (pclose(f) != -1) || (fclose(f) == 0)'
can work safely and avoid a double-close of a stream. ok millert@

show more ...


# 73b3e3c4 18-May-2004 jfb <jfb@openbsd.org>

ansify function definitions and zap some `register'

ok millert@


# 6580fee3 02-Jun-2003 millert <millert@openbsd.org>

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999. Proofed by myself and Theo.


# fc804817 16-Jan-2002 millert <millert@openbsd.org>

Use the volatile specifier to fix warnings about variables being
clobbered by longjmp / vfork instead of the gcc "(void)&foo;" hack.


# e4490880 02-Jan-2002 deraadt <deraadt@openbsd.org>

more pid_t use


# c96f6a27 09-Jul-2001 deraadt <deraadt@openbsd.org>

correct type on last arg to execl(); nordin@cse.ogi.edu


# 1703df50 11-Sep-1997 deraadt <deraadt@openbsd.org>

make popen() safe for a real vfork()


# fa4719ea 24-Aug-1997 millert <millert@openbsd.org>

Fix compiler warnings.


# b0f29dd7 09-Jul-1997 millert <millert@openbsd.org>

Clean up some -Wall complaints.


# 0caf00bf 22-Jun-1997 tholo <tholo@openbsd.org>

Fix a bogon in last change


# bc2f3585 22-Jun-1997 tholo <tholo@openbsd.org>

Close pipes before dup'ing file descriptors in the child, not after.
From NetBSD PR #3673 by Dave Sainty <David.Sainty@MCS.VUW.AC.NZ>


# 21cfeb15 16-Apr-1997 millert <millert@openbsd.org>

Don't modify variables in the child since we vfork()'d to
get there (address space is shared between parent in child
in traditional vfork(2)). From FreeBSD (dyson).


# e9b2b68c 19-Aug-1996 tholo <tholo@openbsd.org>

Fix RCS ids
Make sure everything uses {SYS,}LIBC_SCCS properly


# f42d672e 27-Jul-1996 deraadt <deraadt@openbsd.org>

close all pipes in child; netbsd pr#2575


# df930be7 18-Oct-1995 deraadt <deraadt@openbsd.org>

initial import of NetBSD tree