Prototype declarations.
authorDonn Seeley <donn@ucbvax.Berkeley.EDU>
Sat, 23 Feb 1991 04:12:30 +0000 (20:12 -0800)
committerDonn Seeley <donn@ucbvax.Berkeley.EDU>
Sat, 23 Feb 1991 04:12:30 +0000 (20:12 -0800)
SCCS-vsn: sys/sys/syslog.h 7.18
SCCS-vsn: sys/sys/termios.h 7.21
SCCS-vsn: sys/sys/time.h 7.6

usr/src/sys/sys/syslog.h
usr/src/sys/sys/termios.h
usr/src/sys/sys/time.h

index e8f0cff..a3c91a8 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)syslog.h    7.17 (Berkeley) %G%
+ *     @(#)syslog.h    7.18 (Berkeley) %G%
  */
 
 #define        _PATH_LOG       "/dev/log"
  */
 
 #define        _PATH_LOG       "/dev/log"
@@ -135,3 +135,18 @@ CODE facilitynames[] = {
 #define        LOG_NDELAY      0x08    /* don't delay open */
 #define        LOG_NOWAIT      0x10    /* don't wait for console forks: DEPRECATED */
 #define        LOG_PERROR      0x20    /* log to stderr as well */
 #define        LOG_NDELAY      0x08    /* don't delay open */
 #define        LOG_NOWAIT      0x10    /* don't wait for console forks: DEPRECATED */
 #define        LOG_PERROR      0x20    /* log to stderr as well */
+
+#ifndef KERNEL
+
+#include <sys/cdefs.h>
+#include <varargs.h>
+
+__BEGIN_DECLS
+void   closelog __P((void));
+void   openlog __P((const char *, int, int));
+void   setlogmask __P((int));
+void   syslog __P((int, const char *, ...));
+void   vsyslog __P((int, const char *, va_list));
+__END_DECLS
+
+#endif /* !KERNEL */
index bac9d11..1dcd8e6 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)termios.h   7.20 (Berkeley) %G%
+ *     @(#)termios.h   7.21 (Berkeley) %G%
  */
 
 /*
  */
 
 /*
 
 typedef unsigned long  tcflag_t;
 typedef unsigned char  cc_t;
 
 typedef unsigned long  tcflag_t;
 typedef unsigned char  cc_t;
+typedef long           speed_t;
 
 struct termios {
        tcflag_t        c_iflag;        /* input flags */
 
 struct termios {
        tcflag_t        c_iflag;        /* input flags */
@@ -194,6 +195,31 @@ struct termios {
 #define EXTA   19200
 #define EXTB   38400
 #endif  /*_POSIX_SOURCE */
 #define EXTA   19200
 #define EXTB   38400
 #endif  /*_POSIX_SOURCE */
+
+#ifndef KERNEL
+
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
+speed_t        cfgetispeed __P((const struct termios *));
+speed_t        cfgetospeed __P((const struct termios *));
+int    cfsetispeed __P((struct termios *, speed_t));
+int    cfsetospeed __P((struct termios *, speed_t));
+int    tcdrain __P((int));
+int    tcflow __P((int, int));
+int    tcflush __P((int, int));
+int    tcgetattr __P((int, struct termios *));
+int    tcsendbreak __P((int, int));
+int    tcsetattr __P((int, int, const struct termios *));
+
+#ifndef _POSIX_SOURCE
+void   cfmakeraw __P((struct termios *));
+void   cfsetspeed __P((struct termios *, speed_t));
+#endif /* !POSIX */
+__END_DECLS
+
+#endif /* !KERNEL */
+
 /*
  * END OF PROTECTED INCLUDE.
  */
 /*
  * END OF PROTECTED INCLUDE.
  */
index 71a2813..ea3d756 100644 (file)
@@ -4,7 +4,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)time.h      7.5 (Berkeley) %G%
+ *     @(#)time.h      7.6 (Berkeley) %G%
  */
 
 #ifndef _SYS_TIME_H_
  */
 
 #ifndef _SYS_TIME_H_
@@ -57,6 +57,20 @@ struct       itimerval {
 
 #ifndef KERNEL
 #include <time.h>
 
 #ifndef KERNEL
 #include <time.h>
-#endif
+
+#ifndef _POSIX_SOURCE
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
+int    adjtime __P((const struct timeval *, struct timeval *));
+int    getitimer __P((int, struct itimerval *));
+int    gettimeofday __P((struct timeval *, struct timezone *));
+int    setitimer __P((int, const struct itimerval *, struct itimerval *));
+int    settimeofday __P((const struct timeval *, const struct timezone *));
+int    utimes __P((const char *, const struct timeval *));
+__END_DECLS
+#endif /* !POSIX */
+
+#endif /* !KERNEL */
 
 #endif /* !_SYS_TIME_H_ */
 
 #endif /* !_SYS_TIME_H_ */