mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 00:07:30 +09:00
Issue #1338 - Part 1: Update NSPR to 4.24
This commit is contained in:
parent
f6096004d7
commit
1a92143e68
454 changed files with 42944 additions and 48647 deletions
|
|
@ -8,13 +8,8 @@
|
|||
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef SYMBIAN
|
||||
#define SEM_NAME1 "c:\\data\\foo.sem"
|
||||
#define SEM_NAME2 "c:\\data\\bar.sem"
|
||||
#else
|
||||
#define SEM_NAME1 "/tmp/foo.sem"
|
||||
#define SEM_NAME2 "/tmp/bar.sem"
|
||||
#endif
|
||||
#define SEM_MODE 0666
|
||||
|
||||
static PRBool debug_mode = PR_FALSE;
|
||||
|
|
@ -33,7 +28,9 @@ int main(int argc, char **argv)
|
|||
PRSem *sem;
|
||||
|
||||
while (PL_OPT_EOL != (os = PL_GetNextOpt(opt))) {
|
||||
if (PL_OPT_BAD == os) continue;
|
||||
if (PL_OPT_BAD == os) {
|
||||
continue;
|
||||
}
|
||||
switch (opt->option) {
|
||||
case 'd': /* debug mode */
|
||||
debug_mode = PR_TRUE;
|
||||
|
|
@ -64,7 +61,7 @@ int main(int argc, char **argv)
|
|||
fprintf(stderr, "PR_DeleteSemaphore failed\n");
|
||||
exit(1);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Opening an existing semaphore with PR_SEM_CREATE|PR_SEM_EXCL.
|
||||
* should fail with PR_FILE_EXISTS_ERROR.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue