logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

prs.1p (11395B)


  1. '\" et
  2. .TH PRS "1P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. prs
  12. \(em print an SCCS file (\fBDEVELOPMENT\fP)
  13. .SH SYNOPSIS
  14. .LP
  15. .nf
  16. prs \fB[\fR-a\fB] [\fR-d \fIdataspec\fB] [\fR-r\fB[\fISID\fB]]\fI file\fR...
  17. .P
  18. prs \fB[\fR-e|-l\fB]\fR -c \fIcutoff \fB[\fR-d \fIdataspec\fB]\fI file\fR...
  19. .P
  20. prs \fB[\fR-e|-l\fB]\fR -r\fB[\fISID\fB] [\fR-d \fIdataspec\fB] \fIfile\fR...
  21. .fi
  22. .SH DESCRIPTION
  23. The
  24. .IR prs
  25. utility shall write to standard output parts or all of an SCCS file in
  26. a user-supplied format.
  27. .SH OPTIONS
  28. The
  29. .IR prs
  30. utility shall conform to the Base Definitions volume of POSIX.1\(hy2017,
  31. .IR "Section 12.2" ", " "Utility Syntax Guidelines",
  32. except that the
  33. .BR \-r
  34. option has an optional option-argument. This optional option-argument
  35. cannot be presented as a separate argument. The following options
  36. shall be supported:
  37. .IP "\fB\-d\ \fIdataspec\fR" 10
  38. Specify the output data specification. The
  39. .IR dataspec
  40. shall be a string consisting of SCCS file
  41. .IR data
  42. .IR keywords
  43. (see
  44. .IR "Data Keywords")
  45. interspersed with optional user-supplied text.
  46. .IP "\fB\-r[\fISID\fB]\fR" 10
  47. Specify the SCCS identification string (SID) of a delta for which
  48. information is desired. If no
  49. .IR SID
  50. option-argument is specified, the SID of the most recently created
  51. delta shall be assumed.
  52. .IP "\fB\-e\fP" 10
  53. Request information for all deltas created earlier than and including
  54. the delta designated via the
  55. .BR \-r
  56. option or the date-time given by the
  57. .BR \-c
  58. option.
  59. .IP "\fB\-l\fP" 10
  60. Request information for all deltas created later than and including the
  61. delta designated via the
  62. .BR \-r
  63. option or the date-time given by the
  64. .BR \-c
  65. option.
  66. .IP "\fB\-c\ \fIcutoff\fR" 10
  67. Indicate the
  68. .IR cutoff
  69. date-time, in the form:
  70. .RS 10
  71. .sp
  72. .RS 4
  73. .nf
  74. \fIYY\fB[\fIMM\fB[\fIDD\fB[\fIHH\fB[\fIMM\fB[\fISS\fB]]]]]\fR
  75. .fi
  76. .P
  77. .RE
  78. .P
  79. For the
  80. .IR YY
  81. component, values in the range [69,99] shall refer to years 1969 to
  82. 1999 inclusive, and values in the range [00,68] shall refer to years
  83. 2000 to 2068 inclusive.
  84. .TP 10
  85. .BR Note:
  86. It is expected that in a future version of this standard the default
  87. century inferred from a 2-digit year will change. (This would apply to
  88. all commands accepting a 2-digit year as input.)
  89. .P
  90. .P
  91. No changes (deltas) to the SCCS file that were created after the
  92. specified
  93. .IR cutoff
  94. date-time shall be included in the output. Units omitted from the
  95. date-time default to their maximum possible values; for example,
  96. .BR \-c\07502
  97. is equivalent to
  98. .BR \-c\0750228235959 .
  99. .RE
  100. .IP "\fB\-a\fP" 10
  101. Request writing of information for both removed\(emthat is,
  102. .IR delta
  103. .IR type =\c
  104. .IR R
  105. (see
  106. .IR "\fIrmdel\fR\^")\(em\c
  107. and existing\(emthat is,
  108. .IR delta
  109. .IR type =\c
  110. .IR D ,\(em\c
  111. deltas. If the
  112. .BR \-a
  113. option is not specified, information for existing deltas only shall be
  114. provided.
  115. .SH OPERANDS
  116. The following operand shall be supported:
  117. .IP "\fIfile\fR" 10
  118. A pathname of an existing SCCS file or a directory. If
  119. .IR file
  120. is a directory, the
  121. .IR prs
  122. utility shall behave as though each file in the directory were
  123. specified as a named file, except that non-SCCS files (last component
  124. of the pathname does not begin with
  125. .BR s. )
  126. and unreadable files shall be silently ignored.
  127. .RS 10
  128. .P
  129. If exactly one
  130. .IR file
  131. operand appears, and it is
  132. .BR '\-' ,
  133. the standard input shall be read; each line of the standard input shall
  134. be taken to be the name of an SCCS file to be processed. Non-SCCS
  135. files and unreadable files shall be silently ignored.
  136. .RE
  137. .SH STDIN
  138. The standard input shall be a text file used only when the
  139. .IR file
  140. operand is specified as
  141. .BR '\-' .
  142. Each line of the text file shall be interpreted as an SCCS pathname.
  143. .SH "INPUT FILES"
  144. Any SCCS files displayed are files of an unspecified format.
  145. .SH "ENVIRONMENT VARIABLES"
  146. The following environment variables shall affect the execution of
  147. .IR prs :
  148. .IP "\fILANG\fP" 10
  149. Provide a default value for the internationalization variables that are
  150. unset or null. (See the Base Definitions volume of POSIX.1\(hy2017,
  151. .IR "Section 8.2" ", " "Internationalization Variables"
  152. the precedence of internationalization variables used to determine the
  153. values of locale categories.)
  154. .IP "\fILC_ALL\fP" 10
  155. If set to a non-empty string value, override the values of all the
  156. other internationalization variables.
  157. .IP "\fILC_CTYPE\fP" 10
  158. Determine the locale for the interpretation of sequences of bytes of
  159. text data as characters (for example, single-byte as opposed to
  160. multi-byte characters in arguments and input files).
  161. .IP "\fILC_MESSAGES\fP" 10
  162. .br
  163. Determine the locale that should be used to affect the format and
  164. contents of diagnostic messages written to standard error.
  165. .IP "\fINLSPATH\fP" 10
  166. Determine the location of message catalogs for the processing of
  167. .IR LC_MESSAGES .
  168. .SH "ASYNCHRONOUS EVENTS"
  169. Default.
  170. .SH STDOUT
  171. The standard output shall be a text file whose format is dependent on
  172. the data keywords specified with the
  173. .BR \-d
  174. option.
  175. .SS "Data Keywords"
  176. .P
  177. Data keywords specify which parts of an SCCS file shall be retrieved
  178. and output. All parts of an SCCS file have an associated data
  179. keyword. A data keyword may appear in a
  180. .IR dataspec
  181. multiple times.
  182. .P
  183. The information written by
  184. .IR prs
  185. shall consist of:
  186. .IP " 1." 4
  187. The user-supplied text
  188. .IP " 2." 4
  189. Appropriate values (extracted from the SCCS file) substituted for the
  190. recognized data keywords in the order of appearance in the
  191. .IR dataspec
  192. .P
  193. The format of a data keyword value shall either be simple (\c
  194. .BR 'S' ),
  195. in which keyword substitution is direct, or multi-line (\c
  196. .BR 'M' ).
  197. .P
  198. User-supplied text shall be any text other than recognized data
  199. keywords. A
  200. <tab>
  201. shall be specified by
  202. .BR '\et'
  203. and
  204. <newline>
  205. by
  206. .BR '\en' .
  207. When the
  208. .BR \-r
  209. option is not specified, the default
  210. .IR dataspec
  211. shall be:
  212. .sp
  213. .RS 4
  214. .nf
  215. :PN::\en\en
  216. .fi
  217. .P
  218. .RE
  219. .P
  220. and the following
  221. .IR dataspec
  222. shall be used for each selected delta:
  223. .sp
  224. .RS 4
  225. .nf
  226. :Dt:\et:DL:\enMRs:\en:MR:COMMENTS:\en:C:
  227. .fi
  228. .P
  229. .RE
  230. .TS
  231. center box tab(!);
  232. cB s s s s
  233. cB | cB | cB | cB | cB
  234. lB | l | c | lB | c.
  235. SCCS File Data Keywords
  236. _
  237. Keyword!Data Item!File Section!Value!Format
  238. _
  239. :Dt:!Delta information!Delta Table!\fRSee below*\fP!S
  240. :DL:!Delta line statistics!"!:Li:/:Ld:/:Lu:!S
  241. :Li:!Lines inserted by Delta!"!\fInnnnn\fR***!S
  242. :Ld:!Lines deleted by Delta!"!\fInnnnn\fR***!S
  243. :Lu:!Lines unchanged by Delta!"!\fInnnnn\fR***!S
  244. :DT:!Delta type!"!D or R!S
  245. :I:!SCCS ID string (SID)!"!\fRSee below**\fP!S
  246. :R:!Release number!"!\fInnnn\fR!S
  247. :L:!Level number!"!\fInnnn\fR!S
  248. :B:!Branch number!"!\fInnnn\fR!S
  249. :S:!Sequence number!"!\fInnnn\fR!S
  250. :D:!Date delta created!"!:Dy:/:Dm:/:Dd:!S
  251. :Dy:!Year delta created!"!\fInn\fR!S
  252. :Dm:!Month delta created!"!\fInn\fR!S
  253. :Dd:!Day delta created!"!\fInn\fR!S
  254. :T:!Time delta created!"!:Th:::Tm:::Ts:!S
  255. :Th:!Hour delta created!"!\fInn\fR!S
  256. :Tm:!Minutes delta created!"!\fInn\fR!S
  257. :Ts:!Seconds delta created!"!\fInn\fR!S
  258. :P:!Programmer who created Delta!"!\fIlogname\fR!S
  259. :DS:!Delta sequence number!"!\fInnnn\fR!S
  260. :DP:!Predecessor Delta sequence!"!\fInnnn\fR!S
  261. !number
  262. :DI:!Sequence number of deltas!"!:Dn:/:Dx:/:Dg:!S
  263. !included, excluded, or ignored
  264. :Dn:!Deltas included (sequence #)!"!:DS: :DS: .\|.\|.!S
  265. :Dx:!Deltas excluded (sequence #)!"!:DS: :DS: .\|.\|.!S
  266. :Dg:!Deltas ignored (sequence #)!"!:DS: :DS: .\|.\|.!S
  267. :MR:!MR numbers for delta!"!\fItext\fR!M
  268. :C:!Comments for delta!"!\fItext\fR!M
  269. :UN:!User names!User Names!\fItext\fR!M
  270. :FL:!Flag list!Flags!\fItext\fP!M
  271. :Y:!Module type flag!"!\fItext\fR!S
  272. :MF:!MR validation flag!"!yes \fRor\fP no!S
  273. :MP:!MR validation program name!"!\fItext\fR!S
  274. :KF:!Keyword error, warning flag!"!yes \fRor\fP no!S
  275. :KV:!Keyword validation string!"!\fItext\fR!S
  276. :BF:!Branch flag!"!yes \fRor\fP no!S
  277. :J:!Joint edit flag!"!yes \fRor\fP no!S
  278. :LK:!Locked releases!"!:R: .\|.\|.!S
  279. :Q:!User-defined keyword!"!\fItext\fR!S
  280. :M:!Module name!"!\fItext\fR!S
  281. :FB:!Floor boundary!"!:R:!S
  282. :CB:!Ceiling boundary!"!:R:!S
  283. :Ds:!Default SID!"!:I:!S
  284. :ND:!Null delta flag!"!yes \fRor\fP no!S
  285. :FD:!File descriptive text!Comments!\fItext\fR!M
  286. :BD:!Body!Body!\fItext\fR!M
  287. :GB:!Gotten body!"!\fItext\fR!M
  288. :W:!A form of \fIwhat\fP string!N/A!:Z::M:\et:I:!S
  289. :A:!A form of \fIwhat\fP string!N/A!:Z::Y: :M: :I::Z:!S
  290. :Z:!\fIwhat\fP string delimiter!N/A!\fR@(#)\fR!S
  291. :F:!SCCS filename!N/A!\fItext\fR!S
  292. :PN:!SCCS file pathname!N/A!\fItext\fR!S
  293. .TE
  294. .IP * 6
  295. .BR :Dt: =\c
  296. .BR ":DT: :I: :D: :T: :P: :DS: :DP:"
  297. .IP ** 6
  298. .BR ":R:.:L:.:B:.:S:"
  299. if the delta is a branch delta (\c
  300. .BR :BF: =\|=\c
  301. .BR yes )
  302. .br
  303. .BR ":R:.:L:"
  304. if the delta is not a branch delta (\c
  305. .BR :BF: =\|=\c
  306. .BR no )
  307. .IP *** 6
  308. The line statistics are capped at 99\|999. For example, if 100\|000
  309. lines were unchanged in a certain revision,
  310. .BR :Lu:
  311. shall produce the value 99\|999.
  312. .SH STDERR
  313. The standard error shall be used only for diagnostic messages.
  314. .SH "OUTPUT FILES"
  315. None.
  316. .SH "EXTENDED DESCRIPTION"
  317. None.
  318. .SH "EXIT STATUS"
  319. The following exit values shall be returned:
  320. .IP "\00" 6
  321. Successful completion.
  322. .IP >0 6
  323. An error occurred.
  324. .SH "CONSEQUENCES OF ERRORS"
  325. Default.
  326. .LP
  327. .IR "The following sections are informative."
  328. .SH "APPLICATION USAGE"
  329. None.
  330. .SH EXAMPLES
  331. .IP " 1." 4
  332. The following example:
  333. .RS 4
  334. .sp
  335. .RS 4
  336. .nf
  337. prs -d "User Names for :F: are:\en:UN:" s.file
  338. .fi
  339. .P
  340. .RE
  341. .P
  342. might write to standard output:
  343. .sp
  344. .RS 4
  345. .nf
  346. User Names for s.file are:
  347. xyz
  348. 131
  349. abc
  350. .fi
  351. .P
  352. .RE
  353. .RE
  354. .IP " 2." 4
  355. The following example:
  356. .RS 4
  357. .sp
  358. .RS 4
  359. .nf
  360. prs -d "Delta for pgm :M:: :I: - :D: By :P:" -r s.file
  361. .fi
  362. .P
  363. .RE
  364. .P
  365. might write to standard output:
  366. .sp
  367. .RS 4
  368. .nf
  369. Delta for pgm main.c: 3.7 - 77/12/01 By cas
  370. .fi
  371. .P
  372. .RE
  373. .RE
  374. .IP " 3." 4
  375. As a special case:
  376. .RS 4
  377. .sp
  378. .RS 4
  379. .nf
  380. prs s.file
  381. .fi
  382. .P
  383. .RE
  384. .P
  385. might write to standard output:
  386. .sp
  387. .RS 4
  388. .nf
  389. s.file:
  390. <\fIblank line\fP>
  391. D 1.1 77/12/01 00:00:00 cas 1 000000/00000/00000
  392. MRs:
  393. bl78-12345
  394. bl79-54321
  395. COMMENTS:
  396. this is the comment line for s.file initial delta
  397. <\fIblank line\fP>
  398. .fi
  399. .P
  400. .RE
  401. .P
  402. for each delta table entry of the
  403. .BR D
  404. type. The only option allowed to be used with this special case is the
  405. .BR \-a
  406. option.
  407. .RE
  408. .SH RATIONALE
  409. None.
  410. .SH "FUTURE DIRECTIONS"
  411. None.
  412. .SH "SEE ALSO"
  413. .IR "\fIadmin\fR\^",
  414. .IR "\fIdelta\fR\^",
  415. .IR "\fIget\fR\^",
  416. .IR "\fIwhat\fR\^"
  417. .P
  418. The Base Definitions volume of POSIX.1\(hy2017,
  419. .IR "Chapter 8" ", " "Environment Variables",
  420. .IR "Section 12.2" ", " "Utility Syntax Guidelines"
  421. .\"
  422. .SH COPYRIGHT
  423. Portions of this text are reprinted and reproduced in electronic form
  424. from IEEE Std 1003.1-2017, Standard for Information Technology
  425. -- Portable Operating System Interface (POSIX), The Open Group Base
  426. Specifications Issue 7, 2018 Edition,
  427. Copyright (C) 2018 by the Institute of
  428. Electrical and Electronics Engineers, Inc and The Open Group.
  429. In the event of any discrepancy between this version and the original IEEE and
  430. The Open Group Standard, the original IEEE and The Open Group Standard
  431. is the referee document. The original Standard can be obtained online at
  432. http://www.opengroup.org/unix/online.html .
  433. .PP
  434. Any typographical or formatting errors that appear
  435. in this page are most likely
  436. to have been introduced during the conversion of the source files to
  437. man page format. To report such errors, see
  438. https://www.kernel.org/doc/man-pages/reporting_bugs.html .