# Romanian translation of manpages # This file is distributed under the same license as the manpages-l10n package. # Copyright © of this file: # Remus-Gabriel Chelu , 2024, 2025. msgid "" msgstr "" "Project-Id-Version: manpages-l10n 4.24.0\n" "POT-Creation-Date: 2026-06-05 06:30+0200\n" "PO-Revision-Date: 2025-11-05 18:57+0100\n" "Last-Translator: Remus-Gabriel Chelu \n" "Language-Team: Romanian \n" "Language: ro\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=n==1 ? 0 : (n==0 || (n%100 > 0 && n%100 < " "20)) ? 1 : 2;\n" "X-Generator: Poedit 3.6\n" #. type: TH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "makecontext" msgstr "makecontext" #. type: TH #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "2026-02-08" msgstr "8 februarie 2026" #. type: TH #: archlinux debian-unstable #, no-wrap msgid "Linux man-pages 6.18" msgstr "Pagini de manual de Linux 6.18" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NAME" msgstr "NUME" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "makecontext, swapcontext - manipulate user context" msgstr "makecontext, swapcontext - manipulează contextul utilizatorului" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "LIBRARY" msgstr "BIBLIOTECA" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed msgid "Standard C library (I,\\ I<-lc>)" msgstr "Biblioteca C standard (I, I<-lc>)" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SYNOPSIS" msgstr "SINOPSIS" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B<#include Eucontext.hE>\n" msgstr "B<#include Eucontext.hE>\n" #. type: Plain text #: archlinux debian-unstable fedora-44 fedora-rawhide mageia-cauldron #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "BIB<, typeof(void (int >IB<, ...)) *>IB<,>\n" "B< int >IB<, ...);>\n" "BIB<,>\n" "B< const ucontext_t *restrict >IB<);>\n" msgstr "" "BIB<, typeof(void (int >IB<, ...)) *>IB<,>\n" "B< int >IB<, ...);>\n" "BIB<,>\n" "B< const ucontext_t *restrict >IB<);>\n" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "DESCRIPTION" msgstr "DESCRIERE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "In a System V-like environment, one has the type I (defined in " "Iucontext.hE> and described in B(3)) and the four " "functions B(3), B(3), B(), and " "B() that allow user-level context switching between multiple " "threads of control within a process." msgstr "" "Într-un mediu de tip System V, există tipul I (definit în " "Iucontext.hE> și descris în B(3)) și cele patru " "funcții B(3), B(3), B() și " "B() care permit comutarea contextului la nivel de utilizator " "între mai multe fire de control în cadrul unui proces." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function modifies the context pointed to by I " "(which was obtained from a call to B(3)). Before invoking " "B(), the caller must allocate a new stack for this context and " "assign its address to Iuc_stack>, and define a successor context " "and assign its address to Iuc_link>." msgstr "" "Funcția B() modifică contextul indicat de I (care a fost " "obținut în urma unui apel la B(3)). Înainte de a invoca " "B(), apelantul trebuie să aloce o nouă stivă pentru acest " "context și să îi atribuie adresa lui Iuc_stack>, precum și să " "definească un context succesor și să îi atribuie adresa lui Iuc_link>." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When this context is later activated (using B(3) or " "B()) the function I is called, and passed the series of " "integer (I) arguments that follow I; the caller must specify the " "number of these arguments in I. When this function returns, the " "successor context is activated. If the successor context pointer is NULL, " "the thread exits." msgstr "" "Atunci când acest context este activat ulterior (utilizând B(3) " "sau B()), funcția I este apelată și i se transmite seria " "de argumente întregi (I) care urmează după I; apelantul trebuie " "să specifice numărul acestor argumente în I. Atunci când această " "funcție returnează, contextul succesor este activat. Dacă indicatorul " "contextului succesor este NULL, firul de execuție iese." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The B() function saves the current context in the structure " "pointed to by I, and then activates the context pointed to by I." msgstr "" "Funcția B() salvează contextul curent în structura indicată de " "I, iar apoi activează contextul indicat de I." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "RETURN VALUE" msgstr "VALOAREA RETURNATĂ" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "When successful, B() does not return. (But we may return " "later, in case I is activated, in which case it looks like " "B() returns 0.) On error, B() returns -1 and " "sets I to indicate the error." msgstr "" "Atunci când reușește, B() nu returnează. (Dar am putea reveni " "mai târziu, în cazul în care I este activat, caz în care se pare că " "B() returnează 0.) În caz de eroare, B() " "returnează -1 și configurează I pentru a indica eroarea." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ERRORS" msgstr "ERORI-IEȘIRE" #. type: TP #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B" msgstr "B" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "Insufficient stack space left." msgstr "Spațiu rămas în stivă insuficient." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "ATTRIBUTES" msgstr "ATRIBUTE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "For an explanation of the terms used in this section, see B(7)." msgstr "" "Pentru o explicație a termenilor folosiți în această secțiune, a se vedea " "B(7)." #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Interface" msgstr "Interfață" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Attribute" msgstr "Atribut" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Value" msgstr "Valoare" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".na\n" msgstr ".na\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid ".nh\n" msgstr ".nh\n" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Thread safety" msgstr "Siguranța firelor" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe race:ucp" msgstr "MT-Safe race:ucp" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "B()" msgstr "B()" #. type: tbl table #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "MT-Safe race:oucp race:ucp" msgstr "MT-Safe race:oucp race:ucp" #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "STANDARDS" msgstr "STANDARDE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "None." msgstr "Niciunul." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "HISTORY" msgstr "ISTORIC" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "glibc 2.1. SUSv2, POSIX.1-2001. Removed in POSIX.1-2008, citing " "portability issues, and recommending that applications be rewritten to use " "POSIX threads instead." msgstr "" "glibc 2.1. SUSv2, POSIX.1-2001. Eliminată în POSIX.1-2008, citând probleme " "de portabilitate și recomandând ca aplicațiile să fie rescrise pentru a " "utiliza în schimb fire POSIX." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "NOTES" msgstr "NOTE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The interpretation of Iuc_stack> is just as in B(2), " "namely, this struct contains the start and length of a memory area to be " "used as the stack, regardless of the direction of growth of the stack. " "Thus, it is not necessary for the user program to worry about this direction." msgstr "" "Interpretarea Iuc_stack> este la fel ca în B(2), și " "anume, această structură conține începutul și lungimea unei zone de memorie " "care urmează să fie utilizată ca stivă, indiferent de direcția de creștere a " "stivei. Astfel, nu este necesar ca programul utilizatorului să se preocupe " "de această direcție." #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "On architectures where I and pointer types are the same size (e.g., " "x86-32, where both types are 32 bits), you may be able to get away with " "passing pointers as arguments to B() following I. " "However, doing this is not guaranteed to be portable, is undefined according " "to the standards, and won't work on architectures where pointers are larger " "than Is. Nevertheless, starting with glibc 2.8, glibc makes some " "changes to B(), to permit this on some 64-bit architectures " "(e.g., x86-64)." msgstr "" "Pe arhitecturile în care tipurile I și indicatorul sunt de aceeași " "dimensiune (de exemplu, x86-32, unde ambele tipuri sunt de 32 de biți), este " "posibil să puteți scăpa pasând indicatorii ca argumente la B() " "după I. Cu toate acestea, acest lucru nu este garantat a fi portabil, " "nu este definit în conformitate cu standardele și nu va funcționa pe " "arhitecturile în care indicatorii sunt mai mari decât I-urile. Cu " "toate acestea, începând cu glibc 2.8, glibc face unele modificări la " "B(), pentru a permite acest lucru pe unele arhitecturi pe 64 de " "biți (de exemplu, x86-64)." #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "EXAMPLES" msgstr "EXEMPLE" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "The example program below demonstrates the use of B(3), " "B(), and B(). Running the program produces the " "following output:" msgstr "" "Programul de exemplu de mai jos demonstrează utilizarea B(3), " "B() și B(). Rularea programului produce următoarea " "ieșire:" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "" "$B< ./a.out>\n" "main: swapcontext(&uctx_main, &uctx_func2)\n" "func2: started\n" "func2: swapcontext(&uctx_func2, &uctx_func1)\n" "func1: started\n" "func1: swapcontext(&uctx_func1, &uctx_func2)\n" "func2: returning\n" "func1: returning\n" "main: exiting\n" msgstr "" "$B< ./a.out>\n" "main: swapcontext(&uctx_main, &uctx_func2)\n" "func2: inițiată\n" "func2: swapcontext(&uctx_func2, &uctx_func1)\n" "func1: inițiată\n" "func1: swapcontext(&uctx_func1, &uctx_func2)\n" "func2: returnând\n" "func1: returnând\n" "main: se iese\n" #. type: SS #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Program source" msgstr "Sursa programului" #. type: Plain text #: archlinux debian-unstable mageia-cauldron opensuse-leap-16-1 #: opensuse-tumbleweed #, no-wrap msgid "" "#include Eerr.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eucontext.hE\n" "\\&\n" "static ucontext_t uctx_main, uctx_func1, uctx_func2;\n" "\\&\n" "static void\n" "func1(void)\n" "{\n" " printf(\"%s: started\\[rs]n\", __func__);\n" " printf(\"%s: swapcontext(&uctx_func1, &uctx_func2)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_func1, &uctx_func2) == -1)\n" " err(EXIT_FAILURE, \"swapcontext\");\n" " printf(\"%s: returning\\[rs]n\", __func__);\n" "}\n" "\\&\n" "static void\n" "func2(void)\n" "{\n" " printf(\"%s: started\\[rs]n\", __func__);\n" " printf(\"%s: swapcontext(&uctx_func2, &uctx_func1)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_func2, &uctx_func1) == -1)\n" " err(EXIT_FAILURE, \"swapcontext\");\n" " printf(\"%s: returning\\[rs]n\", __func__);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char func1_stack[16384];\n" " char func2_stack[16384];\n" "\\&\n" " if (getcontext(&uctx_func1) == -1)\n" " err(EXIT_FAILURE, \"getcontext\");\n" " uctx_func1.uc_stack.ss_sp = func1_stack;\n" " uctx_func1.uc_stack.ss_size = sizeof(func1_stack);\n" " uctx_func1.uc_link = &uctx_main;\n" " makecontext(&uctx_func1, func1, 0);\n" "\\&\n" " if (getcontext(&uctx_func2) == -1)\n" " err(EXIT_FAILURE, \"getcontext\");\n" " uctx_func2.uc_stack.ss_sp = func2_stack;\n" " uctx_func2.uc_stack.ss_size = sizeof(func2_stack);\n" " /* Successor context is f1(), unless argc E 1 */\n" " uctx_func2.uc_link = (argc E 1) ? NULL : &uctx_func1;\n" " makecontext(&uctx_func2, func2, 0);\n" "\\&\n" " printf(\"%s: swapcontext(&uctx_main, &uctx_func2)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_main, &uctx_func2) == -1)\n" " err(EXIT_FAILURE, \"swapcontext\");\n" "\\&\n" " printf(\"%s: exiting\\[rs]n\", __func__);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Eerr.hE\n" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eucontext.hE\n" "\\&\n" "static ucontext_t uctx_main, uctx_func1, uctx_func2;\n" "\\&\n" "#define handle_error(msg) \\[rs]\n" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" "\\&\n" "static void\n" "func1(void)\n" "{\n" " printf(\"%s: inițiată\\[rs]n\", __func__);\n" " printf(\"%s: swapcontext(&uctx_func1, &uctx_func2)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_func1, &uctx_func2) == -1)\n" " err(EXIT_FAILURE, \"swapcontext\");\n" " printf(\"%s: returnând\\[rs]n\", __func__);\n" "}\n" "\\&\n" "static void\n" "func2(void)\n" "{\n" " printf(\"%s: inițiată\\[rs]n\", __func__);\n" " printf(\"%s: swapcontext(&uctx_func2, &uctx_func1)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_func2, &uctx_func1) == -1)\n" " err(EXIT_FAILURE, \"swapcontext\");\n" " printf(\"%s: returnând\\[rs]n\", __func__);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char func1_stack[16384];\n" " char func2_stack[16384];\n" "\\&\n" " if (getcontext(&uctx_func1) == -1)\n" " err(EXIT_FAILURE, \"getcontext\");\n" " uctx_func1.uc_stack.ss_sp = func1_stack;\n" " uctx_func1.uc_stack.ss_size = sizeof(func1_stack);\n" " uctx_func1.uc_link = &uctx_main;\n" " makecontext(&uctx_func1, func1, 0);\n" "\\&\n" " if (getcontext(&uctx_func2) == -1)\n" " err(EXIT_FAILURE, \"getcontext\");\n" " uctx_func2.uc_stack.ss_sp = func2_stack;\n" " uctx_func2.uc_stack.ss_size = sizeof(func2_stack);\n" " /* Contextul succesor este f1(), cu excepția cazului în care argc E 1 */\n" " uctx_func2.uc_link = (argc E 1) ? NULL : &uctx_func1;\n" " makecontext(&uctx_func2, func2, 0);\n" "\\&\n" " printf(\"%s: swapcontext(&uctx_main, &uctx_func2)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_main, &uctx_func2) == -1)\n" " err(EXIT_FAILURE, \"swapcontext\");\n" "\\&\n" " printf(\"%s: se iese\\[rs]n\", __func__);\n" " exit(EXIT_SUCCESS);\n" "}\n" #. SRC END #. type: SH #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "SEE ALSO" msgstr "CONSULTAȚI ȘI" #. type: Plain text #: archlinux debian-trixie debian-unstable fedora-44 fedora-rawhide #: mageia-cauldron opensuse-leap-16-1 opensuse-tumbleweed msgid "" "B(2), B(2), B(2), B(3), " "B(3)" msgstr "" "B(2), B(2), B(2), B(3), " "B(3)" #. type: TH #: debian-trixie #, no-wrap msgid "2024-06-15" msgstr "15 iunie 2024" #. type: TH #: debian-trixie #, no-wrap msgid "Linux man-pages 6.9.1" msgstr "Pagini de manual de Linux 6.9.1" #. type: Plain text #: debian-trixie msgid "Standard C library (I, I<-lc>)" msgstr "Biblioteca C standard (I, I<-lc>)" #. type: Plain text #: debian-trixie #, no-wrap msgid "" "BIB<, void (*>IB<)(), int >IB<, ...);>\n" "BIB<,>\n" "B< const ucontext_t *restrict >IB<);>\n" msgstr "" "BIB<, void (*>IB<)(), int >IB<, ...);>\n" "BIB<,>\n" "B< const ucontext_t *restrict >IB<);>\n" #. type: Plain text #: debian-trixie fedora-44 fedora-rawhide #, no-wrap msgid "" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eucontext.hE\n" "\\&\n" "static ucontext_t uctx_main, uctx_func1, uctx_func2;\n" "\\&\n" "#define handle_error(msg) \\[rs]\n" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" "\\&\n" "static void\n" "func1(void)\n" "{\n" " printf(\"%s: started\\[rs]n\", __func__);\n" " printf(\"%s: swapcontext(&uctx_func1, &uctx_func2)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_func1, &uctx_func2) == -1)\n" " handle_error(\"swapcontext\");\n" " printf(\"%s: returning\\[rs]n\", __func__);\n" "}\n" "\\&\n" "static void\n" "func2(void)\n" "{\n" " printf(\"%s: started\\[rs]n\", __func__);\n" " printf(\"%s: swapcontext(&uctx_func2, &uctx_func1)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_func2, &uctx_func1) == -1)\n" " handle_error(\"swapcontext\");\n" " printf(\"%s: returning\\[rs]n\", __func__);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char func1_stack[16384];\n" " char func2_stack[16384];\n" "\\&\n" " if (getcontext(&uctx_func1) == -1)\n" " handle_error(\"getcontext\");\n" " uctx_func1.uc_stack.ss_sp = func1_stack;\n" " uctx_func1.uc_stack.ss_size = sizeof(func1_stack);\n" " uctx_func1.uc_link = &uctx_main;\n" " makecontext(&uctx_func1, func1, 0);\n" "\\&\n" " if (getcontext(&uctx_func2) == -1)\n" " handle_error(\"getcontext\");\n" " uctx_func2.uc_stack.ss_sp = func2_stack;\n" " uctx_func2.uc_stack.ss_size = sizeof(func2_stack);\n" " /* Successor context is f1(), unless argc E 1 */\n" " uctx_func2.uc_link = (argc E 1) ? NULL : &uctx_func1;\n" " makecontext(&uctx_func2, func2, 0);\n" "\\&\n" " printf(\"%s: swapcontext(&uctx_main, &uctx_func2)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_main, &uctx_func2) == -1)\n" " handle_error(\"swapcontext\");\n" "\\&\n" " printf(\"%s: exiting\\[rs]n\", __func__);\n" " exit(EXIT_SUCCESS);\n" "}\n" msgstr "" "#include Estdio.hE\n" "#include Estdlib.hE\n" "#include Eucontext.hE\n" "\\&\n" "static ucontext_t uctx_main, uctx_func1, uctx_func2;\n" "\\&\n" "#define handle_error(msg) \\[rs]\n" " do { perror(msg); exit(EXIT_FAILURE); } while (0)\n" "\\&\n" "static void\n" "func1(void)\n" "{\n" " printf(\"%s: inițiată\\[rs]n\", __func__);\n" " printf(\"%s: swapcontext(&uctx_func1, &uctx_func2)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_func1, &uctx_func2) == -1)\n" " handle_error(\"swapcontext\");\n" " printf(\"%s: returnând\\[rs]n\", __func__);\n" "}\n" "\\&\n" "static void\n" "func2(void)\n" "{\n" " printf(\"%s: inișiată\\[rs]n\", __func__);\n" " printf(\"%s: swapcontext(&uctx_func2, &uctx_func1)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_func2, &uctx_func1) == -1)\n" " handle_error(\"swapcontext\");\n" " printf(\"%s: returnând\\[rs]n\", __func__);\n" "}\n" "\\&\n" "int\n" "main(int argc, char *argv[])\n" "{\n" " char func1_stack[16384];\n" " char func2_stack[16384];\n" "\\&\n" " if (getcontext(&uctx_func1) == -1)\n" " handle_error(\"getcontext\");\n" " uctx_func1.uc_stack.ss_sp = func1_stack;\n" " uctx_func1.uc_stack.ss_size = sizeof(func1_stack);\n" " uctx_func1.uc_link = &uctx_main;\n" " makecontext(&uctx_func1, func1, 0);\n" "\\&\n" " if (getcontext(&uctx_func2) == -1)\n" " handle_error(\"getcontext\");\n" " uctx_func2.uc_stack.ss_sp = func2_stack;\n" " uctx_func2.uc_stack.ss_size = sizeof(func2_stack);\n" " /* Contextul succesor este f1(), cu excepția cazului în care argc E 1 */\n" " uctx_func2.uc_link = (argc E 1) ? NULL : &uctx_func1;\n" " makecontext(&uctx_func2, func2, 0);\n" "\\&\n" " printf(\"%s: swapcontext(&uctx_main, &uctx_func2)\\[rs]n\", __func__);\n" " if (swapcontext(&uctx_main, &uctx_func2) == -1)\n" " handle_error(\"swapcontext\");\n" "\\&\n" " printf(\"%s: se iese\\[rs]n\", __func__);\n" " exit(EXIT_SUCCESS);\n" "}\n" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "2024-12-13" msgstr "13 decembrie 2024" #. type: TH #: fedora-44 fedora-rawhide #, no-wrap msgid "Linux man-pages 6.13" msgstr "Pagini de manual de Linux 6.13" #. type: TH #: mageia-cauldron #, no-wrap msgid "Linux man-pages 6.17" msgstr "Pagini de manual de Linux 6.17" #. type: TH #: opensuse-leap-16-1 opensuse-tumbleweed #, no-wrap msgid "Linux man-pages (unreleased)" msgstr "Pagini de manual Linux (nepublicate)"