From 64adc13c8669890dafdc5081b71ac21a708c7189 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Sun, 24 Jul 2011 23:55:15 +0000 Subject: 2011-07-24 Joel Sherrill * ftpd/ftpd.c, libcsupport/src/geteuid.c, libcsupport/src/getgroups.c, libcsupport/src/getpgrp.c, libcsupport/src/getpid.c, libcsupport/src/getppid.c, libcsupport/src/setpgid.c, libcsupport/src/setsid.c, libcsupport/src/utsname.c, libmisc/stackchk/check.c, posix/include/rtems/posix/mqueue.h, posix/inline/rtems/posix/cond.inl, posix/inline/rtems/posix/mqueue.inl, posix/inline/rtems/posix/mutex.inl, posix/inline/rtems/posix/pthread.inl, posix/inline/rtems/posix/semaphore.inl, posix/inline/rtems/posix/timer.inl, posix/src/alarm.c, posix/src/barrierattrdestroy.c, posix/src/barrierattrgetpshared.c, posix/src/barrierattrinit.c, posix/src/barrierattrsetpshared.c, posix/src/cleanuppop.c, posix/src/cleanuppush.c, posix/src/clockgetcpuclockid.c, posix/src/clockgetenableattr.c, posix/src/clockgetres.c, posix/src/clockgettime.c, posix/src/clocksetenableattr.c, posix/src/clocksettime.c, posix/src/cond.c, posix/src/condattrdestroy.c, posix/src/condattrgetpshared.c, posix/src/condattrinit.c, posix/src/condattrsetpshared.c, posix/src/condbroadcast.c, posix/src/conddefaultattributes.c, posix/src/conddestroy.c, posix/src/condinit.c, posix/src/condsignal.c, posix/src/condsignalsupp.c, posix/src/condtimedwait.c, posix/src/condwait.c, posix/src/condwaitsupp.c, posix/src/keygetspecific.c, posix/src/keyrundestructors.c, posix/src/keysetspecific.c, posix/src/mprotect.c, posix/src/mqueue.c, posix/src/mqueuecreatesupp.c, posix/src/mqueuedeletesupp.c, posix/src/mqueuegetattr.c, posix/src/mqueuenotify.c, posix/src/mqueuereceive.c, posix/src/mqueuesend.c, posix/src/mqueuesendsupp.c, posix/src/mqueuesetattr.c, posix/src/mqueuetimedreceive.c, posix/src/mqueuetimedsend.c, posix/src/mqueuetranslatereturncode.c, posix/src/mqueueunlink.c, posix/src/mutex.c, posix/src/mutexattrdestroy.c, posix/src/mutexattrgetprioceiling.c, posix/src/mutexattrgetprotocol.c, posix/src/mutexattrgetpshared.c, posix/src/mutexattrinit.c, posix/src/mutexattrsetprioceiling.c, posix/src/mutexattrsetprotocol.c, posix/src/mutexattrsetpshared.c, posix/src/mutexdestroy.c, posix/src/mutexgetprioceiling.c, posix/src/mutexinit.c, posix/src/mutexlock.c, posix/src/mutexlocksupp.c, posix/src/mutexsetprioceiling.c, posix/src/mutextimedlock.c, posix/src/mutextrylock.c, posix/src/mutexunlock.c, posix/src/nanosleep.c, posix/src/psignal.c, posix/src/psignalchecksignal.c, posix/src/psignalclearprocesssignals.c, posix/src/psignalclearsignals.c, posix/src/psignalsetprocesssignals.c, posix/src/psignalunblockthread.c, posix/src/pthreadinitthreads.c, posix/src/rwlockattrdestroy.c, posix/src/rwlockattrgetpshared.c, posix/src/rwlockattrinit.c, posix/src/rwlockattrsetpshared.c, posix/src/semaphore.c, posix/src/semaphoredeletesupp.c, posix/src/semaphorenametoid.c, posix/src/semaphorewaitsupp.c, posix/src/semclose.c, posix/src/semdestroy.c, posix/src/semgetvalue.c, posix/src/seminit.c, posix/src/semopen.c, posix/src/sempost.c, posix/src/semtimedwait.c, posix/src/semtrywait.c, posix/src/semunlink.c, posix/src/semwait.c, posix/src/sysconf.c, posix/src/testcancel.c, posix/src/ualarm.c, rtems/src/clockgetuptime.c, rtems/src/clockset.c, rtems/src/clocksetnsecshandler.c, rtems/src/clocktick.c, rtems/src/clocktodtoseconds.c, rtems/src/clocktodvalidate.c, rtems/src/dpmem.c, rtems/src/dpmemcreate.c, rtems/src/dpmemdelete.c, rtems/src/dpmemexternal2internal.c, rtems/src/dpmemident.c, rtems/src/dpmeminternal2external.c, rtems/src/event.c, rtems/src/eventmp.c, rtems/src/eventreceive.c, rtems/src/eventseize.c, rtems/src/eventsend.c, rtems/src/eventsurrender.c, rtems/src/eventtimeout.c, rtems/src/mp.c, rtems/src/msg.c, rtems/src/msgmp.c, rtems/src/msgqallocate.c, rtems/src/msgqbroadcast.c, rtems/src/msgqcreate.c, rtems/src/msgqdelete.c, rtems/src/msgqflush.c, rtems/src/msgqgetnumberpending.c, rtems/src/msgqident.c, rtems/src/msgqreceive.c, rtems/src/msgqtranslatereturncode.c, rtems/src/msgqurgent.c, rtems/src/part.c, rtems/src/partcreate.c, rtems/src/partdelete.c, rtems/src/partgetbuffer.c, rtems/src/partident.c, rtems/src/partmp.c, rtems/src/partreturnbuffer.c, rtems/src/ratemon.c, rtems/src/ratemoncancel.c, rtems/src/ratemoncreate.c, rtems/src/ratemondelete.c, rtems/src/ratemongetstatistics.c, rtems/src/ratemongetstatus.c, rtems/src/ratemonident.c, rtems/src/ratemonperiod.c, rtems/src/ratemonresetstatistics.c, rtems/src/ratemontimeout.c, rtems/src/region.c, rtems/src/regioncreate.c, rtems/src/regiondelete.c, rtems/src/regionextend.c, rtems/src/regiongetfreeinfo.c, rtems/src/regiongetinfo.c, rtems/src/regiongetsegment.c, rtems/src/regiongetsegmentsize.c, rtems/src/regionident.c, rtems/src/regionmp.c, rtems/src/regionprocessqueue.c, rtems/src/regionresizesegment.c, rtems/src/regionreturnsegment.c, rtems/src/rtemsobjectgetclassicname.c, rtems/src/rtemstimer.c, rtems/src/sem.c, rtems/src/semcreate.c, rtems/src/semdelete.c, rtems/src/semflush.c, rtems/src/semident.c, rtems/src/semmp.c, rtems/src/semobtain.c, rtems/src/semrelease.c, rtems/src/semtranslatereturncode.c, rtems/src/signal.c, rtems/src/signalcatch.c, rtems/src/signalmp.c, rtems/src/signalsend.c, rtems/src/taskcreate.c, rtems/src/taskdelete.c, rtems/src/taskgetnote.c, rtems/src/taskident.c, rtems/src/taskinitusers.c, rtems/src/taskissuspended.c, rtems/src/taskmp.c, rtems/src/taskrestart.c, rtems/src/taskresume.c, rtems/src/tasks.c, rtems/src/tasksetnote.c, rtems/src/tasksetpriority.c, rtems/src/taskstart.c, rtems/src/tasksuspend.c, rtems/src/taskwakeafter.c, rtems/src/taskwakewhen.c, rtems/src/timercancel.c, rtems/src/timercreate.c, rtems/src/timerdelete.c, rtems/src/timerfireafter.c, rtems/src/timerfirewhen.c, rtems/src/timergetinfo.c, rtems/src/timerident.c, rtems/src/timerreset.c, rtems/src/timerserverfireafter.c, rtems/src/timerserverfirewhen.c, sapi/src/debug.c, sapi/src/extension.c, sapi/src/posixapi.c, sapi/src/rtemsapi.c, score/src/apiext.c, score/src/chain.c, score/src/corebarrier.c, score/src/corebarrierrelease.c, score/src/corebarrierwait.c, score/src/coremsgbroadcast.c, score/src/coremsgclose.c, score/src/coremsgflush.c, score/src/coremsgflushsupp.c, score/src/coremsgflushwait.c, score/src/coremsginsert.c, score/src/coremsgseize.c, score/src/coremsgsubmit.c, score/src/coremutex.c, score/src/coremutexflush.c, score/src/coremutexseize.c, score/src/corerwlock.c, score/src/corerwlockobtainread.c, score/src/corerwlockobtainwrite.c, score/src/corerwlockrelease.c, score/src/coresem.c, score/src/coresemflush.c, score/src/coresemsurrender.c, score/src/corespinlock.c, score/src/corespinlockrelease.c, score/src/corespinlockwait.c, score/src/coretod.c, score/src/coretodset.c, score/src/coretodtickle.c, score/src/heap.c, score/src/interr.c, score/src/mpci.c, score/src/objectallocate.c, score/src/objectextendinformation.c, score/src/objectfree.c, score/src/objectget.c, score/src/objectgetisr.c, score/src/objectgetnext.c, score/src/objectgetnoprotection.c, score/src/objectinitializeinformation.c, score/src/objectmp.c, score/src/objectnametoid.c, score/src/objectnametoidstring.c, score/src/objectshrinkinformation.c, score/src/rbtree.c, score/src/threaddelayended.c, score/src/threadhandler.c, score/src/threadinitialize.c, score/src/threadloadenv.c, score/src/threadmp.c, score/src/threadq.c, score/src/threadqdequeue.c, score/src/threadqdequeuefifo.c, score/src/threadqdequeuepriority.c, score/src/threadqenqueue.c, score/src/threadqenqueuefifo.c, score/src/threadqenqueuepriority.c, score/src/threadqextract.c, score/src/threadqextractfifo.c, score/src/threadqextractpriority.c, score/src/threadqextractwithproxy.c, score/src/threadqfirst.c, score/src/threadqfirstfifo.c, score/src/threadqfirstpriority.c, score/src/threadqflush.c, score/src/threadqrequeue.c, score/src/threadstackallocate.c, score/src/threadstartmultitasking.c, score/src/watchdog.c, score/src/watchdogadjust.c, score/src/watchdoginsert.c, score/src/watchdogremove.c, score/src/watchdogtickle.c: Remove /*PAGE markers which were interpreted by a long dead print script. --- cpukit/ftpd/ftpd.c | 93 ++++++++++++++++++------------------------------------ 1 file changed, 31 insertions(+), 62 deletions(-) (limited to 'cpukit/ftpd') diff --git a/cpukit/ftpd/ftpd.c b/cpukit/ftpd/ftpd.c index cb00953603..9f398b3aed 100644 --- a/cpukit/ftpd/ftpd.c +++ b/cpukit/ftpd/ftpd.c @@ -256,8 +256,7 @@ extern struct rtems_ftpd_configuration rtems_ftpd_configuration; /* this is not prototyped in strict ansi mode */ FILE *fdopen (int fildes, const char *mode); -/*PAGE - * SessionInfo structure. +/*SessionInfo structure. * * The following structure is allocated for each session. */ @@ -315,8 +314,7 @@ static int ftpd_timeout = 0; */ static int ftpd_access = 0; -/*PAGE - * +/* * serr * * Return error string corresponding to current 'errno'. @@ -330,8 +328,7 @@ serr(void) return strerror(err); } -/*PAGE - * +/* * Utility routines for access control. * */ @@ -348,15 +345,13 @@ can_write(void) return (ftpd_access & FTPD_NO_WRITE) == 0; } -/*PAGE - * +/* * Task pool management routines * */ -/*PAGE - * +/* * task_pool_done * * Cleanup task pool. @@ -389,8 +384,7 @@ task_pool_done(int count) task_pool.mutex = -1; } -/*PAGE - * +/* * task_pool_init * * Initialize task pool. @@ -484,8 +478,7 @@ task_pool_init(int count, rtems_task_priority priority) return 1; } -/*PAGE - * +/* * task_pool_obtain * * Obtain free task from task pool. @@ -515,8 +508,7 @@ task_pool_obtain(void) return info; } -/*PAGE - * +/* * task_pool_release * * Return task obtained by 'obtain()' back to the task pool. @@ -543,8 +535,7 @@ task_pool_release(FTPD_SessionInfo_t* info) * End of task pool routines */ -/*PAGE - * +/* * Function: send_reply * * @@ -568,8 +559,7 @@ send_reply(FTPD_SessionInfo_t *info, int code, char *text) } -/*PAGE - * +/* * close_socket * * Close socket. @@ -602,8 +592,7 @@ set_socket_timeout(int s, int seconds) return res; } -/*PAGE - * +/* * close_socket * * Close socket. @@ -629,8 +618,7 @@ close_socket(int s) return 1; } -/*PAGE - * +/* * data_socket * * Create data socket for session. @@ -701,8 +689,7 @@ data_socket(FTPD_SessionInfo_t *info) return s; } -/*PAGE - * +/* * close_data_socket * * Close data socket for session. @@ -729,8 +716,7 @@ close_data_socket(FTPD_SessionInfo_t *info) info->use_default = 1; } -/*PAGE - * +/* * close_stream * * Close control stream of session. @@ -763,8 +749,7 @@ close_stream(FTPD_SessionInfo_t* info) } -/*PAGE - * +/* * send_mode_reply * * Sends BINARY/ASCII reply string depending on current transfer mode. @@ -785,8 +770,7 @@ send_mode_reply(FTPD_SessionInfo_t *info) send_reply(info, 150, "Opening ASCII mode data connection."); } -/*PAGE - * +/* * command_retrieve * * Perform the "RETR" command (send file to client). @@ -904,8 +888,7 @@ command_retrieve(FTPD_SessionInfo_t *info, char const *filename) } -/*PAGE - * +/* * discard * * Analog of `write' routine that just discards passed data @@ -927,8 +910,7 @@ discard(int fd, void const* buf, size_t count) return count; } -/*PAGE - * +/* * command_store * * Performs the "STOR" command (receive data from client). @@ -1158,8 +1140,7 @@ command_store(FTPD_SessionInfo_t *info, char const *filename) } -/*PAGE - * +/* * send_dirline * * Sends one line of LIST command reply corresponding to single file. @@ -1256,8 +1237,7 @@ send_dirline(int s, int wide, time_t curTime, char const* path, return 1; } -/*PAGE - * +/* * command_list * * Send file list to client. @@ -1337,8 +1317,7 @@ command_list(FTPD_SessionInfo_t *info, char const *fname, int wide) } -/*PAGE - * +/* * command_cwd * * Change current working directory. @@ -1367,8 +1346,7 @@ command_cwd(FTPD_SessionInfo_t *info, char *dir) } -/*PAGE - * +/* * command_pwd * * Send current working directory to client. @@ -1411,8 +1389,7 @@ command_pwd(FTPD_SessionInfo_t *info) } } -/*PAGE - * +/* * command_mdtm * * Handle FTP MDTM command (send file modification time to client)/ @@ -1452,8 +1429,7 @@ command_mdtm(FTPD_SessionInfo_t *info, char const* fname) } } -/*PAGE - * +/* * command_port * * This procedure fills address for data connection given the IP address and @@ -1522,8 +1498,7 @@ command_port(FTPD_SessionInfo_t *info, char const *args) } -/*PAGE - * +/* * command_pasv * * Handle FTP PASV command. @@ -1594,8 +1569,7 @@ command_pasv(FTPD_SessionInfo_t *info) } -/*PAGE - * +/* * skip_options * * Utility routine to skip options (if any) from input command. @@ -1635,8 +1609,7 @@ skip_options(char **p) *p = buf; } -/*PAGE - * +/* * split_command * * Split command into command itself, options, and arguments. Command itself @@ -1680,8 +1653,7 @@ split_command(char *buf, char **cmd, char **opts, char **args) *p++ = '\0'; } -/*PAGE - * +/* * exec_command * * Parse and execute FTP command. @@ -1894,8 +1866,7 @@ exec_command(FTPD_SessionInfo_t *info, char* cmd, char* args) } -/*PAGE - * +/* * session * * This task handles single session. It is waked up when the FTP daemon gets a @@ -1969,8 +1940,7 @@ session(rtems_task_argument arg) } -/*PAGE - * +/* * daemon * * This task runs forever. It waits for service requests on the FTP port @@ -2068,8 +2038,7 @@ daemon(rtems_task_argument args __attribute__((unused))) } -/*PAGE - * +/* * rtems_ftpd_start * * Here, we start the FTPD task which waits for FTP requests and services -- cgit v1.2.3