X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fdata%2Ffile-handle-def.c;h=0f6b142a72cd170758b59912ecfa48dc47cc81fb;hb=51d8c9b54d65bd0aa3944b8fb9d4460875048e14;hp=872559154469cceebbbf3272aab1702a319b80e8;hpb=2ad5fe55e454b8ccb271a710e2c4b1b53c57fc8c;p=pspp-builds.git diff --git a/src/data/file-handle-def.c b/src/data/file-handle-def.c index 87255915..0f6b142a 100644 --- a/src/data/file-handle-def.c +++ b/src/data/file-handle-def.c @@ -403,6 +403,10 @@ static unsigned int hash_fh_lock (const void *, const void *); and similarly for writing. If successful, a reference to TYPE is retained, so it should probably be a string literal. + TYPE should be marked with N_() in the caller: that is, the + caller should not translate it with gettext, but fh_lock will + do so. + ACCESS specifies whether the lock is for reading or writing. EXCLUSIVE is true to require exclusive access, false to allow sharing with other accessors. Exclusive read access precludes