From d2bfbaf2b170c77c8331dd2e080e765d6430081e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Tue, 16 Nov 1999 21:56:45 +0000 Subject: Fixed spacing. --- doc/posix_users/clock.t | 10 +++---- doc/posix_users/cond.t | 32 ++++++++++----------- doc/posix_users/device.t | 27 ++++++++++-------- doc/posix_users/files.t | 10 +++---- doc/posix_users/io.t | 18 ++++++------ doc/posix_users/message.t | 47 +++++++++++++++++------------- doc/posix_users/mutex.t | 54 +++++++++++++++++------------------ doc/posix_users/procenv.t | 2 +- doc/posix_users/process.t | 52 ++++++++++++++++----------------- doc/posix_users/semaphores.t | 32 ++++++++++----------- doc/posix_users/signal.t | 68 ++++++++++++++++++++++---------------------- doc/posix_users/thread.t | 8 +++--- 12 files changed, 185 insertions(+), 175 deletions(-) (limited to 'doc') diff --git a/doc/posix_users/clock.t b/doc/posix_users/clock.t index 685e6b5689..a9f6aaf80f 100644 --- a/doc/posix_users/clock.t +++ b/doc/posix_users/clock.t @@ -50,7 +50,7 @@ and status codes. #include int clock_gettime( - clockid_t clock_id, + clockid_t clock_id, struct timespec *tp ); @end example @@ -88,7 +88,7 @@ NONE #include int clock_settime( - clockid_t clock_id, + clockid_t clock_id, const struct timespec *tp ); @end example @@ -130,7 +130,7 @@ NONE #include int clock_getres( - clockid_t clock_id, + clockid_t clock_id, struct timespec *res ); @end example @@ -202,7 +202,7 @@ This call is interruptible by a signal. int nanosleep( const struct timespec *rqtp, - struct timespec *rmtp + struct timespec *rmtp ); @end example @@ -245,7 +245,7 @@ This call is interruptible by a signal. #include int gettimeofday( - struct timeval *tp, + struct timeval *tp, struct timezone *tzp ); @end example diff --git a/doc/posix_users/cond.t b/doc/posix_users/cond.t index 3923da7396..688cf31331 100644 --- a/doc/posix_users/cond.t +++ b/doc/posix_users/cond.t @@ -57,7 +57,7 @@ and status codes. #include int pthread_condattr_init( -pthread_condattr_t *attr + pthread_condattr_t *attr ); @end example @@ -88,7 +88,7 @@ attributes object. #include int pthread_condattr_destroy( -pthread_condattr_t *attr + pthread_condattr_t *attr ); @end example @@ -118,8 +118,8 @@ The attribute object specified is invalid. #include int pthread_condattr_setpshared( -pthread_condattr_t *attr, -int pshared + pthread_condattr_t *attr, + int pshared ); @end example @@ -150,8 +150,8 @@ Invalid argument passed. #include int pthread_condattr_getpshared( -const pthread_condattr_t *attr, -int *pshared + const pthread_condattr_t *attr, + int *pshared ); @end example @@ -183,8 +183,8 @@ Invalid argument passed. #include int pthread_cond_init( -pthread_cond_t *cond, -const pthread_condattr_t *attr + pthread_cond_t *cond, + const pthread_condattr_t *attr ); @end example @@ -224,7 +224,7 @@ The specified attribute value is invalid. #include int pthread_cond_destroy( -pthread_cond_t *cond + pthread_cond_t *cond ); @end example @@ -257,7 +257,7 @@ The specified condition variable is currently in use. #include int pthread_cond_signal( -pthread_cond_t *cond + pthread_cond_t *cond ); @end example @@ -290,7 +290,7 @@ handler or an interrupt service routine. #include int pthread_cond_broadcast( -pthread_cond_t *cond + pthread_cond_t *cond ); @end example @@ -323,8 +323,8 @@ handler or an interrupt service routine. #include int pthread_cond_wait( -pthread_cond_t *cond, -pthread_mutex_t *mutex + pthread_cond_t *cond, + pthread_mutex_t *mutex ); @end example @@ -357,9 +357,9 @@ the mutex was not owned by the current thread at the time of the call. #include int pthread_cond_timedwait( -pthread_cond_t *cond, -pthread_mutex_t *mutex, -const struct timespec *abstime + pthread_cond_t *cond, + pthread_mutex_t *mutex, + const struct timespec *abstime ); @end example diff --git a/doc/posix_users/device.t b/doc/posix_users/device.t index 9b49cb02a7..f4f2ad4c24 100644 --- a/doc/posix_users/device.t +++ b/doc/posix_users/device.t @@ -61,7 +61,7 @@ and status codes. #include int cfgetispeed( -const struct termios *p + const struct termios *p ); @end example @end ifset @@ -104,7 +104,7 @@ number returned for any given speed may change from system to system. #include int cfgetospeed( -const struct termios *p + const struct termios *p ); @end example @end ifset @@ -147,8 +147,8 @@ number returned for any given speed may change from system to system. #include int cfsetispeed( -struct termios *p, -speed_t speed + struct termios *p, + speed_t speed ); @end example @end ifset @@ -190,8 +190,8 @@ It does not detect impossible terminal speeds. #include int cfsetospeed( -struct termios *p, -speed_t speed + struct termios *p, + speed_t speed ); @end example @end ifset @@ -238,8 +238,8 @@ It does not detect impossible terminal speeds. #include int tcgetattr( -int fildes, -struct termios *p + int fildes, + struct termios *p ); @end example @end ifset @@ -284,9 +284,9 @@ NONE #include int tcsetattr( -int fildes, -int options, -const struct termios *tp + int fildes, + int options, + const struct termios *tp ); @end example @end ifset @@ -320,6 +320,7 @@ The @ifset is-C @example int tcsendbreak( + int fd ); @end example @end ifset @@ -359,7 +360,7 @@ in a future version. #include int tcdrain( -int fildes + int fildes ); @end example @end ifset @@ -404,6 +405,7 @@ NONE @ifset is-C @example int tcflush( + int fd ); @end example @end ifset @@ -440,6 +442,7 @@ in a future version. @ifset is-C @example int tcflow( + int fd ); @end example @end ifset diff --git a/doc/posix_users/files.t b/doc/posix_users/files.t index d4e4b1ec7a..0a935296ce 100644 --- a/doc/posix_users/files.t +++ b/doc/posix_users/files.t @@ -251,10 +251,10 @@ The routine is implemented in Cygnus newlib. #include int scandir( - const char *dir, + const char *dir, struct dirent ***namelist, - int (*select)(const struct dirent *), - int (*compar)(const struct dirent **, const struct dirent **) + int (*select)(const struct dirent *), + int (*compar)(const struct dirent **, const struct dirent **) ); @end example @end ifset @@ -1420,7 +1420,7 @@ NONE #include int fstat( - int fildes, + int fildes, struct stat *buf ); @end example @@ -1497,7 +1497,7 @@ link, then the information returned in @code{buf} refers to the link itself. This is in contrast to @code{fstat()} which follows the link. -The @code{lstat()} routine is defined by BSD 4.3 and SVR4 +The @code{lstat()} routine is defined by BSD 4.3 and SVR4 and not included in POSIX 1003.1b-1996. @c diff --git a/doc/posix_users/io.t b/doc/posix_users/io.t index b97cf151d6..0950c10b77 100644 --- a/doc/posix_users/io.t +++ b/doc/posix_users/io.t @@ -249,9 +249,9 @@ may or may not be closed. #include int read( - int fildes, - void *buf, - unsigned int nbyte + int fildes, + void *buf, + unsigned int nbyte ); @end example @end ifset @@ -350,9 +350,9 @@ NONE #include int write( - int fildes, - const void *buf, - unsigned int nbytes + int fildes, + const void *buf, + unsigned int nbytes ); @end example @end ifset @@ -560,9 +560,9 @@ The errors returned by @code{dup2} are different from those returned by #include int lseek( - int fildes, - off_t offset, - int whence + int fildes, + off_t offset, + int whence ); @end example @end ifset diff --git a/doc/posix_users/message.t b/doc/posix_users/message.t index 96c97b4bbc..78261f978c 100644 --- a/doc/posix_users/message.t +++ b/doc/posix_users/message.t @@ -256,10 +256,10 @@ the calling sequence, related constants, usage, and status codes. #include mqd_t mq_open( -const char *name, -int oflag, -mode_t mode, -struct mq_attr *attr + const char *name, + int oflag, + mode_t mode, + struct mq_attr *attr ); @end example @@ -348,7 +348,9 @@ attribute structure is not used. @example #include -int mq_close(mqd_t mqdes); +int mq_close( + mqd_t mqdes +); @end example @subheading STATUS CODES: @@ -385,7 +387,9 @@ messages that were in the queue remain in the queue. @example #include -int mq_unlink(const char *name); +int mq_unlink( + const char *name +); @end example @subheading STATUS CODES: @@ -425,10 +429,10 @@ block until all references have been closed; it may return immediately. @example #include int mq_send( -mqd_t mqdes, -const char *msg_ptr, -size_t msg_len, -unsigned int msg_prio + mqd_t mqdes, + const char *msg_ptr, + size_t msg_len, + unsigned int msg_prio ); @end example @@ -480,10 +484,10 @@ the position indicated by the msg_prio argument. #include size_t mq_receive( -mqd_t mqdes, -char *msg_ptr, -size_t msg_len, -unsigned int *msg_prio + mqd_t mqdes, + char *msg_ptr, + size_t msg_len, + unsigned int *msg_prio ); @end example @@ -536,8 +540,8 @@ fails and returns an error #include int mq_notify( -mqd_t mqdes, -const struct sigevent *notification + mqd_t mqdes, + const struct sigevent *notification ); @end example @@ -594,9 +598,9 @@ It is possible for another process to receive the message after the notification #include int mq_setattr( -mqd_t mqdes, -const struct mq_attr *mqstat, -struct mq_attr *omqstat + mqd_t mqdes, + const struct mq_attr *mqstat, + struct mq_attr *omqstat ); @end example @@ -644,7 +648,10 @@ All other fields in the mq_attr are ignored by this call. @example #include -int mq_getattr(mqd_t mqdes, struct mq_attr *mqstat); +int mq_getattr( + mqd_t mqdes, + struct mq_attr *mqstat +); @end example @subheading STATUS CODES: diff --git a/doc/posix_users/mutex.t b/doc/posix_users/mutex.t index 8e4e2c0146..101cf63ca1 100644 --- a/doc/posix_users/mutex.t +++ b/doc/posix_users/mutex.t @@ -99,7 +99,7 @@ and status codes. #include int pthread_mutexattr_init( -pthread_mutexattr_t *attr + pthread_mutexattr_t *attr ); @end example @@ -136,7 +136,7 @@ XXX insert list of default attributes here. #include int pthread_mutexattr_destroy( -pthread_mutexattr_t *attr + pthread_mutexattr_t *attr ); @end example @@ -176,8 +176,8 @@ NONE #include int pthread_mutexattr_setprotocol( -pthread_mutexattr_t *attr, -int protocol + pthread_mutexattr_t *attr, + int protocol ); @end example @@ -238,8 +238,8 @@ with POSIX mutexes even though this could easily by supported by RTEMS. #include int pthread_mutexattr_getprotocol( -pthread_mutexattr_t *attr, -int *protocol + pthread_mutexattr_t *attr, + int *protocol ); @end example @@ -282,8 +282,8 @@ NONE #include int pthread_mutexattr_setprioceiling( -pthread_mutexattr_t *attr, -int prioceiling + pthread_mutexattr_t *attr, + int prioceiling ); @end example @@ -328,8 +328,8 @@ NONE #include int pthread_mutexattr_getprioceiling( -const pthread_mutexattr_t *attr, -int *prioceiling + const pthread_mutexattr_t *attr, + int *prioceiling ); @end example @@ -373,8 +373,8 @@ NONE #include int pthread_mutexattr_setpshared( -pthread_mutexattr_t *attr, -int pshared + pthread_mutexattr_t *attr, + int pshared ); @end example @@ -411,8 +411,8 @@ The pshared argument is invalid. #include int pthread_mutexattr_getpshared( -const pthread_mutexattr_t *attr, -int *pshared + const pthread_mutexattr_t *attr, + int *pshared ); @end example @@ -449,8 +449,8 @@ The pshared pointer argument is invalid. #include int pthread_mutex_init( -pthread_mutex_t *mutex, -const pthread_mutexattr_t *attr + pthread_mutex_t *mutex, + const pthread_mutexattr_t *attr ); @end example @@ -494,7 +494,7 @@ initialized, but not yet destroyed. #include int pthread_mutex_destroy( -pthread_mutex_t *mutex + pthread_mutex_t *mutex ); @end example @@ -529,7 +529,7 @@ referenced by another thread. #include int pthread_mutex_lock( -pthread_mutex_t *mutex + pthread_mutex_t *mutex ); @end example @@ -568,7 +568,7 @@ The current thread already owns the mutex. #include int pthread_mutex_trylock( -pthread_mutex_t *mutex + pthread_mutex_t *mutex ); @end example @@ -608,8 +608,8 @@ The current thread already owns the mutex. #include int pthread_mutex_timedlock( -pthread_mutex_t *mutex, -const struct timespec *timeout + pthread_mutex_t *mutex, + const struct timespec *timeout ); @end example @@ -652,7 +652,7 @@ The current thread already owns the mutex. #include int pthread_mutex_unlock( -pthread_mutex_t *mutex + pthread_mutex_t *mutex ); @end example @@ -683,9 +683,9 @@ The specified mutex is invalid. #include int pthread_mutex_setprioceiling( -pthread_mutex_t *mutex, -int prioceiling, -int *oldceiling + pthread_mutex_t *mutex, + int prioceiling, + int *oldceiling ); @end example @@ -722,8 +722,8 @@ The specified mutex is invalid. #include int pthread_mutex_getprioceiling( -pthread_mutex_t *mutex, -int *prioceiling + pthread_mutex_t *mutex, + int *prioceiling ); @end example diff --git a/doc/posix_users/procenv.t b/doc/posix_users/procenv.t index 31ce221a99..021146ec3b 100644 --- a/doc/posix_users/procenv.t +++ b/doc/posix_users/procenv.t @@ -565,7 +565,7 @@ The #include clock_t times( -struct tms *buf + struct tms *buf ); @end example diff --git a/doc/posix_users/process.t b/doc/posix_users/process.t index 719fffa536..fb81c01d49 100644 --- a/doc/posix_users/process.t +++ b/doc/posix_users/process.t @@ -95,9 +95,9 @@ NONE @ifset is-C @example int execl( -const char *path, -const char *arg, -... + const char *path, + const char *arg, + ... ); @end example @end ifset @@ -135,9 +135,9 @@ NONE @ifset is-C @example int execv( -const char *path, -char const *argv[], -... + const char *path, + char const *argv[], + ... ); @end example @end ifset @@ -175,9 +175,9 @@ NONE @ifset is-C @example int execle( -const char *path, -const char *arg, -... + const char *path, + const char *arg, + ... ); @end example @end ifset @@ -215,9 +215,9 @@ NONE @ifset is-C @example int execve( -const char *path, -char *const argv[], -char *const envp[] + const char *path, + char *const argv[], + char *const envp[] ); @end example @end ifset @@ -255,9 +255,9 @@ NONE @ifset is-C @example int execlp( -const char *file, -const char *arg, -... + const char *file, + const char *arg, + ... ); @end example @end ifset @@ -295,9 +295,9 @@ NONE @ifset is-C @example int execvp( -const char *file, -char *const argv[] -... + const char *file, + char *const argv[] + ... ); @end example @end ifset @@ -337,9 +337,9 @@ NONE #include int pthread_atfork( -void (*prepare)(void), -void (*parent)(void), -void (*child)(void) + void (*prepare)(void), + void (*parent)(void), + void (*child)(void) ); @end example @end ifset @@ -380,7 +380,7 @@ NONE #include int wait( -int *stat_loc + int *stat_loc ); @end example @end ifset @@ -418,9 +418,9 @@ NONE @ifset is-C @example int wait( -pid_t pid, -int *stat_loc, -int options + pid_t pid, + int *stat_loc, + int options ); @end example @end ifset @@ -458,7 +458,7 @@ NONE @ifset is-C @example void _exit( -int status + int status ); @end example @end ifset diff --git a/doc/posix_users/semaphores.t b/doc/posix_users/semaphores.t index e3bbcbd84e..11f35e43a8 100644 --- a/doc/posix_users/semaphores.t +++ b/doc/posix_users/semaphores.t @@ -85,9 +85,9 @@ and status codes. @ifset is-C @example int sem_init( -sem_t *sem, -int pshared, -unsigned int value + sem_t *sem, + int pshared, + unsigned int value ); @end example @end ifset @@ -141,7 +141,7 @@ Multiprocessing is currently not supported in this implementation. @ifset is-C @example int sem_destroy( -sem_t *sem + sem_t *sem ); @end example @end ifset @@ -189,9 +189,9 @@ Multiprocessing is currently not supported in this implementation. @ifset is-C @example -int sem_open) -const char *name, -int oflag +int sem_open( + const char *name, + int oflag ); @end example @end ifset @@ -269,7 +269,7 @@ determining if the semaphore is created or accessed by a call to sem_open(). @ifset is-C @example int sem_close( -sem_t *sem_close + sem_t *sem_close ); @end example @end ifset @@ -311,7 +311,7 @@ return and errno is set. @ifset is-C @example int sem_unlink( -const char *name + const char *name ); @end example @end ifset @@ -366,7 +366,7 @@ is returned and the errno is set. @ifset is-C @example int sem_wait( -sem_t *sem + sem_t *sem ); @end example @end ifset @@ -410,7 +410,7 @@ Multiprocessing is not supported in this implementation. @ifset is-C @example int sem_trywait( -sem_t *sem + sem_t *sem ); @end example @end ifset @@ -458,8 +458,8 @@ Multiprocessing is not supported in this implementation. @ifset is-C @example int sem_timedwait( -sem_t *sem, -const struct timespec *timeout + sem_t *sem, + const struct timespec *timeout ); @end example @end ifset @@ -510,7 +510,7 @@ Multiprocessing is not supported in this implementation. @ifset is-C @example int sem_post( -sem_t *sem + sem_t *sem ); @end example @end ifset @@ -555,8 +555,8 @@ Multiprocessing is not supported in this implementation. @ifset is-C @example int sem_getvalue( -sem_t *sem, -int *sval + sem_t *sem, + int *sval ); @end example @end ifset diff --git a/doc/posix_users/signal.t b/doc/posix_users/signal.t index dbc873b90a..70e851b398 100644 --- a/doc/posix_users/signal.t +++ b/doc/posix_users/signal.t @@ -95,8 +95,8 @@ and status codes. #include int sigaddset( -sigset_t *set, -int signo + sigset_t *set, + int signo ); @end example @@ -131,8 +131,8 @@ NONE #include int sigdelset( -sigset_t *set, -int signo + sigset_t *set, + int signo ); @end example @@ -167,7 +167,7 @@ NONE #include int sigfillset( -sigset_t *set + sigset_t *set ); @end example @@ -204,8 +204,8 @@ NONE #include int sigismember( -const sigset_t *set, -int signo + const sigset_t *set, + int signo ); @end example @@ -242,7 +242,7 @@ NONE #include int sigemptyset( -sigset_t *set + sigset_t *set ); @end example @@ -279,9 +279,9 @@ NONE #include int sigaction( -int sig, -const struct sigaction *act, -struct sigaction *oact + int sig, + const struct sigaction *act, + struct sigaction *oact ); @end example @@ -322,8 +322,8 @@ The signal number cannot be SIGKILL. #include int pthread_kill( -pthread_t thread, -int sig + pthread_t thread, + int sig ); @end example @@ -362,9 +362,9 @@ NONE #include int sigprocmask( -int how, -const sigset_t *set, -sigset_t *oset + int how, + const sigset_t *set, + sigset_t *oset ); @end example @@ -421,9 +421,9 @@ It is not an error to unblock a signal which is not blocked. #include int pthread_sigmask( -int how, -const sigset_t *set, -sigset_t *oset + int how, + const sigset_t *set, + sigset_t *oset ); @end example @@ -479,8 +479,8 @@ It is not an error to unblock a signal which is not blocked. #include int kill( -pid_t pid, -int sig + pid_t pid, + int sig ); @end example @@ -520,7 +520,7 @@ NONE #include int sigpending( -const sigset_t *set + const sigset_t *set ); @end example @@ -561,7 +561,7 @@ NONE #include int sigsuspend( -const sigset_t *sigmask + const sigset_t *sigmask ); @end example @@ -640,8 +640,8 @@ NONE #include int sigwait( -const sigset_t *set, -int *sig + const sigset_t *set, + int *sig ); @end example @@ -681,8 +681,8 @@ NONE #include int sigwaitinfo( -const sigset_t *set, -siginfo_t *info + const sigset_t *set, + siginfo_t *info ); @end example @@ -718,9 +718,9 @@ NONE #include int sigtimedwait( -const sigset_t *set, -siginfo_t *info, -const struct timespec *timeout + const sigset_t *set, + siginfo_t *info, + const struct timespec *timeout ); @end example @@ -764,9 +764,9 @@ the specified signal set. #include int sigqueue( -pid_t pid, -int signo, -const union sigval value + pid_t pid, + int signo, + const union sigval value ); @end example @@ -816,7 +816,7 @@ NONE #include unsigned int alarm( -unsigned int seconds + unsigned int seconds ); @end example diff --git a/doc/posix_users/thread.t b/doc/posix_users/thread.t index 97f54b086e..f5094df3b6 100644 --- a/doc/posix_users/thread.t +++ b/doc/posix_users/thread.t @@ -887,10 +887,10 @@ family of routines to which this routine belongs is supported. #include int pthread_create( - pthread_t *thread, - const pthread_attr_t *attr, - void (*start_routine)( void *), - void *arg + pthread_t *thread, + const pthread_attr_t *attr, + void (*start_routine)( void *), + void *arg ); @end example -- cgit v1.2.3