SCCS(1POSIX)
ok so bestie, you just opened SCCS(1POSIX) from the POSIX Programmer's Manual ๐ and honestly? It's giving "grandma of version control but she still ate." Let's get into it, no cap. ๐ฆ
โจ PROLOG โจ
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.
heads up fr fr: that's the standard disclaimer every POSIX page carries. Linux might do its own thing, or the thing might not exist at all on Linux. Check the Linux page, okay? ๐ซถ
๐ NAME ๐
sccs โ front end for the SCCS subsystem (DEVELOPMENT)
yup. That's the whole name section. Short, sweet, iconic.
๐ธ SYNOPSIS ๐ธ
sccs [-r] [-d path] [-p path] command [options...] [operands...]
๐ DESCRIPTION ๐
The sccs utility is a front end to the SCCS programs. It also includes the capability to run set-user-id to another user to provide additional protection.
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.".
the way that every operand just automatically gets SCCS/s. glued onto the front?? Main character behavior honestly. โจ
The command can be the name of one of the SCCS utilities in this volume of POSIX.1-2017 (admin, delta, get, prs, rmdel, sact, unget, val, or what) or one of the pseudo-utilities listed in the EXTENDED DESCRIPTION section.
๐ฅ 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. 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.
The following options shall be supported preceding the command operand:
-d pathโ 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.-p pathโ 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
-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.
vibe check on -r: it's the "run me as actually-me, not as whoever I'm cosplaying as" switch. And those seven commands are always run as the real user no matter what, because letting just anyone flip the authorizations would be a whole security situation. Not the move. ๐
๐ 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.
๐ง 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-d pathoption. 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.
PROJECTDIR is lowkey the diva here โ starts with /? absolute path. Doesn't? Then it's a username, and we go snooping in their home dir for src or source. If it's there, slay, we use it. If not, it's just a relative path. ๐ซ
๐ซถ 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.
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 aninstallentry in a makefile to 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.
bestie, watch out: that-boncleanis dangerous if you keep branches in the same directory. Say it with me: do not. ๐ซ
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 adeltaon the named files and thengetnew 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.
fr fr: no audit trail means nobody knows you did it. Use with care, okay? ๐ญ
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-u useroption 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.
โ ๏ธuneditreality check: everything you changed since theget? Gone. Poof. ๐ Use it with caution, not on a whim.
๐ 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.
๐ธ 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 basically: they're not advertised as doing the directory thing, but nobody's stopping them either. iykyk. ๐
โจ 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) $@
example 5 is the moment honestly โ sccs tell -U feeding straight into sccs delta?? The pipeline ate and left no crumbs. ๐ฅ
๐ญ 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.
๐ฎ FUTURE DIRECTIONS ๐ฎ
None.
๐ซ SEE ALSO ๐ซ
okay bestie, when you're done with this one and you're like "wait, what else though??" โ here's the whole friend group ๐ฏโโ๏ธ๐
adminโ the admin utility, go say hideltaโ delta, obvsgetโ get, for when you need to get the filemakeโ makeprsโ prsrmdelโ rmdelsactโ sactungetโ ungetvalโ valwhatโ what
and then, bc this page does NOT do it alone, she references her sources ๐โจ
- The Base Definitions volume of POSIX.1โ2017, Chapter 8, Environment Variables ๐
- POSIX.1โ2017, Section 12.2, Utility Syntax Guidelines ๐
fr fr, if you're out here trying to understand the env vars or how the utility syntax is supposed to behave, those two are the plug. go read them. iykyk ๐
๐ COPYRIGHT ๐
okay so legal time, but make it cute bc we respect the paperwork ๐ซถ
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.
๐ real talk: if there is 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. like, that's the final boss. no cap. don't come for this page, come for the Standard.
The original Standard can be obtained online at http://www.opengroup.org/unix/online.html ๐
๐ typos & oopsies ๐
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. like, the vibes survived the journey, the formatting maybe did not ๐ญ
To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html ๐โจ
and that's a wrap on this whole entire page bestie!! ๐๐ you made it to the end, main character energy fr ๐
this one comes to you from IEEE/The Open Group, dated 2017, and it lives in the manual as SCCS(1POSIX) โ go forth and version your files responsibly, mwah ๐๐ฆ๐ธ
๐ฆ where this page comes from
- debian bookworm: manpages-posix 2017a-2 ยท Other
- debian trixie: manpages-posix 2017a-2 ยท Other
- ubuntu jammy: manpages-posix 2017a-2 ยท Other
- ubuntu noble: manpages-posix 2017a-2 ยท Other
- ubuntu resolute: manpages-posix 2017a-2build1 ยท Other
- ubuntu stonking: manpages-posix 2017a-2.1 ยท Other
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms