SCCS(1P)
πΈ SCCS(1P) β POSIX Programmer's Manual πΈ
okay bestie, sit DOWN, we're doing the Source Code Control System today and it's giving vintage but make it iconic π
this is the POSIX Programmer's Manual page for sccs, and lowkey you need to know the vibe up front:
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
like, fr fr, check your local Linux page before you come for me, because the Linux girlies might be doing their own thing, or this might not even be a thing on Linux at all π
β¨ PROLOG β¨
okay so this page? part of the POSIX Programmer's Manual. periodt. but the Linux implementation of this interface may differ β so pls go consult the corresponding Linux manual page for the deets on Linux behavior β or, plot twist, the interface may not be implemented on Linux at all. π
π NAME π
sccs β front end for the SCCS subsystem (DEVELOPMENT)
π¦ SYNOPSIS π¦
sccs [-r] [-d path] [-p path] command [options...] [operands...]
π DESCRIPTION π
okay so the whole tea: the sccs utility is a front end to the SCCS programs. it also has the capability to run set-user-id to another user to provide additional protection. main character energy honestly.
the sccs utility shall invoke the specified command with the specified options and operands. by default, each of the operands shall be modified by prefixing it with the string "SCCS/s." β yes, it just β¨does thatβ¨ to your operands, no asking.
the command can be the name of one of the SCCS utilities in this volume of POSIX.1β2017 β that's admin, delta, get, prs, rmdel, sact, unget, val, or what β or one of the pseudo-utilities listed in the EXTENDED DESCRIPTION section. iykyk. π«Ά
π OPTIONS π
the sccs utility shall conform to the Base Definitions volume of POSIX.1β2017, Section 12.2, Utility Syntax Guidelines, except that options operands are actually options to be passed to the utility named by command. so like, the rules are the rules until they're not. π€·
when the portion of the command:
command [options ... ] [operands ... ]
is considered, all of the pseudo-utilities used as command shall support the Utility Syntax Guidelines. any of the other SCCS utilities that can be invoked in this manner support the Guidelines to the extent indicated by their individual OPTIONS sections. (basically: read their pages, bestie.)
the following options shall be supported preceding the command operand:
-dpath β a pathname of a directory to be used as a root directory for the SCCS files. the default shall be the current directory. the-doption shall take precedence over thePROJECTDIRvariable. see-p.-ppath β a pathname of a directory in which the SCCS files are located. the default shall be theSCCSdirectory.
the -p option differs from the -d option in that the -d option-argument shall be prefixed to the entire pathname and the -p option-argument shall be inserted before the final component of the pathname. for example:
sccs -d /x -p y get a/b
converts to:
get /x/a/y/s.b
this allows the creation of aliases such as:
alias syssccs="sccs -d /usr/src"
which is used as:
syssccs get cmd/who.c
see, it's giving path manipulation sorcery and honestly? slay.
-rβ invokecommandwith the real user ID of the process, not any effective user ID that thesccsutility is set to. certain commands (admin,check,clean,diffs,info,rmdel, andtell) cannot be run set-user-ID by all users, since this would allow anyone to change the authorizations. these commands are always run as the real user.
ngl that last part is a security thing and it's important: those commands can't be run set-user-ID by all users because that would let anyone change the authorizations. so they always run as the real user. no exceptions, bestie. π₯
π OPERANDS π
the following operands shall be supported:
commandβ an SCCS utility name or the name of one of the pseudo-utilities listed in the EXTENDED DESCRIPTION section.optionsβ an option or option-argument to be passed tocommand.operandsβ an operand to be passed tocommand.
β STDIN β
see the utility description for the specified command. (not me telling you to go read another page, but like, that's the assignment. π)
π INPUT FILES π
see the utility description for the specified command.
π§ ENVIRONMENT VARIABLES π§
the following environment variables shall affect the execution of sccs:
LANGβ provide a default value for the internationalization variables that are unset or null. (see the Base Definitions volume of POSIX.1β2017, Section 8.2, Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.)LC_ALLβ if set to a non-empty string value, override the values of all the other internationalization variables.LC_CTYPEβ determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments and input files).LC_MESSAGESβ determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.NLSPATHβ determine the location of message catalogs for the processing ofLC_MESSAGES.PROJECTDIRβ provide a default value for the-dpath option. if the value ofPROJECTDIRbegins with a<slash>, it shall be considered an absolute pathname; otherwise, the value ofPROJECTDIRis treated as a user name and that user's initial working directory shall be examined for a subdirectorysrcorsource. if such a directory is found, it shall be used. otherwise, the value shall be used as a relative pathname.
additional environment variable effects may be found in the utility description for the specified command. π
π«Ά ASYNCHRONOUS EVENTS π«Ά
Default.
π STDOUT π
see the utility description for the specified command.
π STDERR π
see the utility description for the specified command.
π OUTPUT FILES π
see the utility description for the specified command.
π₯ EXTENDED DESCRIPTION π₯
the following pseudo-utilities shall be supported as command operands. all options referred to in the following list are values given in the options operands following command. (translation: the flags come AFTER the pseudo-utility name, bestie. π
)
checkβ equivalent toinfo, except that nothing shall be printed if nothing is being edited, and a non-zero exit status shall be returned if anything is being edited. the intent is to have this included in an ``install'' entry in amakefileto ensure that everything is included into the SCCS file before a version is installed.cleanβ remove everything from the current directory that can be recreated from SCCS files, but do not remove any files being edited. if the-boption is given, branches shall be ignored in the determination of whether they are being edited; this is dangerous if branches are kept in the same directory.createβ create an SCCS file, taking the initial contents from the file of the same name. any options toadminare accepted. if the creation is successful, the original files shall be renamed by prefixing the basenames with a comma. these renamed files should be removed after it has been verified that the SCCS files have been created successfully.delgetβ perform a delta on the named files and then get new versions. the new versions shall have ID keywords expanded and shall not be editable. any-m,-p,-r,-s, and-yoptions shall be passed todelta, and any-b,-c,-e,-i,-k,-l,-s, and-xoptions shall be passed toget.deleditβ equivalent todelget, except that thegetphase shall include the-eoption. this option is useful for making a checkpoint of the current editing phase. the same options shall be passed todeltaas described above, and all the options listed forgetabove except-eshall be passed toedit.diffsβ write a difference listing between the current version of the files checked out for editing and the versions in SCCS format. any-r,-c,-i,-x, and-toptions shall be passed toget; any-l,-s,-e,-f,-h, and-boptions shall be passed todiff. a-Coption shall be passed todiffas-c.editβ equivalent toget -e.fixβ remove the named delta, but leave a copy of the delta with the changes that were in it. it is useful for fixing small compiler bugs, and so on. the application shall ensure that it is followed by a-r SIDoption. sincefixdoes not leave audit trails, it should be used carefully. (no cap, this one's spicy πΆοΈ)infoβ write a listing of all files being edited. if the-boption is given, branches (that is, SIDs with two or fewer components) shall be ignored. if a-uuser option is given, then only files being edited by the named user shall be listed. a-Uoption shall be equivalent to-u<current user>.printβ write out verbose information about the named files, equivalent tosccs prs.tellβ write a<newline>-separated list of the files being edited to standard output. takes the-b,-u, and-Uoptions likeinfoandcheck.uneditβ this is the opposite of aneditor aget -e. it should be used with caution, since any changes made since thegetare lost. π like genuinely, gone. poof. protect your work.
π EXIT STATUS π
the following exit values shall be returned:
0β successful completion. π>0β an error occurred. π
π CONSEQUENCES OF ERRORS π
Default.
the following sections are informative. (so like, not the rules-rules, but still read them, bestie.)
π APPLICATION USAGE π
many of the SCCS utilities take directory names as operands as well as specific filenames. the pseudo-utilities supported by sccs are not described as having this capability, but are not prohibited from doing so. so likeβ¦ they might, they might not. vibe check it yourself. π€·
β EXAMPLES β
- to get a file for editing, edit it and produce a new delta:
sccs get -e file.c
ex file.c
sccs delta file.c
- to get a file from another directory:
sccs -p /usr/src/sccs/s. get cc.c
or:
sccs get /usr/src/sccs/s.cc.c
- to make a delta of a large number of files in the current directory:
sccs delta *.c
- to get a list of files being edited that are not on branches:
sccs info -b
- to delta everything being edited by the current user:
sccs delta $(sccs tell -U)
- in a
makefile, to get source files from an SCCS file if it does not already exist:
SRCS = <list of source files>
$(SRCS):
sccs get $(REL) $@
like, that last one is a whole mood. makefile girlies, this one's for you. π
π¦ RATIONALE π¦
sccs and its associated utilities are part of the XSI Development Utilities option within the XSI option.
SCCS is an abbreviation for Source Code Control System. it is a maintenance and enhancement tracking tool. when a file is put under SCCS, the source code control system maintains the file and, when changes are made, identifies and stores them in the file with the original source code and/or documentation. as other changes are made, they too are identified and retained in the file.
retrieval of the original and any set of changes is possible. any version of the file as it develops can be reconstructed for inspection or additional modification. history data can be stored with each version, documenting why the changes were made, who made them, and when they were made.
honestly? for a tool from the stone age it ate. π
π§ FUTURE DIRECTIONS π§
None.
okay bestie that's part one, and we are so not done yet β part 2 is coming and it has even more for you π
π SEE ALSO π
Bestie, if you wanna spiral into the whole Unix lore (and honestly, same), go peek at these icons:
admindeltagetmakeprsrmdelsactungetvalwhat
Also the Base Definitions volume of POSIX.1β2017, Chapter 8, Environment Variables, and Section 12.2, Utility Syntax Guidelines. That's the deep lore, iykyk π¦β¨
π COPYRIGHT π
Okay legal bestie moment, but make it cute. The exact words are:
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
So like, if there's ever drama between this version and the original IEEE / The Open Group Standard, the original is the referee. Periodt. π And if you spot a typo? It's probably from the man-page glow-up, not the source. Report it at that link, bestie π«Ά
Source: IEEE/The Open Group. Version/date: 2017. Page: SCCS(1P). Stay iconic, fr fr πβ¨
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms