diff options
author | Christopher Faylor <me@cgf.cx> | 2003-01-05 03:01:31 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-01-05 03:01:31 +0000 |
commit | 3b49c2a7cf9cd041c9f5c73870afcbfff71433c0 (patch) | |
tree | af94825c6ee7388ff370d39bf9a3c44ae7f05f06 | |
parent | 2327978d226f1dca3dd8e9e0894481ec08b7b9c1 (diff) | |
download | newlib-unlabeled-1.12.20.zip newlib-unlabeled-1.12.20.tar.gz newlib-unlabeled-1.12.20.tar.bz2 |
Replace is_fs_device with is_fs_special throughout.github/unlabeled-1.12.20unlabeled-1.12.20
* Makefile.in (DLL_OFILES): Add fhandler_fifo.o.
* devices.h (fh_devices): Renumber some minor numbers to fit in 8 bits.
* dtable.cc (dtable::build_fhandler): Handle FH_FIFO. Set errno to ENODEV if
device not found.
* dtable::find_fifo: Define new function.
* dtable.h (dtable::find_fifo): Declare new function.
* fhandler.cc (fhandler_base::device_access_denied): Fix O_RDONLY test.
(fhandler_base::write): Use output file handle for writing.
(fhandler_base::fstat): Use is_fs_special rather than is_fs_device.
* fhandler.h (fhandler_base::is_fs_special): Rename from is_fs_device.
(fhandler_pipe): Make private elements protected so that fhandler_fifo can use
them too.
(fhandler_pipe::create): New function derived from make_pipe.
(fhandler_fifo): Add more needed elements.
(fhandler_pty_master::slave): Add to track slave device.
(fhandler_pty_master::get_unit): Define.
* fhandler_tty.cc (fhandler_tty_master::init): Register slave device.
(fhandler_pty_master::open): Ditto.
(symlink_info::parse_device): Handle fifo specially.
* pinfo.cc (_pinfo::commune_recv): Initial fifo implementation.
(_pinfo::commune_send): Ditto.
* pinfo.h (picom): Add PICOM_FIFO.
* pipe.cc (fhandler_pipe::close): Close input handle here specifically.
(fhandler_pipe::create): Rename from make_pipe. Create fhandlers rather than
fds.
(pipe): Use fhandler_pipe::create to create pipe.
(_pipe): Ditto.
* syscalls.cc (mknod): Accommodate fifos.
-rw-r--r-- | winsup/cygwin/smallprint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/winsup/cygwin/smallprint.c b/winsup/cygwin/smallprint.c index 247fcf9..ec31afa 100644 --- a/winsup/cygwin/smallprint.c +++ b/winsup/cygwin/smallprint.c @@ -15,7 +15,7 @@ details. */ #define WIN32_LEAN_AND_MEAN #include <windows.h> -int __small_sprintf (char *dst, const char *fmt,...); +int __small_sprintf (char *dst, const char *fmt, ...); int __small_vsprintf (char *dst, const char *fmt, va_list ap); static char * @@ -108,7 +108,7 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap) continue; case 'c': { - int c = va_arg (ap,int); + int c = va_arg (ap, int); if (c > ' ' && c <= 127) *dst++ = c; else @@ -180,7 +180,7 @@ __small_vsprintf (char *dst, const char *fmt, va_list ap) } int -__small_sprintf (char *dst, const char *fmt,...) +__small_sprintf (char *dst, const char *fmt, ...) { int r; va_list ap; @@ -191,7 +191,7 @@ __small_sprintf (char *dst, const char *fmt,...) } void -small_printf (const char *fmt,...) +small_printf (const char *fmt, ...) { char buf[16384]; va_list ap; @@ -218,7 +218,7 @@ small_printf (const char *fmt,...) #ifdef DEBUGGING static HANDLE NO_COPY console_handle = NULL; void -console_printf (const char *fmt,...) +console_printf (const char *fmt, ...) { char buf[16384]; va_list ap; |